Changeset 458 for trunk/Components
- Timestamp:
- Feb 17, 2023, 2:14:04 PM (2 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.