Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox with checkbox
Message
De
15/09/2004 03:57:22
 
 
À
15/09/2004 02:33:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00942262
Message ID:
00942276
Vues:
18
> 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform