Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox picture issues
Message
From
14/07/2006 19:13:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01136520
Message ID:
01136593
Views:
19
>I have a listbox on my form with the following properties:
>
>.RowSource = mcategor.desc
>.RowSourceType = 6
>.Picture = "listbox.bmp"
>
>
>In the Init of my form I am trying to set the picture value of some of the listbox items to a different image. But when the listbox is displayed, all items are shown with the same default picture.
>
>However, if I change the listbox properties to this:
>
>.RowSource = "One,Two,Three,Four,Five"
>.RowSourceType = 1
>.Picture = "listbox.bmp"
>
>
>and then do the same code in my Init, everything works fine and the items I wanted to show up with a different picture.
>
>Can someone tell me 1)Why the listbox won't let me update the image in the form's Init when the RowSourceType = 6 and 2)

Because the load of items is done when the list is painted.

If there is a workaround for this?
>

A simple workaround don't exists.

>Thanks tons for your help!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform