Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox picture?
Message
From
22/09/1998 12:10:41
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00139466
Message ID:
00139490
Views:
28
>>>I have a select statement that gets a list of vehicles and whether or not they need repair.
>>>
>>>Right now I have 2 fields: cunit and crepair. The crepair is either "R" or "". Instead, I'd like to put a picture if it needs repair. Is this possible?
>>>
>>>Thanks,
>>>
>>>-Michelle
>>
>>Yes. The ListBox.Picture[Item] = "MyPic.BMP"
>
>I'm not sure if my reply went through... I can't seem to stay connected to the UT today... Here it is again:
>
>Ok, I found the picture property of the listbox. That puts a picture before every entry. I want the picture to come after only those entries that have an "R" in crepair. How do I do that?
>
>I'm not sure what you mean by "[item]" what do I put there?
>
>Thanks,
>
>-Michelle

It means that you fill listbox using AddItem() and then specify bmp for each item separately:
List.Additem("item1")
List.Picture(1)=item1.bmp
List.Additem("item2")
List.Picture(2)=item2.bmp
So you can add bmp to particular items only. If you have many items you may better use grid.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform