Displaying 1 result from an estimated 1 matches for "hearbutton".
2009 Jun 23
9
Learning FXRuby please help!
...quire ''fox16''
include Fox
class Lookup < FXMainWindow
def initialize(app)
super(app, "Lookup window", :width=>400, :height=>600,
:opts => DECOR_ALL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
bframe = FXHorizontalFrame.new(self, :opts => LAYOUT_FILL_X)
hearButton = FXButton.new(bframe, "Do you hear me?")
yesWindow = FXHorizontalFrame.new(self, :opts =>
FRAME_GROOVE|LAYOUT_FILL_X)
yesLabel = FXLabel.new(yesWindow,"Yes")
yesWindow.hide
puts "window shown?" + yesWindow.shown?.to_s
hearButton.connect(SE...