On Friday 21 October 2016 22:56:42 Krzysztof wrote:
> Great! With your changes in drawimage() now it is working perfect, even
> better than with second column because caption ellipsis appear exactly when
> it meet my extra text.
> But still have few questions:
> 1. Root node has bold font and when I select that row then my extra text
> also is drawed with bold style.

Please try again with git master 3af530ad9b514fad16c5d94cf4c648220f3e0f89.

...
>
> 2. You wrote that this change is not *so* expensive. The goal for this
> treeview is to store around 10k records. Could this change slow down
> managing such count of items or your change is only related to paint
> "visible area"?

It slows down drawing the visible area a little bit. I assume it is not 
noticeable.

> 3. Possibly I'll need to show extra icon before standard icon but I'm not
> sure yet. Is it possible to do that without your changes in source code?
> I'm not afraid to redraw whole row by my self from beginning.
>
Take a look at MSEgit:
https://gitlab.com/mseide-msegui/mseuniverse/blob/master/tools/msegit/mainmodule.pas
"
procedure tgitdirtreenode.drawimage(const acanvas: tcanvas;
                               var alayoutinfo: listitemlayoutinfoty);
var
 int1: integer;
begin
 alayoutinfo.variable.extra.image.cx:= 16;
 inherited;
 if not alayoutinfo.variable.calcautocellsize then begin
  int1:= getoriginicon;
  if int1 >= 0 then begin
   with alayoutinfo do begin
    fowner.imagelist.paint(acanvas,int1,imagerect,[al_left,al_ycentered]);
   end;
  end;
 end;
end;
"

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to