Changeset 373 for trunk/Packages
- Timestamp:
- Jan 2, 2025, 11:17:24 PM (3 weeks ago)
- Location:
- trunk/Packages/Common/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Forms/FormList.lfm
r358 r373 1 1 object FormList: TFormList 2 2 Left = 1040 3 Height = 3 003 Height = 360 4 4 Top = 540 5 Width = 4 005 Width = 480 6 6 Caption = 'List' 7 ClientHeight = 3 008 ClientWidth = 4 009 DesignTimePPI = 1 207 ClientHeight = 360 8 ClientWidth = 480 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy … … 14 14 object ListView1: TListView 15 15 Left = 0 16 Height = 26816 Height = 322 17 17 Top = 0 18 Width = 4 0018 Width = 480 19 19 Align = alClient 20 20 Columns = < 21 21 item 22 22 Caption = 'Name' 23 Width = 38923 Width = 467 24 24 end> 25 25 MultiSelect = True … … 40 40 object ToolBar1: TToolBar 41 41 Left = 0 42 Top = 268 43 Width = 400 42 Height = 38 43 Top = 322 44 Width = 480 44 45 Align = alBottom 45 46 ParentFont = False … … 53 54 end 54 55 object ToolButton2: TToolButton 55 Left = 3 056 Left = 36 56 57 Top = 2 57 58 Action = AModify 58 59 end 59 60 object ToolButton3: TToolButton 60 Left = 5961 Left = 71 61 62 Top = 2 62 63 Action = ARemove 63 64 end 64 65 object ToolButton4: TToolButton 65 Left = 8866 Left = 106 66 67 Top = 2 67 68 Action = AClone … … 69 70 end 70 71 object ActionList1: TActionList 71 Left = 17472 Top = 1 3372 Left = 209 73 Top = 160 73 74 object AAdd: TAction 74 75 Caption = 'Add' … … 101 102 end 102 103 object PopupMenu1: TPopupMenu 103 Left = 294104 Top = 1 33104 Left = 353 105 Top = 160 105 106 object MenuItem1: TMenuItem 106 107 Action = AAdd -
trunk/Packages/Common/Forms/FormList.pas
r358 r373 204 204 ItemFields: TItemFields; 205 205 ItemField: TItemField; 206 DrawRect: TRect; 206 207 begin 207 208 ItemFields := TItem(Item.Data).GetFields; 208 209 try 209 210 ItemField := ItemFields[SubItem]; 210 if ItemField.DataType = dtColor then211 with ListView1.Canvas dobegin211 with ListView1.Canvas do 212 if ItemField.DataType = dtColor then begin 212 213 Brush.Color := TItem(Item.Data).GetValueColor(ItemField.Index); 213 214 Brush.Style := bsSolid; 214 FillRect(Item.DisplayRectSubItem(SubItem, drBounds)); 215 end; 215 DrawRect := Item.DisplayRectSubItem(SubItem, drBounds); 216 {$IFDEF LCLQT5} 217 // TODO: Wrong rectangle width on Qt5 218 if DrawRect.Width > ListView1.Columns[SubItem].Width then 219 DrawRect.Width := ListView1.Columns[SubItem].Width; 220 {$ENDIF} 221 FillRect(DrawRect); 222 end; 216 223 finally 217 224 ItemFields.Free;
Note:
See TracChangeset
for help on using the changeset viewer.