Hi *,

On Thu, Oct 05, 2006 at 01:10:42AM +0200, eric b wrote:
> Implementing native control on Mac OS X (on aqua version) with Pierre  
> de Filippis, we need some help for the native scrollbar implementation.
> 
> 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
 
When using gtk, you can set this in the gtkrc of the theme. So is this
really handled within vcl? 

> Horizontal scrollbar:
> vcl : left (Button1) /right ( Button2)
> aqua: both on right

This is tied to the vertical buttons.

If you set
GtkScrollbar::has_backward_stepper = 0
GtkScrollbar::has_secondary_forward_stepper = 0
GtkScrollbar::has_forward_stepper = 1
GtkScrollbar::has_secondary_backward_stepper = 1

Then you have the toggles at the bottom (vertical) and the right
(horizontal).
You can use other combinations as well (i.e. up both at the top and at
the bottom, down only at the bottom) without any problem
 
> Our tests...
> [...] 
> What we have to do is simple : translate Button1 coordinates from  
> left to right with an offset value of mnThumbPixSize , and translate  
> the area without control on left, from a value equal to  
> Button1.width, to make vcl control match with aqua control area.

Does the gtk plugin really reorder the controls itself? - Do you really
need to do that in vcl?

I absolutely have no clue of the code, so don't give too much in what I
write...

ciao
Christian
-- 
NP: Blind Guardian - The Script For My Requiem

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to