Hi Philipp,

Sorry for the delay :-/

Philipp Lohmann - Sun Germany a écrit :

search another solution in
salnativewidgets-gtk.cxx : there are promising methods like NWGetButtonArea() and several other.

Pierre told me on IRC he already tried, without any success: values are modified, but never applied.


The actual hit testing is done in the overloaded SalGraphics::hitTestNativeControl method, so you can implement your own sensitive areas there.

Thank you very much !

I think I have understood : hitTestNativeControl type is boolean, and when tested, everything can be redefined "on the fly"

This means we have to define all native controls for scrollbar inside this function. Same for every control we need (maybe text into listboxes, with blue aque for selected text)

If so, this is now very clear :-)


Note : my first try was to add return TRUE => scrollbar controls were not usable anymore


The getNativeControlRegion is used for drawing purposes (so the buttons are drawn at the positions you tell there).

Ok, thank you for the correction  :-)

Reading more the file (3500 lines .. ) GtkSalGraphics::updateSettings( AllSettings& rSettings ) looks similar to the abstraction used with DtIntegrator in Aquacolors cws : using rSettings.SetStyleSettings() in updatesettings(), I think it should be possible to draw the aqua theme using this method.

That is exactly the same, yes.

I think we could add some features here, if no other solution works, implementing the same as we did for aquacolors.


I think you are on the right track.

Ufff :-)


I think it should be possible to achieve native look by just changing you overload SalGraphics implementation.

I think so too.

If the independent layer does not support something (or has bugs) then of course we can change that.

Indeed, but we'll try hitTestNativeControl() before.

BTW, thank you very much (you and Stephan and other) for your work in salnativewidget-gtk.cxx : this helped us a lot, really !

Last but not least ... maybe a documentation does exist ?  :-)


Sorry, no documentation available :-(

Ok : we will describe everything on the wiki.

See : http://wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_-_Native_Controls
and : http://wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_-_Scrollbar

+ the excellent document  about Native Widget Framework :-)


Kind regards,
Eric Bachard

--
<ericb at openoffice |dot_ org>
Francophone OpenOffice.org Commmunity developer (Linux PPC / Mac OS X / X11)
See : <http://fr.openoffice.org>

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

Reply via email to