Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Communicating between forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143896
Message ID:
00143904
Views:
27
>>>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
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform