Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A control for show legends with colors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00531062
Message ID:
00531120
Vues:
11
>Hello people, i need show legends for an app with maps, the control is done but i dont have space for the legend (black- salesman, yellow- final client, etc), how i can put differents colors in a listbox? or differents colors in a grid is that possible? or and free activex for make this job :-) (i preffer fox code please)
>
>with Best Regards
>
>Francisco Morosini

Create a table to store the legend captions in and also have a field to store the RGB color value to use for that caption. Then have your second form scan that table and add a container object for each legend needed. Set the container backcolor property to that value in the table, then add a label to the right of that container object and set its caption to the value in the table. Make sure the form is not modal. You can also remove the closable and min/max buttons so you can control when to release the form. Leave the title bar so the user can move it where it is less obtrusive.

As for setting the height of the form, you can also do that once you determine how many containers have to be added.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform