Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-23 Thread Martin Schreiber
On Saturday 22 October 2016 22:28:22 Krzysztof wrote: > Mmm just noticed that my extra text is cut in subnodes (see attached > screenshot). One char offset. This is my current code: > The shift value is in "variable.treelevelshift": " procedure TGenericNode.drawimage(const acanvas: tcanvas;

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-22 Thread Krzysztof
Mmm just noticed that my extra text is cut in subnodes (see attached screenshot). One char offset. This is my current code: type { TGenericNode } TGenericNode = class(ttreelistedititem) private FExtraText: String; public property ExtraText: String read FExtraText write

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-22 Thread Martin Schreiber
On Friday 21 October 2016 22:58:42 Krzysztof wrote: > 4. Why did you changed params order in drawimage virtual method? Just > wondering what was a reason from technical view Because in most or even all other drawing procedures canvas is the first parameter. Martin

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-22 Thread Martin Schreiber
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

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Krzysztof
4. Why did you changed params order in drawimage virtual method? Just wondering what was a reason from technical view -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org!

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Krzysztof
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

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 13:47:53 Martin Schreiber wrote: > > 4. I would need to draw icon (in root and subnode) but don't see any > > > > > imagelist and imagenr in ttreeitemedit or twidgetgrid > > They are in ttreeitemedit.itemlist property. > The imagelist-index is in TListItem.ImageNr.

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Friday 21 October 2016 13:11:18 Krzysztof wrote: > 2016-10-21 13:02 GMT+02:00 Krzysztof : > > 1. Can't turn off auto text select on row click. I would like even > > disable text selecting totally > > 2. Can't turn off focus rect. It is drawed even if co_drawfocus is false > >

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Krzysztof
2016-10-21 13:02 GMT+02:00 Krzysztof : > > 1. Can't turn off auto text select on row click. I would like even disable > text selecting totally > 2. Can't turn off focus rect. It is drawed even if co_drawfocus is false > (globaly and localy for column) > 3. How to disable auto text

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Krzysztof
2016-10-21 13:02 GMT+02:00 Krzysztof : > > 1. Can't turn off auto text select on row click. I would like even disable > text selecting totally > 2. Can't turn off focus rect. It is drawed even if co_drawfocus is false > (globaly and localy for column) > 3. How to disable auto text

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-21 Thread Martin Schreiber
On Thursday 20 October 2016 18:25:08 Martin Schreiber wrote: > It is possible to add dynamic position and size correction to > ListItemLayoutInfoTy like ListItemLayoutInfoTy.Variable.Extra.Image but it > is not cheap. I still don't really understand the purpose, please explain > again. > I did it

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Martin Schreiber
On Thursday 20 October 2016 17:06:45 Krzysztof wrote: > 2016-10-20 8:57 GMT+02:00 Martin Schreiber : > > git master db394652aced3fc3ad32363c096eb22fe2d78e9f calls the class from > > itemlist.itemclass parameter. > > You probably don't need to use calcitemlayout(), it is called

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Krzysztof
2016-10-20 8:57 GMT+02:00 Martin Schreiber : > > git master db394652aced3fc3ad32363c096eb22fe2d78e9f calls the class from > itemlist.itemclass parameter. > You probably don't need to use calcitemlayout(), it is called only one > time. > Its main purpose is to handle different

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Martin Schreiber
On Wednesday 19 October 2016 19:09:50 Martin Schreiber wrote: > > > Second question for > > this case: How to instead of hardcoded '40' set it dynamically for > > example textsize('abc').cx. I guess that I need access to canvas but > > don't know how to get it from that place > > An asynchronous

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-20 Thread Martin Schreiber
On Wednesday 19 October 2016 19:09:50 Martin Schreiber wrote: > On Wednesday 19 October 2016 16:38:14 Krzysztof wrote: > > 2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > > Override "calcitemlayout()". > > > > Mmm, seems that this methods is never called: > > Because of: > " >

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 19:27:28 Krzysztof wrote: > 2016-10-19 19:25 GMT+02:00 Martin Schreiber : > > If the widget is focused the caption will be drawn by TInplaceEdit. > > > Can I disable TInplaceEdit? I don't need edition mode, just readonly > treeview How should the

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Krzysztof
2016-10-19 19:25 GMT+02:00 Martin Schreiber : > > If the widget is focused the caption will be drawn by TInplaceEdit. > > Can I disable TInplaceEdit? I don't need edition mode, just readonly treeview --

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 16:22:59 Krzysztof wrote: > > > > Maybe overriding "drawimage()" is better. > > Thanks, now it is working, almost. When tree item is selected then seems > that different "draw" method is called because my text disappear but > caption is drawed. Which one is it? If the

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Wednesday 19 October 2016 16:38:14 Krzysztof wrote: > 2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > Override "calcitemlayout()". > > Mmm, seems that this methods is never called: > Because of: " function ttreeitemedit.getitemclass: listitemclassty; begin result:=

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Krzysztof
2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > Override "calcitemlayout()". > Mmm, seems that this methods is never called: class procedure TRootNode.calcitemlayout(const asize: sizety; const ainnerframe: framety; const list: tcustomitemlist; var info:

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Krzysztof
2016-10-19 9:08 GMT+02:00 Martin Schreiber : > > The white background is drawn by frame.colorclient. Please set > T*Grid.Frame.ColorClient to cl_transparent. > Warning: Grids use window scrolling in order to optimise performance. So > for > example in order to show a new row on

Re: [MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-19 Thread Martin Schreiber
On Tuesday 18 October 2016 22:11:28 Krzysztof wrote: > Hi Martin, > > Long time :) . My last project was aborted (not due to MSE) so there was no > sense to continue porting from Lazarus. But I started new one and want to > make it on MSE from the beginning. > > Have questions about twidgetgrid: >

[MSEide-MSEgui-talk] Transparent twidgetgrid

2016-10-18 Thread Krzysztof
Hi Martin, Long time :) . My last project was aborted (not due to MSE) so there was no sense to continue porting from Lazarus. But I started new one and want to make it on MSE from the beginning. Have questions about twidgetgrid: 1. Is it possible to make background and frame transparent?