[futurebasic] Re: [FB] FBtoC : MOUSE(0) always Zero since 1a126

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Sat, 5 Jan 2008 21:17:55 +1300
Detlev Lang wrote:

> Since build a126, the MOUSE<event> functions  MOUSE(_lastMhorz) and  
> MOUSE(_lastMvert)
> now give the expected results, but the function MOUSE(0) always  
> returns Zero
>
>
> clickType = MOUSE(0)		' OK with 1a125, always Zero with 1a126 (and  
> 127)
> downH 	  = MOUSE(_lastMhorz)	' OK with 1a126+, always Zero with 1a125
> downV     = MOUSE(_lastMvert)	' OK with 1a126+, always Zero with 1a125

Can't reproduce here.
Is this in a handler function installed with 'on mouse fn DoMouse'?
Please post your code showing the problem.
Also try the following, whose behaviour when run via FBtoC should be  
that described in the FB Reference Manual's entry for MOUSE <event>.

'----------------
local fn PrintMouse0
print mouse( 0 )
end fn

window 1
on mouse fn PrintMouse0
do
HandleEvents
until gFBQuit
'----------------

Robert P.