Skip to content
Snippets Groups Projects
FXPicker.rb 905 B
Newer Older
  • Learn to ignore specific revisions
  • module Fox
      #
      # A picker button allows you to identify an arbitrary
      # location on the screen.
      #
      # === Events
      #
      # The following messages are sent by FXPicker to its target:
      #
      # +SEL_CHANGED+::
      #   sent continuously while the position is changing; the message data is an
      #   FXPoint instance indicating the current root window position of the mouse
      #   pointer.
      # +SEL_COMMAND+::
      #   sent when the left mouse button is clicked the second time (i.e. to
      #   "pick" a position); the message data is an FXPoint instance indicating
      #   the picked position in root window coordinates.
      #
      class FXPicker < FXButton
        #
        # Constructor
        #
        def initialize(p, text, ic=nil, target=nil, selector=0, opts=BUTTON_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: thePicker
        end
      end
    end