requesters_test.monkey2 538 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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( "TreeView Demo",640,480,WindowFlags.Resizable )
  10. Local toolBar:=New ToolBar
  11. toolBar.AddAction( "String" ).Triggered=Lambda()
  12. Alert( "String entered:"+RequestString() )
  13. End
  14. ContentView=toolBar
  15. App.Idle+=OnIdle
  16. End
  17. Method OnIdle()
  18. App.RequestRender()
  19. App.Idle+=OnIdle
  20. End
  21. End
  22. Function Main()
  23. New AppInstance
  24. New MyWindow
  25. App.Run()
  26. End