Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox with checkbox
Message
From
15/09/2004 03:57:22
 
 
To
15/09/2004 02:33:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00942262
Message ID:
00942276
Views:
17
> Is it possible to use a checkbox within a listbox? If it is, how?

Not directly I think. You can use pictures, say an X vs. an empty box instead

hth
-Stefan
#define PIC_CHECKED	HOME(4)+'BITMAPS\ASSORTED\delete.BMP'
#define PIC_UNCHECKED	HOME(4)+'BITMAPS\ASSORTED\trash.BMP'

IF PEMSTATUS(_screen,'List1',5)
	_screen.RemoveObject('List1')
ENDIF
_screen.AddObject('List1','Listbox')
WITH _screen.List1
	.AddItem("checked item")
	.Picture(1) = PIC_CHECKED
	.AddItem("unchecked")
	.Picture(2) = PIC_UNCHECKED
	.Width = 150
	.Visible = .T.
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform