search for: wx_id

Displaying 7 results from an estimated 7 matches for "wx_id".

Did you mean: tx_id
2007 Sep 15
2
wxRuby 1.9.1 and id accessor consistency problem
Hi all, wxRuby 1.9.1 introduced great Rubish style accessors (x.label as a synonym for x.get_label). I just found that get_id has no corresponding Rubish style id accessor. For a CheckListBox or a StaticText (I haven''t checked for other kind of controls), id just returns the Ruby object_id. This is very confusing and not consistent with other accessors. Chauk-Mean.
2007 Sep 17
7
Re : syntax II
...t; >So I''d like to suggest as alternatives: > >evt_button(AN_ID, :on_button_click) >evt_button my_button, :on_button_click >evt_size :on_size These are very useful additions especially the second one which removes the need for getting the id of the button, through get_id or wx_id or maybe id (see my post on [wxruby-users] wxRuby 1.9.1 and id accessor consistency problem). I would suggest that the second addition is also reported to the block form. Indeed, there are simple cases where using a block is more simple/practical than defining and using a method. It would be grea...
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 Oct 23
3
CheckListBox : delete method bug !
...super end end Wx::App.run do helloframe = Wx::Frame.new(nil, :title => "CheckListBox Sample") do |frame| lb = Wx::CheckListBox.new(frame) do |c| # use of append within the initializer 0.upto(3) { |i| c.append "item#{i+1}" } end evt_listbox lb.wx_id do |event| lb.delete event.index end end helloframe.show end --------------- If I run the application, and if I select the "item2", this item is deleted as expected. But afterwards, "item4" cannot be checked. If I just remove/comment the delete method within th...
2007 Oct 23
6
wxRuby 1.9.2
...fixes in GUI classes * New and improved samples and documentation, including threads sample == SYNTAX CHANGES == All the syntax additions are backwards compatible. The main change is that when setting up an event handler that just passes onto a method, instead of writing: evt_button(my_button.wx_id) { | e | on_button_click(e) } You can just write evt_button my_button, :on_button_click Phew! There''s more information in the event handling tutorial in the docs. Also, for simple apps, instead of having to create a custom Wx::App subclass, you can run an app like this: Wx::App.run d...
2010 Feb 24
3
Mouse wheel events in a grid cell editor?
I''m trying to do some advanced editing using Grids. I''ve created my own editors and updating view and model both works fine so far. Thanks to whoever made this possible. I like wxRuby more each day! Now I''d like to catch mousewheel events in order to increment/decrement a grid cell editor. I''ve tried installing a handler in begin_edit of my editor and removing