eric.bachard wrote:
Philipp Lohmann - Sun Germany a écrit :
The Unix implementation also has a plugin concept to allow for
integration of different native toolkits (currently gtk and Qt) which
became necessary for the implementation of Native Widget Framework
(NWF) to display controls like their normal desktop counterparts.
What means NWF there ? QT or gtk or ..something else or all
possibilities in same time ?
Native Widget Framework was impleneted to make controls (buttons,
checkboxes and the like) look more like their native desktop
counterparts. This is achieved by making use of the theming engine of
the native toolkit. Since on Unix there is more than one desktop (mostly
Gnome and KDE) it was necessary to decide at startup, which desktop is
in use and then dynamically loading the native toolkit (Qt for KDE, gtk
for Gnome). These are not used at the same time. Anyway that is not a
problem that you would have on MacOSX.
Sorry, I have no knowledge at all about this part, (excepted the
DTIntegrator in mind in fact), but I feel something very important for
us. e.g. how modify current controls ?
What is possible, what is not, is it possible to define new buttons ? Is
it possible to use NWF without use X11 there ? ( /me interested ) ...
but maybe I'm talking about another module now :-)
NWF is basically a part of the SalGraphics interface. The methods
hitTestNativeControl, drawNativeControl, getNativeControlRegion and
IsNativeControlSupported can be implemented to draw controls with native
methods. If a native control is supported, then it gets drawn via
drawNativeControl rather than the default vcl look.
So yes, you can draw buttons any way you like. If by "Defining new
buttons" you mean implementing new kinds of controls however this is not
in the scope of NWF, but i guess this is not what you had in mind.
Kind regards, pl
--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
-- Author unknown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]