eventtext.bmx 320 B

1234567891011121314151617
  1. '
  2. ' Drop a file onto the window to see EventText() return the path.
  3. '
  4. SuperStrict
  5. Import MaxGUI.Drivers
  6. Local window:tgadget=CreateWindow("move mouse",0,0,320,240,Null,15|WINDOW_ACCEPTFILES)
  7. Repeat
  8. WaitEvent()
  9. If EventID()=EVENT_WINDOWCLOSE End
  10. If EventID()=EVENT_WINDOWACCEPT
  11. Print EventText()
  12. EndIf
  13. Forever