Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Communicating between forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00143896
Message ID:
00143910
Vues:
28
>>>>>I have a situation where instead of one large form, I'd like to have a bunch of smaller forms on the screen at once. This would allow the user to move them around or minimize them individually. All these forms are related to each other, so when the user does something on one form, it needs to affect the other forms.
>>>>>
>>>>>How do I refer to the controls on one form from another form? I'd also like them to use the same datasession. Basically, I want the control of one large form, but broken into smaller windows.
>>>>>
>>>>>Any ideas?
>>>>>
>>>>>-Michelle
>>>>
>>>>Hi Michelle,
>>>>
>>>> I think the approch you have will not give user much flexiblility to work with too many forms on the desktop. Again you will have problems of refreshing controls on form whenever any change is made to any of these forms. This becomes worse when forms have Private DataSession. so i would advise you to use
>>>>PageFrames and have as many pages as you want in it(even another pageframes).
>>>>
>>>>Bye
>>>>Jayesh
>>>
>>>But you can only see one page at a time with pageframes. These various things need to all be on the desktop at once. It's for dispatching, so there'll be a map, a list of trips, a list of vehicles, information on the current point on the map, information on the current trip, etc. The user will have some or all of these visable at once. I want them to be able to minimize ones they aren't using and resize ones they need to be bigger/smaller. I just don't see how to do this on one form? Is there someway to let the user resize and move controls on a form?
>>>
>>>Thanks,
>>>
>>>-Michelle
>>
>>Well, If you have decided to use multiple forms, here is a suggetion.
>>
>>Create a PUBLIC array and store reference of each form being opened into it.
>>
>>PUBLIC ARRAY gaForms[10]
>>
>>*-- Here you need to keep an accumulator which holds subscript of this array.
>>gni = 1
>>
>>DO FORM NAME gaForms[gni]
>>gni = gni + 1
>>
>>
>>Bye
>>Jayesh
>
>Whether or not I use multiple forms depends a lot on my second question. Is it possible to let the user move/resize controls on a form?
>
>Thanks,
>
>-Michelle

It is not possible(to be more accurate ) to move the controls on the form but you can resize the form so that all controls inside it gets resized. There are several utilities available under File Section of UT. Have look at them.

Bye
Jayesh
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform