Changeset 488


Ignore:
Timestamp:
Oct 25, 2023, 2:23:54 PM (17 months ago)
Author:
ataylor
Message:

Small fix to positioning logic when existing window is open.

Location:
trunk/NewView
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/NewView/MainForm.pas

    r487 r488  
    38283828    if WinQueryWindowPos( hTopWindow,TopHelpWindowPos ) then
    38293829    begin
    3830       // [ALT 2023-10-22] ...but only if it's fully on the screen
     3830      // [ALT 2023-10-24] ...but only if it's fully on the screen
    38313831      if ( TopHelpWindowPos.X >= 0 ) and
    3832          ( TopHelpWindowPos.X + TopHelpWindowPos.CX + Offset <= Screen.Width ) and
    3833          ( TopHelpWindowPos.Y >= 0 ) and
    3834          ( 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 )
    38353835      then
    38363836      Begin
     
    38463846      end;
    38473847
    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 );
    38513852
    38523853      // I guess I am leaving width/height out for compatibility...?
  • TabularUnified trunk/NewView/VersionUnit.pas

    r486 r488  
    1717
    1818const
    19   Version =        'V2.19.8a'; // $SS_REQUIRE_NEW_VERSION$
    20   BldLevelVersion = '2.19.8a'; // Embedded for IBM BLDLEVEL tool
     19  Version =        'V2.19.8b'; // $SS_REQUIRE_NEW_VERSION$
     20  BldLevelVersion = '2.19.8b'; // Embedded for IBM BLDLEVEL tool
    2121  CopyrightMsg = 'Copyright 2005 Aaron Lawrence; 2006-2019 Ronald Brill';
    2222  LicenseMsg   = 'Licensed under the GNU Public License';
Note: See TracChangeset for help on using the changeset viewer.