Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use a List box with pictures?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00032938
Message ID:
00032966
Vues:
37
Jean-René,

Don't know about VFP 5 problem you describe, but I can tell you that you will *not* solve this problem to your satisfaction in VFP 3.0!

There was a KnowledgeBase article (don't have the ref. right now) regarding the 60 items "limit" of VFP 3. It was said to be fixed in VFP 5.0, but that is no help to your VFP 3. problem.

Good luck,
Jim N


>I want to know how to use in a form a list box that can associate for each item of the list, a different bitmap. When the user clicks on an item of the list, the bitmap is changed. This is useful for a list that displays check marks.
>
>Foxpro 3.0
>I wrote a form in Foxpro 3.0. For the list, I use a list box with MultiSelect to false. I initialize the picture property of the list box in the Init event of the list box.
>For lnCount = 1 to this.list1.listcount
> this.picture[lnCount] = “check.bmp”
>endfor
>I modify the picture property in the Init event of the form since a parameter passed to the form can affect the bitmaps displayed in the list. In some cases, no bitmaps are displayed in the list. In the click event of the list box, I change the bitmap displayed.
>I encounter problems when the list contains more than 60 items. Some items of the list lose their picture values.
>
>Foxpro 5.0
>When I use in Foxpro 5.0 the form created in Foxpro 3.0, the list that was running fine in Foxpro 3.0 for less than 60 items, doesn’t display any bitmaps in Foxpro 5.0. The picture property seems to work differently in Foxpro 5.0.
>
>I am looking for a solution that can run in Foxpro 3.0 and in Foxpro 5.0. The requirements for the solution are:
>· It can display or not any bitmap.
>· The bitmap can be changed or not when the user clicks on the item.
>· The list can be displayed in several columns. The list can be ordered.
>· Items can be added or removed from the list.
>· Abilty to query the list to get the bitmap used for each item.
>· No restrictions on the number of items used in the list.
>
>If it can’t be done in Foxpro, do you know a product that can be used with Foxpro that does it?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform