Displaying 5 results from an estimated 5 matches for "wants_chars".
2007 Jan 04
3
grid control example doesn''t work on osx.4
...pied the
code below from the tutorial----------
#!/usr/bin/env ruby -w
require ''rubygems''
require ''wx''
app = Wx::App.new
frame = Wx::Frame.new( nil , -1 , "MiniApp" )
#grid = Wx::Grid.new( frame , 2000, Wx::DEFAULT_POSITION,
Wx::DEFAULT_SIZE, Wx::WANTS_CHARS,"this the panel name" )
tgrid = Wx::Grid.new(frame, -1)
tgrid.create_grid( 19 , 16 )
frame.show()
app.main_loop()
---------
Any help would be appreciated I have to get a little utility running
on my mac and a windows machine before the 18th.
Sincerely,
Hawley
2007 Jul 23
11
Memory problem with GridCell*Editor
Alex,
I was getting the following crashes when editing cells in a grid:
./init.rb:1072:in `main_loop'': undefined method `begin_edit'' for
"_p_wxEvent":String (NoMethodError)
from ./init.rb:1072
but only after the first App GC mark phase.
So I changed all the GridCell*Editor.i files from GC_MANAGE to
GC_MANAGE_AS_EVENT. Which stopped the crashing. My question
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...(0, 0), Wx::Size.new(150, 90),
+ Wx::NO_BORDER|Wx::TE_MULTILINE)
+ end
+
+ def create_grid
+ grid = Wx::Grid.new(self, Wx::ID_ANY,
+ Wx::Point.new(0, 0),
+ Wx::Size.new(150, 250),
+ Wx::NO_BORDER|Wx::WANTS_CHARS)
+ grid.create_grid(50, 20)
+ grid
+ end
+
+
+ def create_tree_ctrl
+ tree = Wx::TreeCtrl.new( self, Wx::ID_ANY,
+ Wx::Point.new(0, 0), Wx::Size.new(160, 250),
+ Wx::TR_DEFAULT_STYLE|Wx::NO_BORDER)
+
+ img_list = Wx::ImageList...