Changeset 488 for trunk/NewView/MainForm.pas
- Timestamp:
- Oct 25, 2023, 2:23:54 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r487 r488 3828 3828 if WinQueryWindowPos( hTopWindow,TopHelpWindowPos ) then 3829 3829 begin 3830 // [ALT 2023-10-2 2] ...but only if it's fully on the screen3830 // [ALT 2023-10-24] ...but only if it's fully on the screen 3831 3831 if ( TopHelpWindowPos.X >= 0 ) and 3832 ( TopHelpWindowPos.X + TopHelpWindowPos.CX+ Offset <= Screen.Width ) and3833 ( TopHelpWindowPos.Y >= 0) and3834 ( TopHelpWindowPos.Y + TopHelpWindowPos.CY+ Offset <= Screen.Height )3832 ( TopHelpWindowPos.X + Width + Offset <= Screen.Width ) and 3833 ( TopHelpWindowPos.Y >= Offset ) and 3834 ( TopHelpWindowPos.Y + Height + Offset <= Screen.Height ) 3835 3835 then 3836 3836 Begin … … 3846 3846 end; 3847 3847 3848 // got the reference position, now apply the offset 3849 Left := Left + Offset; 3850 Bottom := Bottom - Offset; 3848 // got the reference position, now apply the offset (but staying on screen) 3849 if Left + Width + Offset <= Screen.Width then 3850 Left := Left + Offset; 3851 Bottom := Max( 0, Bottom - Offset ); 3851 3852 3852 3853 // I guess I am leaving width/height out for compatibility...?
Note:
See TracChangeset
for help on using the changeset viewer.