Displaying 1 result from an estimated 1 matches for "threepwood".
2007 Aug 22
2
Can''t change button-size?
...-1, "Push me",Point.new(10,10),Size.new(50,10)) but it always has the size of the whole frame?:
#!/usr/bin/env ruby
$Verbose=true
require ''rubygems''
require ''wx''
include Wx
class MyFrame < Frame
def initialize
super(nil, -1, "Threepwood",Point.new(400,250),Size.new(600,200),DEFAULT_FRAME_STYLE)
button = Button.new(self, -1, "Push me",Point.new(10,10),Size.new(50,10))
evt_button(button.get_id()) {|event| on_button(event)}
show()
end
def message(text, title)
m = Wx::MessageDial...