I've got a piece of code which uses TOwnerDrawStateType and TBaseOwnerDrawState 
which is set of TOwnerDrawStateType , if i have on variable called state which 
is TOwnerDrawStateType how do i do something like this

if odSelected in state then
begin
  // My Code....
end;


i get this error - Error: Incompatible types: got "TOwnerDrawStateType" 
expected "<enumeration type>"

how do i get around this ?


Justin Smyth
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to