Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pictures in ComboBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893432
Message ID:
00894941
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform