Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox Click
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00602388
Message ID:
00602519
Vues:
23
>>All I really want to have happen is a bmp shown next to each item based on logic when the listbox is created dynamically in code.
>
>Then why are you putting the code in the click event? Put the code in a custom method of the listbox class and call that from the Init and from the click.

I agree this is better design. However, this.click() in init should still work unless of course the items have not yet been created. I put the code in this.click() as a test just to see how the list would look with pictures and was unpleasantly surprized it did not work.

>I would bet the problem is not with calling the click anyway but in the timing >of when the Init fires during creation of the object. Try calling the click >of the listbox from a command button click and see if that works. If it does >then the problem is the firing order of events and not calling the click event.

Good idea. It was 2:00AM ... ;P
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform