Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShowWindow at RunTime
Message
From
08/11/2019 11:21:02
 
 
To
08/11/2019 10:58:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671819
Message ID:
01671821
Views:
73
>Hi @All,
>
>a Customer wants do "Dock out" a Form at runtime out of our Application.
>At Design time it is the Property ShowWindow Property to set to 2.
>
>But at RunTime this Property cant be changed.
>
>Is there a way to do it otherwise?

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. :-)

Something else you might try is to always present it as ShowWindow = 2, but when it's in "Dock Back" mode, pass in a parent to the encapsulating window and have it present within those borders, and have it closely monitor and track with the parent form it's supposed to be inside (the parent form can do this so when it's moved, it auto moves the ShowWindow = 2 form).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform