[futurebasic] Re: [FB] Detecting floating window click

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2003 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Fri, 14 Nov 2003 13:52:48 +0000
On Friday, Nov 14, 2003, at 10:31 Europe/London, Bernie Wylde wrote:
> How do I detect a click in a _kFloatingWindowClass window?
> The dialog _wndClick event doesn't work for this type of window

I can't go any further with this app until I resolve this problem so 
here's an example:

I need to detect a click in the floating window when other window types 
are open.
The floater only seems to receive mouse clicks when it's the only 
window.

local fn DoDialog
if dialog(0) == _wndClick then beep
end fn

local fn DoMouse
beep
end fn

appearance window 1,"Document 
Window",(0,44)-(640,524),_kDocumentWindowClass
appearance window 2,"Floating Window",(400, 
200)-(700,550),_kFloatingWindowClass

on dialog fn DoDialog
on mouse  fn DoMouse

do
HandleEvents
until gFBQuit