WaitWindowEvent() 15

Just starting out? Need help? Post your questions and find answers here.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

WaitWindowEvent() 15

Post by Joris »

Hi,

WaitWindowEvent() returns (also) the value 15 when I have left mousebutton down, which I'de liked to use (XP SP3).
Yet, why isn't it a #PB-constant and is it multiplatform-useable ?

Thanks
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
STARGÅTE
Addict
Addict
Posts: 2085
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: WaitWindowEvent() 15

Post by STARGÅTE »

15 has nothing to do with mouse button:
#WM_PAINT = 15
Is an OS specific constant/event.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: WaitWindowEvent() 15

Post by Joris »

Wooow #WM_PAINT definitely not what is needed here. Yet, it is fired at a usefull moment to be catch in my prog.
I hope to find a replacement, later on, that works too on OSX or Linux. Any idea ?

Thanks.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: WaitWindowEvent() 15

Post by Joris »

On windows it is the #WM_LBUTTONDOWN which is better and comes quit at the same moment.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Post Reply