Non-rectangular (shaped) main window that has non-rectangular child windows.



Hello,

I have started to learn how to create shaped, non-rectangular windows with the XShape* functions.

I can now create a shaped main window. I set or create a bitmap mask for it and display the window. This solutions works very well, even when I use Cairographics to draft the window's shape. I mostly use XLib though.

See an example 1 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384231#post3384231

Example 2 (moma's posting):
http://ubuntuforums.org/showthread.php?p=3384886#post3384886
----- -----

Now, I want to go further.

I have tried to create a shaped main-window and put some shaped child controls (child windows) on it. But I cannot make it work (the child windows ar enot visible) because I do not understand all the intricatenesses of the XShape* functions.

XShape* functions:
http://linux.die.net/man/3/xshapecombinemask

Please, tell me how to do it (a non-rectangular main-window with many non-rectangular child controls). Can you provide an example?

Do I have to sum up the masks of childwindows and put it on the main-window?

Help and you will get the code in return :-)

TIA.

// moma
http://www.futuredesktop.org

PS. cannot live in a rectangular (desktop) world anymore.

.



Relevant Pages

  • Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
    ... Have had a horrible cold and fever during the last 3 days and just starting to recover from that. ... I have started to learn how to create shaped, non-rectangular windows ... controls (child windows) on it. ... intricatenesses of the XShape* functions. ...
    (comp.os.linux.development.apps)
  • Re: draw over child controls
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... I've tried to draw a blue semi-transparent rectangle overriding panel's ... but child controls are always drawn over it. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Windows Classes
    ... Now, if a window contains child controls, you have to recusively walk the child controls; ... its child windows in order to see them. ... but they do not appear when enumerating the window's ... I think it should be related to windows classes (using ...
    (microsoft.public.vc.mfc)
  • Re: Non-rectangular (shaped) main window that has non-rectangular child windows.
    ... I have started to learn how to create shaped, non-rectangular windows ... controls (child windows) on it. ... intricatenesses of the XShape* functions. ...
    (comp.os.linux.development.apps)
  • Re: Close Button in Balloon Tooltip
    ... This a good suggestion. ... I was not sure that it is possible to add child controls to tooltip window ... because I want to be Windows 2000 compatible. ...
    (microsoft.public.win32.programmer.ui)