Displaying 3 results from an estimated 3 matches for "dlgsizer".
Did you mean:
dgsize
2004 Apr 21
2
Resizing a ListCtrl
...(0.3.0). This has also happened with wxRuby 0.2.0.
# BEGIN CODE
require ''wxruby''
include Wx
class MainFrame < Frame
def initialize ## {{{
# init size, ionstance variables and super {{{
super(nil, -1, "test frame")
#}}}
# main layout {{{
@dlgSizer = BoxSizer.new(VERTICAL)
centerSizer = BoxSizer.new(HORIZONTAL)
# File List {{{
@fileList = ListCtrl.new(self, -1, DEFAULT_POSITION, Size.new(250,
200),
LC_REPORT | LC_SINGLE_SEL)
fillListCtrl()
centerSizer.add(@fileList, 6, GROW|EXPAND)
# }}}
@dlgSiz...
2004 Jun 02
13
wxGrid Question
When operating with a wxGrid is there a way to get a reference to the
TextCtrl field that is created when you start typing in a cell.
Also is there a way to get mouse events to work with a wxGrid, so far I
can''t get any of them to work. I had tried various combo''s of:
@grid.evt_left_down(){ |event|
puts "Left mouse is down"; }
using evt_left_down, evt_left_up,
2004 May 24
9
Combo Box
...nstall for Windows.
@combo.get_label seems to work for me.
See sample code below.
HTH,
Assaph
----- CODE -----
require ''wxruby''
include Wx
ID_DRIVES_BOX = 1
ID_BTN1 = 2
class TestFrame < Frame
def initialize
super(nil, -1, "Test App")
dlgSizer = BoxSizer.new(VERTICAL)
drives = `subst`.split("\n").collect {|d|
md = d.match(/(.:).* => .*\\(.*)/)
"#{md.captures[0]} (#{md.captures[1] })"
}
@drives_box = ComboBox.new(self, ID_DRIVES_BOX, "",
DEFAULT_POSITION, DEFAU...