Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture in Combo!
Message
From
03/11/2005 10:54:44
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
03/11/2005 10:21:41
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:
01064985
Views:
15
Alex,

Great information, thanks! I want to provide a checkmark beside only certain default records in the combobox, to show the user they don't need to look at them.

Irv.


>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform