Changeset 69 for trunk/Packages
- Timestamp:
- Nov 28, 2020, 12:35:06 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UPersistentForm.pas
r68 r69 314 314 if State then begin 315 315 FormFullScreen := True; 316 FormNormalSize := Form.BoundsRect; 316 317 FormRestoredSize := Bounds(Form.RestoredLeft, Form.RestoredTop, Form.RestoredWidth, 317 318 Form.RestoredHeight); 319 FormWindowState := Form.WindowState; 318 320 ShowWindow(Form.Handle, SW_SHOWFULLSCREEN); 319 321 {$IFDEF WINDOWS} … … 322 324 end else begin 323 325 FormFullScreen := False; 324 if Form.WindowState = wsNormal then begin325 ShowWindow(Form.Handle, SW_SHOWNORMAL);326 //Form.BoundsRect := FormRestoredSize;327 end else if Form.WindowState = wsMaximized then ShowWindow(Form.Handle, SW_SHOWMAXIMIZED);328 326 {$IFDEF WINDOWS} 329 327 Form.BorderStyle := bsSizeable; 330 328 {$ENDIF} 329 ShowWindow(Form.Handle, SW_SHOWNORMAL); 330 if FormWindowState = wsNormal then begin 331 Form.BoundsRect := FormNormalSize; 332 end else 333 if FormWindowState = wsMaximized then begin 334 Form.BoundsRect := FormRestoredSize; 335 Form.WindowState := wsMaximized; 336 end; 331 337 end; 332 338 end;
Note:
See TracChangeset
for help on using the changeset viewer.