Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox with picture
Message
 
To
25/09/2000 05:34:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00420382
Message ID:
00420400
Views:
17
>Hi everbody
>
>I want to build a listbox with a checkbox and text in an Item.
>But when iuse the property picture on the list every Item on this change.
>
>When the user click on an item the pisture change or the check get the value CKECK or UNCHECK
>
>Somebody have do that???
>
>Thanks for your help

Try this:
* lcck is the filename of the checked bitmap
* lcunck is the filename of the unchecked bitmap.
FOR lni = 1 TO ThisForm.List1.ListCount
  IF ThisForm.List1.Selected(lni)
    ThisForm.List1.Picture(lni) = lcck
  ELSE
    ThisForm.List1.Picture(lni) = lcunck
  ENDIF
NEXT
The above code will set the selected items to the checked bitmap.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform