This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
TLMDDockPanel: easier way to get ActiveControl?
When I undock my TLMDDockPanel, and I need to access the currently active control in the floating form,
is there an easier way than this?
TLMDFloatingForm(Panel1.Parent.Parent).ActiveControl
I appreciate any help,
Cheers,
Alex
is there an easier way than this?
TLMDFloatingForm(Panel1.Parent.Parent).ActiveControl
I appreciate any help,
Cheers,
Alex

Comments
Panel.Site.FloatingForm.ActiveControl will actually generate one extra operation comparing to using
TLMDFloatingForm(Panel1.Parent.Parent).ActiveControl, so although your suggestion might be a bit more elegant, I'll stick with my first option.
Thanks anyway