How to determine in C++ Builder XE, if window is currently docked? All windows in my application are derived from base class TForm. How to catch change from docked to undocked state and vice versa?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Form’s
HostDockSiteproperty will be non-NULLwhen docked, anNULLotherwise.There is no specific notification for when the
HostDockSitechanges, but you can override the form’s virtualDock()and/orDoDock()methods to check if theHostDockSitechanges when calling the inherited methods. Alternatively, override the Form’s virtualSetParent()method and check for thecsDockingflag in the Form’sControlStateproperty.