on 2014 Sep 01 1:54 PM
We are working with PB 12.5
We would have a window transparent with a DataWindow that contains a Picture that is partially transparent.
We defined a Popup-Window that has BackColor transparent and contains only a DW that fills the whole window. This DW has also a transparent Background Color. It contains a png picture that is partially transparent.
Now we would expect, that only the non-transparent part of the picture of the dw is shown when opening the window.
Unfortunately there is a lightgray rectangular background, when the window is opend.
Are we making somethin wrong or is it not possible what we want ?
Thanks for any tip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Heiko,
we want to show a window like the one of my desktop (see left side of the app-window)
Therefore the main window must be completely transparent and the DW that fills the window also must be transparent as well as parts of the image that lies in the DW. I did so in my PB App but the background of the main window is light gray ...
Transfered to the example above it looks like (look at left side):
Best regards
axel
This feature seems to be broken ... you need some API Voodoo magic
Code for PB 12.5:
External Function Declaration:
Function long GetWindowLong (ulong hWnd, int nIndex) Library "user32.dll" Alias for "GetWindowLongW"
Function long SetWindowLong (ulong hWnd, int nIndex, long dwNewLong) Library "user32.dll" Alias for "SetWindowLongW"
Function Long SetLayeredWindowAttributes(ulong hWnd, Long crKey , byte bAlpha , Long dwFlags) Library "user32.dll"
Open () Event Script in Window:
Constant long LWA_COLORKEY = 1
Constant long GWL_EXSTYLE = -20
Constant long WS_EX_LAYERED = Long(2^19)
SetWindowLong ( Handle(this), GWL_EXSTYLE, &
GetWindowLong( Handle (this), GWL_EXSTYLE ) + WS_EX_LAYERED)
// Make "background" colored pixels transparent
SetLayeredWindowAttributes(Handle(this), This.BackColor , BYTE(0), LWA_COLORKEY)
hth
Arnd
Hi Axel
you can give this a try: http://download.catsoft.ch/files/pwait.zip.
You find details and fixes for unicode in https://groups.google.com/forum/#!topic/sybase.public.powerbuilder.general/B-PTXdZycgo
Regards
Arthur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.