Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 47
Joined: Sat Jun 16, 2018 10:30 pm

[Done] 2.21B CanvasGadget : #PB_Canvas_ClipMouse is ignored

by Niffo Fri Nov 09, 2018 5:45 pm

With a CanvasGadget : #PB_Canvas_ClipMouse seems to be ignored :

Code: Select all
Procedure Frm_Main_DlgProc()
   Select EventGadget()
      Case 0
         Select EventType()
            Case #PB_EventType_MouseEnter
Debug "#PB_EventType_MouseEnter"
            Case #PB_EventType_MouseLeave
Debug "#PB_EventType_MouseLeave"
            Case #PB_EventType_MouseMove
Debug "#PB_EventType_MouseMove"
            Case #PB_EventType_LeftClick
Debug "#PB_EventType_LeftClick"
            Case #PB_EventType_LeftButtonUp
Debug "#PB_EventType_LeftButtonUp"
            Case #PB_EventType_LeftButtonDown
Debug "#PB_EventType_LeftButtonDown"
         EndSelect
   EndSelect
EndProcedure

OpenWindow(0, 100, 100, 300, 200, "Canvas ClipMouse")
CanvasGadget(0, 100, 50, 100, 100, #PB_Canvas_Border | #PB_Canvas_ClipMouse)
BindEvent(#PB_Event_Gadget, @Frm_Main_DlgProc(), 0)

CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
Fred
Site Admin
 
Posts: 1134
Joined: Mon Feb 24, 2014 10:51 am

Re: 2.21B : CanvasGadget : #PB_Canvas_ClipMouse is ignored

by Fred Mon Jan 14, 2019 6:55 pm

It's not supported by SB, constant has been removed.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests