[Qt] TabBar close buttons

zeljko zeljko at holobit.net
Sat Nov 29 09:37:56 CET 2008


On Saturday 29 November 2008 04:18, Paul Ishenin wrote:
> zeljko wrote:
> > Hi all,
> >
> > I've created patch to get tabbar buttons for TCustomNotebook (custom
> > paint). here are screenshoots:
> >
> > http://www.holobit.net/laztabbtnlinux.png
> > http://www.holobit.net/laztabbtnxp.png
> > http://www.holobit.net/laztabbtnmac.png
> >
> > Tab buttons are enabled on ide source editor.
> >
> > any clues ? should I commit ? ;)
>
> Ofcource. Why not? Only ide have an option to show them in the source
> editor or not. Hope you've made them similar to gtk (I mean using the
> same WSClasses methods).


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 :)

>
> 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