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:
00545069
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
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
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform