pushbutton.monkey2 394 B

123456789101112131415161718192021222324252627282930
  1. Namespace mojox
  2. #rem monkeydoc The PushButton class.
  3. #end
  4. Class PushButton Extends Button
  5. #rem monkeydoc Creates a new push button.
  6. #end
  7. Method New( text:String="",icon:Image=Null )
  8. Super.New( text,icon )
  9. Init()
  10. End
  11. Method New( action:Action )
  12. Super.New( action )
  13. Init()
  14. End
  15. Private
  16. Method Init()
  17. Style=GetStyle( "PushButton" )
  18. PushButtonMode=True
  19. End
  20. End