I tried several ways to force the FormResize event to fail without success, including SetWindowPos. The following code works very well when the form changes with the mouse, but I also need to call it manually with the code. I do not want the form to change in any way.
procedure TFormMain.FormResize( Sender: TObject );
begin
dxDockPanelFolders1.Height := dxVertContainerDockSite1.Height div 3;
dxDockPanelFiles1.Height := dxVertContainerDockSite1.Height div 3;
dxDockPanelPreview1.Height := dxVertContainerDockSite1.Height div 3;
end;
In any case, I do not see to accomplish this when searching the Internet.
source
share