Alaska Software Inc. - simulate AChoise 6st Parameter with Ownerdraw Listbox ?
Username: Password:
AuthorTopic: simulate AChoise 6st Parameter with Ownerdraw Listbox ?
AUGE_OHRsimulate AChoise 6st Parameter with Ownerdraw Listbox ?
on Sun, 01 Jun 2008 07:13:28 +0200
hi

AChoice( <nTop>        , ;
         <nLeft>       , ;
         <nBottom>     , ;
         <nRight>      , ;
         <aItems>      , ;
        [<alCanSelect>]

under Cl*pper the 6th Parameter was a Array
which Item can be select or not.

in C:\ALASKA\XPPW32\SOURCE\samples\basics\OWNERDRW\COLORBOX.prg
we have
*** snip ***
   IF BAND(mp2[3],XBP_DRAWSTATE_DISABLED) != 0
      aStringAttrs[GRA_AS_COLOR] := XBPSYSCLR_INACTIVETITLETEXT
   ELSEIF BAND(mp2[3],XBP_DRAWSTATE_SELECTED) != 0
      aStringAttrs[GRA_AS_COLOR] := XBPSYSCLR_WINDOW
   ENDIF
*** eof ***
so i try to figure out how to "set" XBP_DRAWSTATE_DISABLED ?

can somebody telle me how to "disable" a Listbox Item ?

greetings by OHR
Jimmy