Page 2 of 2
Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 1:34 pm
by Kwai chang caine
Thanks BISONTE for your answer
And i must also keep this lines ?
Code: Select all
Result=LoadImage(1,#PB_Compiler_Home + "..\Examples\#Commun\bmp2.bmp")
hBrush=CreatePatternBrush_(ImageID(1))
OpenWindow(0, #PB_Ignore, #PB_Ignore, 1800, 1200, "GIF example")
SetWindowLong_(WindowID(0),#GWL_EXSTYLE,GetWindowLong_(WindowID(0),#GWL_EXSTYLE)|#WS_EX_LAYERED|#WS_CLIPCHILDREN)
SetClassLongPtr_(WindowID(0),#GCL_HBRBACKGROUND,hBrush)
Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 1:39 pm
by Bisonte
Yes... Or your background is blank

Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 1:43 pm
by Kwai chang caine
Thanks a lot i have understand ....

finally i believe
In fact they are a problem with this line
Code: Select all
;SetWindowLong_(WindowID(0),#GWL_EXSTYLE,GetWindowLong_(WindowID(0),#GWL_EXSTYLE)|#WS_EX_LAYERED|#WS_CLIPCHILDREN)
When i not comment it, no windows appear
When i comment it i have the good window, i hope she is not important

Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 1:48 pm
by Bisonte
It's important, you need a layered window to show the brush...
Wait a little I try to make an example code.
and I need a gif anim

Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 1:53 pm
by Kwai chang caine
Like this, at random

Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 2:04 pm
by Bisonte
thx. But here is a little problem.
The GDI function draws not with alpha channel, so my idea is wrong in this case...
Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 2:10 pm
by Kwai chang caine
Ooooh i'm sad

And with the NETMAESTRO code, can you help me ? because i have the same problem
http://www.purebasic.fr/english/viewtop ... 85#p478785
Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 6:02 pm
by Bisonte
Kwai chang caine wrote:... because i have the same problem ...
Yes the same problem with my idea. I'm sorry... maybe the great CodeCommander or the Maestro of the Net are able to help you.
They are wrote these "includes" and their should understand more what you have to do as I ...
Re: AnimGIFGadget (windows only)
Posted: Wed Dec 23, 2015 8:16 pm
by Kwai chang caine
Never mind, thanks to have spent time for me, you have right perhaps the frog with red hat can help me a day
Have a good christmas
