Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Containers and Listboxes
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00544994
Message ID:
00545116
Views:
17
Just to expand your idea a little bit: don't place these containers on the page at all. If user wants to use this container add it on the fly with the NewObject method (it's in VFP6.0) (check if it exists first). This way you would have two benefits:
1) Your form would load faster
2) You would not have the described problem (hopefullly :)

Best wishes,


>IMO, you have too much on the form. In a project where I am up to 21 different pages that a user has to move through, I created a form where I RemoveObject(CurrentPage) before I AddObject(NextPage). I created a ClassLib specifically for storing all the pages and the Container class used to create each page class. All pages are based on this Container subclass and are numbered sequentially.
>
>What I would do is something similar. Subclass each of the 14 containers. Then when the user makes a selection just RemoveObject(CurrentContainer) [if any], then AddObject(SelecteContainer). After you execute the AddObject, you have to make the object visible.
>
>>I have a pageframe with 2 pages. On each page there are 14 containers, each placed in the exact same position so that it looks as if there is only 1 container. In the Init event I use SETALL to make all of the containers visible and then explicity make visible the particular container that should always be seen first.
>>
>>Each of these containers has a listbox and several text boxes. The user has 14 choices and depending upon which choice he/she makes I set all of the containers Visible to .f. and then make the container pertinent to their choice become Visible.
>>
>>My problem is that only the listbox that is the container on top (In the form designer use "Bring to Front") will fire the double click method for the listbox. No matter what I can't get the others to fire and I cannot for the life of me figure out why.
>>
>>Any ideas?
>>
>>TIA,
>>George
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform