search for: get_control

Displaying 5 results from an estimated 5 matches for "get_control".

Did you mean: gencontrol
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
...r on the grid and forward it to an editor-specific method (b) install an event handler on the editor control Neither approach worked. Any suggestions? Thanks in advance, Tony --- class MyEditor < Wx::GridCellChoiceEditor def initialize super end def begin_edit row, col, grid get_control().evt_mousewheel {|e| on_wheel e } grid.evt_mousewheel {|e| on_wheel e } end def on_wheel event p event end def end_edit row, col, grid # TODO: unsubscribe evt handler super end end -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
0
alsa 1.0.11rc3 on AMD 64
...e is failing. drivers and libs worked fine. THanks, Jerry ------------------ Making all in alsactl make[1]: Entering directory `/usr/src/alsa-utils-1.0.11rc2/alsactl' gcc -g -O2 -o alsactl alsactl.o state.o power.o names.o -lasound -lm -ldl -lpthread state.o(.text+0x53b): In function `get_control': /usr/src/alsa-utils-1.0.11rc2/alsactl/state.c:185: undefined reference to `snd_ctl_elem_info_is_user' state.o(.text+0x1b3c): In function `add_user_control': /usr/src/alsa-utils-1.0.11rc2/alsactl/state.c:724: undefined reference to `snd_ctl_elem_add_boolean' state.o(.text+0x1b54)...
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...top = evt.get_top_left_coords - bottom = evt.get_bottom_right_coords - set_status_text("[ #{top[0].to_s} x #{top[1].to_s} ] to [ #{bottom[0].to_s} x #{bottom[1].to_s} ] is selected") - end - - evt_grid_editor_created do |evt| - set_status_text("Control #{evt.get_control} created") - evt.skip - end - - evt_grid_cell_change() do |evt| - set_status_text("Cell #{evt.get_row} x #{evt.get_col} has changed") - end - end - - # Create a wxGrid object - def make_grid(panel) - @grid = Wx::Grid.new(panel, -1) - - # Then we call Creat...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...top = evt.get_top_left_coords + bottom = evt.get_bottom_right_coords + set_status_text("[ #{top[0].to_s} x #{top[1].to_s} ] to [ #{bottom[0].to_s} x #{bottom[1].to_s} ] is selected") + end + + evt_grid_editor_created do |evt| + set_status_text("Control #{evt.get_control} created") + evt.skip + end + + evt_grid_cell_change() do |evt| + set_status_text("Cell #{evt.get_row} x #{evt.get_col} has changed") + end + end + + # Create a wxGrid object + def make_grid(panel) + @grid = Wx::Grid.new(panel, -1) + + # Then we call Creat...
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi, Thanks to the newly added event handlers for Wx::Grid in the 0.6.0 release, I can now provide a much slicker intreface to my "data widgets" which heavily rely on that control. However, I haven''t quite figured out how to programmatically scroll to the last row of a populated grid (actually, the first empty row). So say that I have a grid with 200 rows only 20 of which