Ignore:
Timestamp:
Mar 2, 2023, 1:58:25 AM (2 years ago)
Author:
ataylor
Message:

Fix various outstanding problems with dialog layout & scaling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/GlobalSearchForm.pas

    r465 r472  
    301301Procedure TGlobalSearchForm.GlobalSearchFormOnSetupShow (Sender: TObject);
    302302Begin
    303   ScaleForm( self, 8, 16 );
     303  ScaleForm( self, 9, 16 );
     304
    304305  // Fix scaling issues on some controls
    305   if SearchTextLabel1.Top > (SearchLocationComboBox.Top + 2) then
    306     SearchTextLabel1.Top := SearchLocationComboBox.Top + 2;
     306  SearchLocationComboBox.Top := SelectDrivesButton.Top + 3;
     307  SearchTextLabel1.Top := SelectDrivesButton.Top + 5;
    307308  Bevel.Bottom := ClientHeight - ResultsLabel.Top + 4;
    308   Led.Height := ResultsLabel.Height;
     309  Led.Height := 15;
    309310  Led.Width := Led.Height;
    310   Led.Top := ResultsLabel.Top;
     311  Led.Bottom := ResultsLabel.Bottom + 1;
     312  Led.Right := ResultsOutline.Right - 1;
     313
     314  SearchTextLabel1.XAlign := xaLeft;
     315  SearchTextLabel1.YAlign := yaTop;
     316
     317  Bevel.XStretch := xsFrame;
     318  Bevel.YAlign := yaTop;
     319
     320  LED.XAlign := xaRight;
     321  LED.YAlign := yaTop;
    311322
    312323  SearchButton.Align := alFixedRightTop;
     
    726737  SearchButton.YAlign := yaTop;
    727738
    728   SearchTextLabel1.XAlign := xaLeft;
    729   SearchTextLabel1.YAlign := yaTop;
    730 
    731739  SearchLocationComboBox.XStretch := xsFrame;
    732740  SearchLocationComboBox.YAlign := yaTop;
     
    734742  SelectDrivesButton.XAlign := xaRight;
    735743  SelectDrivesButton.YAlign := yaTop;
    736 
    737   Bevel.XStretch := xsFrame;
    738   Bevel.YAlign := yaTop;
    739 
    740   LED.XAlign := xaRight;
    741   LED.YAlign := yaTop;
    742744
    743745  ResultsLabel.XAlign := xaLeft;
Note: See TracChangeset for help on using the changeset viewer.