Changeset 584 for Common/Forms/FormList.pas
- Timestamp:
- Jan 17, 2025, 8:00:49 AM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Forms/FormList.pas
r583 r584 72 72 SRemoveItems = 'Remove items'; 73 73 SRemoveItemsQuery = 'Do you want to remove selected items?'; 74 SNew = 'New';75 74 76 75 { TFormList } … … 129 128 FormItem := TFormItem.Create(Self); 130 129 try 131 TempEntry.Name := FList.GetNextAvailableName( SNew + ' ' + LowerCase(List.GetName));130 TempEntry.Name := FList.GetNextAvailableName(List.GetName); 132 131 FormItem.Item := TempEntry; 133 132 if FormItem.ShowModal = mrOk then begin … … 204 203 ItemFields: TItemFields; 205 204 ItemField: TItemField; 205 DrawRect: TRect; 206 206 begin 207 207 ItemFields := TItem(Item.Data).GetFields; 208 208 try 209 209 ItemField := ItemFields[SubItem]; 210 if ItemField.DataType = dtColor then211 with ListView1.Canvas dobegin210 with ListView1.Canvas do 211 if ItemField.DataType = dtColor then begin 212 212 Brush.Color := TItem(Item.Data).GetValueColor(ItemField.Index); 213 213 Brush.Style := bsSolid; 214 FillRect(Item.DisplayRectSubItem(SubItem, drBounds)); 215 end; 214 DrawRect := Item.DisplayRectSubItem(SubItem, drBounds); 215 {$IFDEF LCLQT5} 216 // TODO: Wrong rectangle width on Qt5 217 if DrawRect.Width > ListView1.Columns[SubItem].Width then 218 DrawRect.Width := ListView1.Columns[SubItem].Width; 219 {$ENDIF} 220 FillRect(DrawRect); 221 end; 216 222 finally 217 223 ItemFields.Free;
Note:
See TracChangeset
for help on using the changeset viewer.