Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tool for selecting a bit map
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022785
Message ID:
01023032
Views:
11
>>>Dear Fox Maniacs
>>>
>>>Does anybody have, or can point me to, a tool for selecting a bit map from a visual list? Thing is, I have a table of "facilities" e.g. Hospitals, post offices, shops, banks, et al, that are displayed on a MapInfo map. I want the user to be able to pick a symbol (small bit map) for each facility type, such that when he invokes the map, all facilities will be displayed with a meaningful symbol.
>>>
>>>'ppreciate it
>>>
>>>Terry
>>
>>Alright then, once upon a time I created a combo with images in it. But I haven't that system, I've forgotten how to do it and I can't find it in Help.
>>
>>If no-one can answer the above request, how to do this?
>>
>>Terry
>
>*** Iniot Event of the Combo
>
>FOR ntest = 1 TO 10
>    this.AddItem(TRANSFORM(nTest))
>    IF nTest % 2 == 0
>       this.Picture(ntest) = full_path_to_picture1
>    ELSE
>       this.Picture(ntest) = full_path_to_picture2
>    ENDIF
>NEXT
>
Thanks, BB

I was racking (wracking) my brains trying to do it through the PEM sheet.

I've been thinking about this problem more since yesterday. Obviously the user needs to be able to select an image against each facility type that is to appear on the map. Therefore, the images need to be in a table somewhere. I've just realised that I've never done anything like this before.

Presumably I'd store them in a table, alongside their paths (which I use in the combo Init, as you illustrated). So have you any ideas on how I do this? I keep glimpsing threads that say "don't use a general field to store an image", but what data type would hold the picture in the table, or do you ONLY store the path to it?


Cheers

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform