Codebase list ruby-fxruby / 5c2d0227-fc30-4ad3-b307-ed5ef791dacb/upstream rdoc-sources / FXMenuCommand.rb
5c2d0227-fc30-4ad3-b307-ed5ef791dacb/upstream

Tree @5c2d0227-fc30-4ad3-b307-ed5ef791dacb/upstream (Download .tar.gz)

FXMenuCommand.rb @5c2d0227-fc30-4ad3-b307-ed5ef791dacb/upstreamraw · history · blame

module Fox
  #
  # The FXMenuCommand widget is used to invoke a command in the
  # application from a menu.  Menu commands may reflect
  # the state of the application by graying out or becoming hidden.
  # When activated, a menu command sends a +SEL_COMMAND+ to its target.
  #
  # === Events
  #
  # The following messages are sent by FXMenuCommand to its target:
  #
  # +SEL_COMMAND+::  sent when the command is activated
  #
  class FXMenuCommand < FXMenuCaption

    # Accelerator text [String]
    attr_accessor :accelText

    #
    # Construct a menu command
    #
    def initialize(p, text, ic=nil, target=nil, selector=0, opts=0) # :yields: theMenuCommand
    end
  end
end