Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pictures in ComboBox
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00893432
Message ID:
00894941
Views:
11
Hi Mathew,

because first column is empty...
try this:
This.combo1.AddListItem("Car Rental",1,1)
This.combo1.picture(1) = "Car.bmp"
This.combo1.AddListItem("Hotel",2,1)
This.combo1.picture(2) = "Hotel.bmp"
This.combo1.AddListItem("Airport Service",3,1)
This.combo1.picture(3) = "Airplane.bmp"
MartinJ

>Hi Martin,
>
>>After add items to combo (from any source or additem()/addlistitem()) you >can set picture:
>
>>combobox.Picture(ListIndex)="your_picture"
>>MartinJ
>
>Thanks for the tips, but now when I select on of the item on the list. The combo box does not display the selected value (just blank). I added this code inside the Interactivechange event, but no luck. Any Ideas?
>
>Form1.Init()
>This.combo1.AddListItem("Car Rental",1,2)
>This.combo1.picture(1) = "Car.bmp"
>This.combo1.AddListItem("Hotel",2,2)
>This.combo1.picture(2) = "Hotel.bmp"
>This.combo1.AddListItem("Airport Service",3,2)
>This.combo1.picture(3) = "Airplane.bmp"
>
>
>Combo1.InteractiveChange()
>nIdx = This.ListIndex
>This.Value = This.List(nIdx,2)
>
>
>TIA
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform