Changeset 373
- Timestamp:
- Jan 2, 2025, 11:17:24 PM (4 days ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMove.lfm
r365 r373 26 26 ParentFont = False 27 27 TabOrder = 0 28 OnClick = ButtonOkClick29 28 end 30 29 object ButtonCancel: TButton … … 114 113 Height = 58 115 114 Top = 80 116 Width = 2 75115 Width = 256 117 116 OnChange = TrackBarOnceChange 118 117 PageSize = 1 … … 158 157 object TrackBarRepeat: TTrackBar 159 158 Left = 96 160 Height = 58161 Top = 1 56162 Width = 2 69159 Height = 30 160 Top = 180 161 Width = 256 163 162 OnChange = TrackBarRepeatChange 164 163 PageSize = 1 -
trunk/Forms/FormMove.pas
r365 r373 28 28 TrackBarOnce: TTrackBar; 29 29 TrackBarRepeat: TTrackBar; 30 procedure ButtonOkClick(Sender: TObject);31 30 procedure ButtonOnceMaxClick(Sender: TObject); 32 31 procedure ButtonRemoveClick(Sender: TObject); … … 109 108 end; 110 109 111 procedure TFormMove.ButtonOkClick(Sender: TObject);112 begin113 114 end;115 116 110 procedure TFormMove.ButtonRemoveClick(Sender: TObject); 117 111 begin -
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.