Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShowWindow at RunTime
Message
From
11/11/2019 09:14:01
 
 
To
11/11/2019 02:51:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671819
Message ID:
01671830
Views:
64
>>Create two forms, with one having ShowWindow = 2, and the other whatever it is otherwise, and then when they click the "Dock Out" button, launch the other form with a reference to thisForm, and let it copy over all the data on that form and then issue a toParentForm.Visible = .f..
>>
>>When they "Dock Back" or whatever, update the toParentForm's properties and data, and then set toParentForm.Visible = .t., and then release thisForm.
>>
>>Depending on what data you have on the form this can be easy or hard. :-)
>Yes, for one oder two Froms i've made them save as class, and then in the Form i set the Property.
>But this is a lot of Work, i'm not sure that this will be done ;)

If you always present the form as ShowWindow = 2, then you can have it mimic a docked item by keeping it at its coordinates inside the parent / encapsulating form. It just needs to make sure its thisForm.left and thisForm.top track with any movements of the parent form.

Not the most elegant solution, but given what the customer is asking for it will work.
Previous
Reply
Map
View

Click here to load this message in the networking platform