Hi, how can I prevent a Delphi MDI application from showing the caption of the currently maximized MDI child in the caption of the MDI parent form?
Thank you in advance!
Hi, how can I prevent a Delphi MDI application from showing the caption of the currently maximized MDI child in the caption of the MDI parent form?
Thank you in advance!
haven't had a chance to test this, but:
in the child OnResize, test for WindowState = wsMaximized. If it is, then set Caption := '' If not, set caption as required - you will need to need to remember this.
You can't. MDI is outdated stuff, and support for it is deprecated (actually, it has been for years). The limitations probably won't ever be changed because of the deprecation.
Tweaking Gerry's answer as mghie suggested:
private
PreviousState: TWindowState;
procedure TMDIChildForm.FormResize(Sender: TObject);
begin
if PreviousState = wsMaximized then
Caption := 'Desired Caption'
else if WindowState = wsMaximized then
Caption := '';
PreviousState := WindowState;
end;