Hi Eric,
On Thursday 05 October 2006 01:10, eric b wrote:
> Currently, this scrollbar is drawn, works, and even mousewheel works..
>
> We tried to respect/follow NWF "spirit" :
> AquaSalGraphics::IsNativeControlSupported() returns true -> nType is
> ok , getstate() works , DrawNativeControl() works fine two, and
> several controls are drawn.
>
>
> Everything seems to work excepted the button control area, because
> left/top control button is not located the same way for vcl and for
> aqua control : same behaviour, but different places.
>
> Vertical scrollbar
> vcl : top (Button1) / bottom (Button2)
> aqua: both at bottom
>
> Horizontal scrollbar:
> vcl : left (Button1) /right ( Button2)
> aqua: both on right
You have to use a special hack that is present just in the KDE NWF (the
Platinum Qt style this layout of scrollbars as well):
In AquaSalGraphics::IsNativeControlSupported() return also 'true' for the case
(nType == CTRL_SCROLLBAR) && (nPart == HAS_THREE_BUTTONS).
Then have a look at KDESalGraphics::getNativeControlRegion() in
vcl/unx/kde/salnativewidgets-kde.cxx, case CTRL_SCROLLBAR, search for the
comments
// Workaround for Platinum style scroll bars. It makes the
// left/up button invisible.
If you need more, ping me on IRC ;-)
Regards,
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]