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.
ComCtrls (i.e. TTreeView, TComboBox) loosing data when changing parent away from TLMDDockPanel
To get this to happen, the code that changes the controls parent should be in an action and executed from a ribbon (there may be other ways but I do know if definitely does not happen from a TButton.OnClick event).
Also, the control that is being moved must currently have the focus.
Please find the attached project to see a TListView loose its items when moving from a TLMDDockPanel but not when it is moved from a TPanel.
I have found a workaround that is external to LMD code but am not happy with it. What is the best workaround you can suggest?
I also found that this can be fixed in LMD code by bypassing TLMDDockPanel.SetParent if the parent is not changing but I don't know what else this might do! i.e..
procedure TLMDDockPanel.SetParent(...
begin
if AParent = Parent then
Exit;
Hope that helps and hope to hear back soon.
Eddie.

Comments