transparent background in a widget

This is a discussion on transparent background in a widget within the Xwindows forums, part of the Tools category; Hi, I created a cross-platform GUI toolkit called fpGUI. It talks directly to XLib and tries to have as little as possible dependencies as possible. The toolkit is a "windowed" ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > Xwindows

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-29-2008, 02:40 AM
Default transparent background in a widget

Hi,

I created a cross-platform GUI toolkit called fpGUI. It talks directly
to XLib and tries to have as little as possible dependencies as
possible. The toolkit is a "windowed" toolkit - every widget is a window.

For example: If I have one Form (window) with a Button and TextLabel
component, that totals three windows. One top-level window and two
embedded windows.

I would like the TextLabel or Button widgets to have transparent
backgrounds. My goal is to tile a bitmap on the Form canvas and have the
TextLabel overlay on top of that.

Is it possible to create widgets with transparent background? If so,
has anybody got some sample code (or know of another toolkit I can look
at) or a list of XLib API's I need call?

Regards,
- Graeme -

__________________________________________________ _____
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
Reply With Quote
  #2  
Old 09-29-2008, 10:18 AM
Default Re: transparent background in a widget

On Sep 28, 11:40*pm, Graeme Geldenhuys wrote:
> Hi,
>
> I created a cross-platform GUI toolkit called fpGUI. It talks directly
> to XLib and tries to have as little as possible dependencies as
> possible. The toolkit is a "windowed" toolkit - every widget is a window.
>
> For example: If I have one Form (window) with a Button and TextLabel
> component, that totals three windows. One top-level window and two
> embedded windows.
>
> I would like the TextLabel or Button widgets to have transparent
> backgrounds. My goal is to tile a bitmap on the Form canvas and have the
> TextLabel overlay on top of that.
>
> Is it possible to create widgets with transparent background? *If so,
> has anybody got some sample code (or know of another toolkit I can look
> at) or a list of XLib API's I need call?
>
> Regards,
> * - Graeme -
>
> __________________________________________________ _____
> fpGUI - a cross-platform GUI toolkit using Free Pascalhttp://opensoft.homeip.net/fpgui/


Look at XShapeCombineMask()

Also, the Xmu libraries have done this; see XmuReshapeWidget()
--
Fred Kleinschmidt
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 12:54 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger