filebrowser_test.monkey2 661 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #Import "<std>"
  2. #Import "<mojo>"
  3. #import "<mojox>"
  4. Using std..
  5. Using mojo..
  6. Using mojox..
  7. Class MyWindow Extends Window
  8. Method New()
  9. Super.New( "FileBrowser Demo",640,480,WindowFlags.Resizable )
  10. Local fileBrowser:=New FileBrowser( CurrentDir() )
  11. fileBrowser.FileClicked=Lambda( path:String )
  12. Alert( "File Clicked="+path )
  13. End
  14. fileBrowser.FileRightClicked=Lambda( path:String )
  15. Alert( "File Right Clicked="+path )
  16. End
  17. fileBrowser.FileDoubleClicked=Lambda( path:String )
  18. Alert( "File Double Clicked="+path )
  19. End
  20. ContentView=fileBrowser
  21. End
  22. End
  23. Function Main()
  24. New AppInstance
  25. New MyWindow
  26. App.Run()
  27. End