Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture in Combo!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064305
Message ID:
01064955
Views:
16
>Hi Everybody,
>
>I have a combo box with the following init()
>
>FOR my_Counter = 1 TO 21
>   ThisForm.Combo3.AddlistItem(ALLT(STR(my_Counter)))
>   thisform.Combo3.Picture[my_Counter] = "c:\img\Style" + ALLT(STR(my_Counter)) + ".bmp"
>ENDFOR
>
>I can only see the picture when the combo box list is open. When it is not, it only shows me a number. How do I force it to show the picture all the time. (like when I am going up and down by Up and Dn arrow keys.
>
>Thank you,
>Ali




Don't use a VFP6 combo for this (very old version, time to upgrade don't you think?). Use ImageCombo ActiveX Control (MSComCtl.ocx). Works fine with VFP and allows you to put pictures in all (or some) of the combo lines (records). I use it for example to display country flags for a Pick a Country combo.

This very same example is in the book Megafox by Marcia Akins, Andy Kramek and Rick Schummer (page 259), from Hentzenwerke.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform