Changeset 373 for trunk/Packages/Common/Forms/FormList.pas
- Timestamp:
- Jan 2, 2025, 11:17:24 PM (5 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.