Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox picture property
Message
From
21/01/2002 17:02:58
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
21/01/2002 16:40:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00607926
Message ID:
00608035
Views:
19
This works but when I click on the list, all the pictures change to the default picture. As long as I don't click on the list, each item can have a different picture.

What am I doing wrong?
Mylistbox.Rowsource = "mycursor.field"
Mylistbox.Rowsourcetype = 2
IF condition
THISFORM.Mylistbox.Picture[n] ='IMAGES\image1.BMP'
ELSE
THISFORM.Mylistbox.Picture[n] ='IMAGES\image2.BMP'
ENDIF

Thanks,

Jerryt


>
>Yes, you can do that
>
>oListBox.Picture = 'MyBmp.Bmp'   && default bitmap for listbox
>oListBox.Picture[nIndex] = 'MyBmp1.Bmp'
>oListBox.Picture[nIndex] = 'Blank.Bmp'   && blank/empty bitmap
>
>
>Hth
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform