Module: RightBtn

Included in:
FX::Button
Defined in:
lib/libGUIb14.rb,
lib/libGUIb16.rb

Instance Method Summary collapse

Instance Method Details

#handleRMB_EventsObject



64
65
66
67
# File 'lib/libGUIb14.rb', line 64

def handleRMB_Events
  FXMAPFUNC(Fox::SEL_MIDDLEBUTTONPRESS, 0, :onMiddleBtnPress)
  FXMAPFUNC(Fox::SEL_MIDDLEBUTTONRELEASE, 0, :onMiddleBtnRelease)
end

#onRightBtnPress(sender, sel, evt) ⇒ Object



69
70
71
72
73
74
75
76
# File 'lib/libGUIb14.rb', line 69

def onRightBtnPress(sender, sel, evt)
  if enabled?
    if !target.nil? && (target.handle(self, MKUINT(selector, Fox::SEL_RIGHTBUTTONPRESS), evt) != 0)
      return 1
    end
  end
  0
end

#onRightBtnRelease(sender, sel, evt) ⇒ Object



78
79
80
81
82
83
84
85
# File 'lib/libGUIb14.rb', line 78

def onRightBtnRelease(sender, sel, evt)
  if enabled?
    if !target.nil? && (target.handle(self, MKUINT(selector, Fox::SEL_RIGHTBUTTONRELEASE), evt) != 0)
      return 1
    end
  end
  0
end