Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox Click
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00602388
Message ID:
00602519
Views:
24
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform