ImageGadgetEx()

Share your advanced PureBasic knowledge/code with the community.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Sorry, my mistake. Please re-download the library. :oops:
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

netmaestro wrote:Sorry, my mistake. Please re-download the library. :oops:
i have re-download both, but the same error
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Ok, I posted code for the lib and test in the first post. It should work. Now the download only has images.
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

this works okay :D
i will play chess :)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Betcha white wins :wink:
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Verrrry nice, thank you for sharing it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Finetuned the drawing for smoothness and to remove some flicker when clicking a piece. Test code is updated.
BERESHEIT
User avatar
Blue
Addict
Addict
Posts: 967
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

Very, very nice.

But something's wrong:
   (1) Whites always win. :shock:
   (2) The Bishop keeps eating my horse :roll: and invariably ends up having no one to play with. :cry:

Just the same: I love the game. Any secret rules we should know about ?

On the serious side, lots of exciting (and, oh my god! complicated) code to study in there.

Thanks for sharing it.
(And a pretty good example, in your test file, of how to change cursors on the fly.)
Last edited by Blue on Sat Oct 18, 2008 5:18 am, edited 1 time in total.
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
Michael Vogel
Addict
Addict
Posts: 2810
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Blue wrote: But something's wrong:
   (1) Whites always win. :shock:
Depends on whose turn is it?!
User avatar
Michael Vogel
Addict
Addict
Posts: 2810
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post by Michael Vogel »

Can't access the advanced program :(
And how to get the other chess pieces :roll:

Michael
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Can't access the advanced program
Actually the original simple test code was replaced with the advanced one in the first post so no need to download it.
And how to get the other chess pieces
I'm unable to share the full set at this time, sorry.
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: ImageGadgetEx()

Post by rsts »

OK, not quite 2 years late. Attempting to learn more about images and manipulation.

Are the images available somewhere on your new site?

cheers
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: ImageGadgetEx()

Post by netmaestro »

Actually this library is obsolete now since 4.40 and the massive image library upgrade. Nonetheless, some of the code is interesting to study. I've updated the ChildWindowFromPoint call in the .pbi and updated the image link, so the demo should work with the latest PB now. Have fun! (I sure did making it)
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: ImageGadgetEx()

Post by rsts »

Many thanks, your efforts are appreciated.

cheers
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: ImageGadgetEx()

Post by rsts »

Maybe

bkg: IncludeBinary "board_grain.png" : bkgend:

:oops:
Post Reply