Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Containers and Listboxes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00544994
Message ID:
00545071
Vues:
16
You're probably right Mark. When I started this particular app there were only supposed to be a few containers so I went with the hide-n-seek method. I'll look into doing this though, a much neater solution.

21 PAGES! Phew, lucky you < grin >

>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
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform