CustomButtons sourcecode released

Share your advanced PureBasic knowledge/code with the community.
BriceManuel
Enthusiast
Enthusiast
Posts: 195
Joined: Thu Nov 29, 2007 8:23 am

Post by BriceManuel »

Thank you, very much!
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Post by Poshu »

This code seems to be broken somehow:

Error on line 34 ( If WindowFromPoint_(cp2\x,cp2\y) = hwnd ). I've tried If WindowFromPoint_(cp2) = hwnd which compile but add problem with the hot and cold state for button... I can't correct this by myself (T__T), could anyone give a look?
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Post by Arctic Fox »

drgolf
Enthusiast
Enthusiast
Posts: 106
Joined: Tue Mar 03, 2009 3:40 pm
Location: france

Post by drgolf »

try this

If WindowFromPoint_(cp2\x|cp2\y<<32) = hwnd

drgolf //
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Post by Poshu »

Ergh >.<; I shall try a little harder next time :oops:
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
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 »

BERESHEIT
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Post by mrjiles »

Getting an error (WindowFromPoint). Running 4.3, any ideas/update for this?
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 »

Since v4.3 WindowFromPoint_() takes only one parameter instead of 2. It's no longer (x,y) anymore but ( x|(y<<32) ), or basically a quad with the low dword = x and the high dword = y. Hope this helps.
BERESHEIT
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Post by mrjiles »

Cool, that's what I found after searching but wasn't sure. Thanks for the speedy response!
Post Reply