eventid_1.bmx 424 B

12345678910111213141516171819
  1. SuperStrict
  2. Import MaxGUI.Drivers
  3. Local window:tgadget=CreateWindow("events",0,0,320,240)
  4. Local button:tgadget=CreateButton("Button1",4,4,80,24,window)
  5. Local canvas:tgadget=CreateCanvas(84,4,80,24,window,1)
  6. Repeat
  7. WaitEvent()
  8. If EventID()=EVENT_WINDOWCLOSE End
  9. Select EventID()
  10. Case EVENT_GADGETACTION Print "gadgetaction (buttonpress, etc.)"
  11. Case EVENT_MOUSEMOVE Print "canvas mousemove"
  12. End Select
  13. Forever