Qt::WA_NoSystemBackground or Qt::WA_OpaquePaintEvent attributes on TTreeListView handle (viewport) should be used in that case.
Quote from: zeljko on March 06, 2011, 04:03:36 pmQt::WA_NoSystemBackground or Qt::WA_OpaquePaintEvent attributes on TTreeListView handle (viewport) should be used in that case.Thanks, now it works.But the mouse wheel doesn't
Do I have to download again to get the latest one ?
What do you mean by "mouse wheel doesn't work" ?
procedure TForm1.TreeListViewCustomItemDraw(sender: TObject; eventTyp_cdet: TCustomDrawEventTyp; item: TTreeListItem; var defaultDraw: Boolean);begin if item.SubItems.Count>0 then TreeListView.Font.Bold:=True else TreeListView.Font.Bold:=False;end;
I managed to do this:
procedure TExampleForm.TreeListView1CustomRecordItemDraw(sender: TObject; eventTyp_cdet: TCustomDrawEventTyp; recordItem: TTreeListRecordItem; var defaultDraw: Boolean);begin if recordItem.Parent.SubItems.Count>0 then TreeListView1.Canvas.Font.Style:=[fsBold] else TreeListView1.Canvas.Font.Style:=[];end;