Changeset 458
- Timestamp:
- Feb 17, 2023, 2:14:04 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Components/MultiColumnListBox.pas
r396 r458 38 38 function GetParentColor: boolean; 39 39 function GetParentShowHint: boolean; 40 function GetThePopupMenu: TPopupMenu; 40 function GetThePopupMenu: TPopupMenu; 41 41 function GetShowHint: boolean; 42 42 // procedure SetEnabled(NewState:Boolean); override; … … 117 117 property Selected[ Index: longint ]: boolean read GetSelected write SetSelected; 118 118 119 procedure SetColumnWidth( const Index: Integer; 120 const NewWidth: Integer ); 121 119 122 property Parent; 120 123 … … 176 179 uses 177 180 StringUtilsUnit; 178 181 179 182 { TMultiColumnListBox } 180 183 … … 455 458 end; 456 459 460 procedure TMultiColumnListBox.SetColumnWidth( const Index: Integer; 461 const NewWidth: Integer ); 462 begin 463 FHeader.Sections[ Index ].Width := NewWidth; 464 Layout; 465 Invalidate; 466 end; 467 457 468 procedure TMultiColumnListBox.Notification( AComponent: TComponent; 458 469 Operation: TOperation); … … 603 614 begin 604 615 FHeader.Height := Value; 616 Layout; 605 617 end; 606 618 -
trunk/ConfigApps/MainFormUnit.pas
r416 r458 7 7 8 8 const 9 AppVersion = 'V1.2. 0'; // $SS_REQUIRE_NEW_VERSION$9 AppVersion = 'V1.2.1'; // $SS_REQUIRE_NEW_VERSION$ 10 10 11 11 type … … 49 49 LngDirectoryDoesNotExist: String; 50 50 LngSaveAnyway: String; 51 Procedure MainFormOnSetupShow (Sender: TObject); 51 52 Procedure ParametersEditOnChange (Sender: TObject); 52 53 Procedure RestoreButtonOnClick (Sender: TObject); … … 183 184 '' ); 184 185 end; 186 187 Procedure TMainForm.MainFormOnSetupShow (Sender: TObject); 188 Begin 189 ScaleForm( self, 7, 14 ); 190 ItemsListBox.SetColumnWidth( 0, trunc( Width * 0.3 )); 191 End; 185 192 186 193 Procedure TMainForm.ParametersEditOnChange (Sender: TObject); … … 354 361 Bottom := ( Screen.Height - Height ) div 2; 355 362 363 ItemsListBox.ItemHeight := Font.Height + 2; 364 ItemsListBox.HeaderHeight := Font.Height + 2; 365 356 366 end; 357 367
Note:
See TracChangeset
for help on using the changeset viewer.