AnimGIFGadget (windows only)

Share your advanced PureBasic knowledge/code with the community.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AnimGIFGadget (windows only)

Post by Kwai chang caine »

Thanks BISONTE for your answer 8)

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)
ImageThe happiness is a road...
Not a destination
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: AnimGIFGadget (windows only)

Post by Bisonte »

Yes... Or your background is blank ;)
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AnimGIFGadget (windows only)

Post by Kwai chang caine »

Thanks a lot i have understand .... :D finally i believe :oops:
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 :shock:
When i comment it i have the good window, i hope she is not important :oops:
ImageThe happiness is a road...
Not a destination
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: AnimGIFGadget (windows only)

Post 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 ;)
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AnimGIFGadget (windows only)

Post by Kwai chang caine »

Like this, at random :mrgreen:
Image
ImageThe happiness is a road...
Not a destination
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: AnimGIFGadget (windows only)

Post 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...
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AnimGIFGadget (windows only)

Post by Kwai chang caine »

Ooooh i'm sad :cry:
And with the NETMAESTRO code, can you help me ? because i have the same problem :oops:
http://www.purebasic.fr/english/viewtop ... 85#p478785
ImageThe happiness is a road...
Not a destination
User avatar
Bisonte
Addict
Addict
Posts: 1313
Joined: Tue Oct 09, 2007 2:15 am

Re: AnimGIFGadget (windows only)

Post 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 ...
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: AnimGIFGadget (windows only)

Post 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 :D
Have a good christmas 8)
ImageThe happiness is a road...
Not a destination
Post Reply