Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Semi-transparent form - how?
Message
 
 
To
10/10/2002 07:31:17
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00709749
Message ID:
00709812
Views:
20
SetLayeredWindowAttributes only works on non-child windows. This means that only top-level forms and forms with the Desktop property to .T. are affected.

Also, this type of window attribute was introduced in Windows 2000 and later implemented in XP. It was not available prior to these OSes.

While you can't make the form translucent, you can do some cool (IMO) stuff with the form using my Form Transformer. Check out File#9829.

HTH.

>I'm trying to make my form semi-transparent using WinAPI SetLayeredWindowAttributes() (VFP6SP5,Win2000). When the form is "As Top-Level" (ShowWindow=2) this function works, otherwise (In Screen or In Top-Level form) - not. Why? Please, help!
>
>Code here:
>R=GetWindowLong(HWND,-20)
>R=bitor(R,0x00080000)
>SetWindowLong(HWND,-20,R)
>SetLayeredWindowAttributes(H,0,TransparencyLevel,2)
>
>Thanks.
>
>P.S. Can I get semi-transparent form under W9x?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform