Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox picture issues
Message
From
15/07/2006 05:34:58
 
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:
01136636
Views:
18
>I guess what confuses me is that 1) if I debug through the Init of the form, I can access the items in the list with form.listbox.List(x) ... the items appear to already be loaded

The property is an "on demand value", when you read List(), VFP read the cursor.

2) it does work when the rowsourcetype = 1 ... does the listbox load differently based on the rowsourcetype?

VFP work differently when RowsourceType is different

>
>BTW, guess you're pretty happy with the World Cup results eh? <g>
>

Yeah !


>>>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
Reply
Map
View

Click here to load this message in the networking platform