Changeset 176 for trunk/Packages/Common/FormEx.pas
- Timestamp:
- Jul 19, 2024, 8:29:45 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/FormEx.pas
r174 r176 13 13 private 14 14 FCounter: Integer; static; 15 FFirstShow: Boolean; 15 16 protected 16 17 procedure DoShow; override; … … 45 46 begin 46 47 inherited; 47 PersistentForm.Load(Self); 48 FullScreen := PersistentForm.FormFullScreen; 48 if not FFirstShow and (not (csDesigning in ComponentState)) then begin 49 FFirstShow := True; 50 PersistentForm.Load(Self); 51 FullScreen := PersistentForm.FormFullScreen; 52 end; 49 53 end; 50 54 … … 78 82 procedure TFormEx.DoClose(var CloseAction: TCloseAction); 79 83 begin 80 PersistentForm.FormFullScreen := FullScreen; 81 PersistentForm.Save(Self); 84 if (not (csDesigning in ComponentState)) then begin 85 PersistentForm.FormFullScreen := FullScreen; 86 PersistentForm.Save(Self); 87 end; 82 88 inherited; 83 89 end;
Note:
See TracChangeset
for help on using the changeset viewer.