General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only