[Gambas-user] gb.gtk / ReplaceSyntax

Daniel Campos danielcampos at ...282...
Fri Jul 22 11:07:11 CEST 2005


Hi:

1) Here's gb.gtk 050722 "yesterday was my birthday" :

* FIXED:  "Show" calls to "ShowModal" if current Window is modal.
* NEW:    8 bytes less wasted per container.
* FIXED:  "Frame" children position fixed.
* FIXED:  "TabStrip" can display accelerators in labels. BackGround and 
ForeGround properties
          fixed. Some less memory wasted per TabStrip widget.
* NEW:    "Window" Maximized, Minimized and FullScreen properties are 
working. State removed.
* FIXED:  "Dialog" class now implements Dialog.paths and OpenFile(Multi) 
to be compatible with
          the gb.qt component.
* FIXED:  "Window" now has two related properties "Mask" and "Picture" 
in order to be
          compatible with the gb.qt implementation. Masking works 
correctly now. Using a Picture
          with Mask=FALSE just uses the Picture as background for the 
Window.
* FIXED:  "Plugger" control now is called "Embedder" in order to be 
compatible with
          the gb.qt implementation. Methods, Events and Properties names 
changed too.
* NEW:    "Application.Embedder" added to be compatible with gb.qt 
implementation.


Benoît, you can find a function there for you (placed at gtrayicon.cpp), 
called XTray_RequestDock:

void XTray_RequestDock(Display *xdisplay,Window icon)


You just need to create a window able to work with the XEMBED protocol, 
(I used GtkPlug, I think you
can use 
<http://doc.trolltech.com/solutions/3/qtxembed/qtxembedclient.html>QtXEmbedClient 
window 
<http://doc.trolltech.com/solutions/3/qtxembed/qtxembedclient.html>), 
and after it is realized, pass the default display and the native window id
of that Window to the function, to embed that window in the System Tray. 
I suppose you will add a QImage inside
the QTXembedClient widget to show the icon. The rest of code (event, 
properties, methods) does not need
to be shared, as the widget works exactly as if it were placed in a 
normal window.



2) I've updated the ReplaceSyntax miniprogram to help translating source 
code to the Gambas-1.9.12 version:

http://www.binara.com/gambas-wiki/bin/view/Gambas/ChangeProcessSyntax


Regards,

D. Campos





More information about the User mailing list