Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (55 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Headlines

 
  Register To Post  

Help with workbench windows
Just popping in
Just popping in


See User information
I am looking into trying to create a small and simple utility, and I would like a little help.

How can I create a widget/utility with transparent background and no border?

I have installed codebench and I am looking at doing development i C.

Maybe there are some docs I just havent found.

-- had to edit, when I realized the missleading title :)


Edited by yssing on 2013/4/3 9:19:56
Alien Air Attack

SAM440@733 mhz as main amiga.
Go to top
Re: Help with workbench windows
Home away from home
Home away from home


See User information
No border is easy:

WA_Borderless,FALSE,

You'll likely not want the various gadget either then so

WA_SizeGadget
WA_DragBar
WA_DepthGadget
WA_CloseGadget

should also be FALSE

transparent background is more complex and something I've never done.

But I believe there is ahook which handles that and you can use a bitmap to define the transparency.


From the autodocs:

The following tags only have an effect when the window is opened on a
hicolor/truecolor screen using off-screen rendering and compositing.

WA_AlphaClips - (struct ClipRect *) The ClipRects that define the
alpha map of the window. The window must be not a GimmeZeroZero
window. See layers.library/ChangeLayerAlpha() for more. (V53)

WA_AlphaHook - (struct Hook *) The hook function used to generate
window alpha map on the fly. The window must be not a GimmeZeroZero
window. See layers.library/ChangeLayerAlpha() for more. (V53)

WA_Opaqueness - (UBYTE) The initial overall opaqueness of the window.
It can range from zero (invisible) to 255 (fully opaque). It will
be combined with the global opaqueness level for this type of
window as selected by the user in GUI preferences, unless you set
WA_OverrideOpaqueness to TRUE. Defaults to 255. (V53)

WA_OverrideOpaqueness - (BOOL) If TRUE, the window opaqueness set via
WA_Opaqueness will never get affected by any global opaqueness
level from user preferences. If you use this, make sure to offer
an alternate way for the user to set his preferred opaqueness for
the windows of your application. Defaults to FALSE. (V53)

WA_FadeTime - (ULONG) The duration of gradual transitions in window
opaqueness, expressed in microseconds. This applies to fade-in
(window opening), fade-out (window closing) and any subsequent
changes of the WA_Opaqueness attribute. If zero, no fade effect
is applied on window opaqueness changes. Defaults to zero. (V53)

WA_NoHitThreshold - (LONG) Any pixel of the window whose opaqueness is
less than or equal to the specified amount will be treated as if
it were intangible, i.e. it will let mouse clicks pass through to
windows behind it. Possible values range from zero (only fully
transparent pixels are intangible) to 255 (no pixel in the window
can ever be hit). Additionally, -1 will make the whole window
tangible, even where it is fully transparent.
Use with care, as making opaque areas not hittable (or vice versa)
may easily confuse the user. Defaults to 16. (V53)


Go to top
Re: Help with workbench windows
Just popping in
Just popping in


See User information
Thanks :)

Alien Air Attack

SAM440@733 mhz as main amiga.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project