mouseleave on canvas-gadget ( intel mac ) ( pb 4.60 b3 )
Posted: Tue Jun 21, 2011 6:51 pm
hello guys,
i think, this is a bug, but before i report it as a bug, i do what freak says in his article about bugs. maybe its really a knowledge leck.
here the problem:
the MouseLeave-Event on Mac OS X doens't work, while it works without any problem on windows and linux.
Here my system information:
Mac OS X Snow Leopard ( 10.6.7 ) German, Intel x86.
PureBasic 4.60 Beta 3 x68.
No subsystem selected. Standard settings.
test code:
any ideas?
i think, this is a bug, but before i report it as a bug, i do what freak says in his article about bugs. maybe its really a knowledge leck.
here the problem:
the MouseLeave-Event on Mac OS X doens't work, while it works without any problem on windows and linux.
Here my system information:
Mac OS X Snow Leopard ( 10.6.7 ) German, Intel x86.
PureBasic 4.60 Beta 3 x68.
No subsystem selected. Standard settings.
test code:
Code: Select all
Enumeration
#window = 0
#canvas = 1
EndEnumeration
Define event.l
OpenWindow( #window, 0, 0, 100, 100, "Canvas-Prob", #PB_Window_SystemMenu | #PB_Window_ScreenCentered )
CanvasGadget( #canvas, 10, 10, 80, 80 )
StartDrawing( CanvasOutput( #canvas ) )
Box( 0, 0, 80, 80, RGB( 70, 70, 130 ) )
StopDrawing()
Repeat
event = WaitWindowEvent()
If event = #PB_Event_Gadget And EventGadget() = #canvas
Select EventType()
Case #PB_EventType_MouseEnter
SetWindowTitle( #window, "On" )
Case #PB_EventType_MouseLeave
SetWindowTitle( #window, "Off" )
EndSelect
EndIf
Until event = #PB_Event_CloseWindow