[Qt] TabBar close buttons

zeljko zeljko at holobit.net
Sat Nov 29 11:48:43 CET 2008


On Saturday 29 November 2008 10:35, Paul Ishenin wrote:
> zeljko wrote:
> > AFAIK, TNotebook have property to enable close buttons or not , not ide
> > only. I didn't use any WSClasses methods, just override paint method of
> > tabbar, and ask PtInRect(point, drawedbuttonrect) when click with mouse
> > :)
>
> Then you need to draw them only when TNotebook has this property
> enabled. I think you need to compare your implementation with gtk
> implementation to be sure you do it similar.

It is painted ONLY when that property is enabled :)

>
> Best regards,
> Paul Ishenin.
> _______________________________________________
> Qt mailing list
> Qt at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/qt



More information about the Qt mailing list