Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox with checkbox
Message
From
15/09/2004 06:41:04
 
 
To
15/09/2004 02:33:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00942262
Message ID:
00942300
Views:
14

Is it possible to use a checkbox within a listbox? If it is, how?
Tamas Szigeti


yes.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form

	DoCreate = .T.
	Caption = "Form1"
	Name = "Form1"

	ADD OBJECT list1 AS listbox WITH ;
		ColumnCount = 2, ;
		RowSourceType = 9, ;
		RowSource = "myPopup", ;
		Height = 170, ;
		Left = 52, ;
		Top = 40, ;
		Width = 272, ;
		Name = "List1"


	PROCEDURE Load
		DEFINE POPUP myPopup MARGIN MOVER
		ON SELECTION POPUP myPopup ;
			SET MARK OF BAR BAR() OF myPopup !MRKBAR('myPopup', BAR())
		DEFINE BAR 1 OF myPopup PROMPT 'ITEM 1'
		DEFINE BAR 2 OF myPopup PROMPT 'ITEM 2'
		DEFINE BAR 3 OF myPopup PROMPT 'ITEM 3'
	ENDPROC

ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform