EventMouseButton

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by urland.

The EventMouseButton() function is not returning a value in my program.

Code: Select all

   flag = 1

   While flag
      event = WaitWindowEvent()
      Select event
         Case #PB_EventCloseWindow
            flag = 0
         Case #PB_EventRepaint
            Draw_Calendar(0,0,0,0)
         Default
            ;*Do nothing
      EndSelect
      mb = EventMouseButton()
      If mb = 1
         ;
      EndIf
   Wend
mb is always zero, including when any buttons are pressed.