Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very large numbers of pictures in VFP combos?
Message
From
27/10/2016 18:47:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/10/2016 14:52:19
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01642137
Message ID:
01642417
Views:
53
>>>I'm pretty sure that people have duplicated the VFP Combo Box functionality with a grid. This gives you the best of both worlds as grids can handle much more data than combos. Maybe you can find an existing control or create one yourself?
>>
>>Except the grid is exactly wrong tool for the task. If you want to have multiple pictures for the grid, you need one control per picture and a somewhat involved dynamiccurrentcontrol expression (probably a function) to select the right picture for the current row. Even though these controls can be built dynamically, somewhere during the .init() of the column or the grid, with the number of rows the OP is describing, I'm not sure that the grid won't be sluggish.
>
>Hi Dragan,
>
>if I remember correctly someone did this with a container control and it worked very well. They may have had to use a slightly complicated dynamicbackcolor expression, but if it works and works fast enough...

Yup, the reminder came this morning (my time). And the expression is quite simple, it's the sideeffects of the function it calls that do the job.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform