similar to: Missing evt_tree_item_menu method for TreeCtrl ?

Displaying 20 results from an estimated 400 matches similar to: "Missing evt_tree_item_menu method for TreeCtrl ?"

2007 Sep 17
7
Re : syntax II
Alex Fenton wrote : >1) Setting up event handlers > >In most real apps, I think the most normal way to set up event handlers >is for the event to be dealt with by a corresponding method. At the >moment this has to be done using a block: > >evt_button(AN_ID) { on_button_click } >evt_button(my_button.get_id) do | event | > on_button_click(event) >end >evt_size { |
2008 Nov 11
6
Build problem with ruby-1.9.1-preview1
Hi all, I wanted to have a look at wxRuby on a recent version of ruby 1.9 (ruby-1.9.1-preview1) on Ubuntu 8.10 x86. Here is the result : chauk-mean at MyUbuntu:~/wxruby2$ ruby19 -v ruby 1.9.1 (2008-10-28 revision 19983) [i686-linux] chauk-mean at MyUbuntu:~/wxruby2$ rake19 WXRUBY_VERSION=1.9.9 gem (in /home/chauk-mean/wxruby2) Enabling DYNAMIC build Enabling RELEASE build Enabling UNICODE build
2007 Aug 02
3
wxSocket..... or wxRubySocket....
Hey Alex, I was looking into figuring out a way to create a truely Asynchronis Socket type for Ruby, and thought I''d go down to the bare minimal implementation of it, to start creating a socket, and then I got to thinking. Looking at the wxWidgets C/C++ Code, it doesn''t do much different then what I''m doing, only in Ruby, so I thought maybe, as a way to avoid
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
Hi, I wanted to use wxSugar enumerable features to add a method for returning checked items'' index to the CheckListBox class : require ''wx_sugar/version'' require ''wx_sugar/wx_classes/control_with_items'' require ''wx_sugar/wx_classes/listctrl'' class Wx::CheckListBox def checked_items # use of find_all method from Enumerable
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"]
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi, The following code works as expected with a list box. require "wx" class HelloWorld < Wx::App def on_init helloframe = Wx::Frame.new(nil, "Hello World") choices = ["one", "two", "three", "four", "five"] data = ["data1", "data2", "data3", "data4", "data5"]
2007 Oct 09
3
Trouble with dialog based application
Hi, A long time ago, I made some MFC GUI programming ... There was basically 2 kinds of application : - dialog based application : a simple app based on a dialog (without menu, toolbar, status bar ...) - frame based app (Single Document or Multiple Document) with menu, toolbar, status bar ... I tried to make a dialog based app with wxRuby but the application never exits !! The following code
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all, This is a proposal for supporting keyword arguments to Sizer#add following the thread below : http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html After a deeper look at lib/wx/keyword_ctors.rb and lib/wx/keyword_defs.rb, I understood the whole thing :-). I just reused and modified slightly the method args_as_list. The new Sizer#add_item combines the features of add
2007 Sep 27
10
Adding more sugar to wxSugar
Hi all, New wxRuby event handling offers the choice between using blocks or methods seamlessly and easily. This is great respectively for simple app and more complex app. Nevertheless, currently the creation of an application, a frame, or a dialog is very tedious for simple app : - you need to create a subclass of Wx::App, Wx::Frame ... - you need to put the initialization code in the initialize
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 Sep 20
7
Troubles with ListBox and CheckListBox events
Hi all, Here is an excerpt of code (with the new syntax from upcoming wxRuby 1.9.2) : evt_checklistbox(my_checklist, :on_checklistbox) evt_listbox(my_checklist, :on_listbox) evt_listbox(my_list, :on_listbox) def on_checklistbox(event) checklist = event.event_object # puts "listbox - event : item[#{event.int}] checked : #{event.checked?}" puts "listbox -
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.
2009 Sep 03
24
wxRuby-2.0.1 release ?
Hi, What about releasing a new version shortly ? This is a long-awaited request from several users especially for recent ruby-1.9.1 versions on MinGW. Cheers. Chauk-Mean.
2007 Oct 23
3
CheckListBox : delete method bug !
Hi, I''ve practically finished a patch for removing the limitation of CheckListBox (http://rubyforge.org/pipermail/wxruby-development/2007-October/000973.html) but I just discovered a new bug related with this control !! I need to redefine the delete method to take into account the deletion of the associated data. The problem is that if I just redefine this method and simply call super,
2008 Mar 12
3
Different (tree) event behaviors across platforms
Hi all, I''m currently writing a simple outliner application as a tutorial on wxRuby (both will be soon released ;-) ) I tested this application on Windows and Linux and found that the tree event behavior : - is sometime strange on each platform - is also different on each platform Even if I managed to take care of these differences in the application, I''m just wondering if : -
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Dec 27
1
Wx::SplashScreen, and events
I have the following code: #time = 7000 class TimeSplash < Wx::SplashScreen PATH_MAIN = 1 PATH_SETUP = 0 def initialize(time, path=PATH_MAIN) splash_bitmap = Wx::Bitmap.new(''timefly.png'', Wx::BITMAP_TYPE_PNG) super(splash_bitmap, Wx::SPLASH_CENTRE_ON_SCREEN|Wx::SPLASH_TIMEOUT, time, nil, -1) evt_close() {|evt| on_close_window(evt, path)} end
2006 Aug 22
2
TreeEvent patch
Hi Patches to TreeEvent.i and wxTreeEvent.h to implement missing methods (and fix a crasher in bigdemo along the way) Two of the missing methods appeared just to be down to errors in the header file. The other (get_label) works fine - perh a bug in previous versions of SWIG? Methods tested and return correct values on OS X. I could offer a test addition to bigedemo, but this
2007 Sep 26
7
development status, 1.9.2
Hi all Just a quick update on recent SVN activity: * added Sound and CollapsiblePane classes * added the XRC tool to wxSugar * fixed some XRC bugs in Window * added syntax sugar for event handlers and list-like controls * added some missing methods in Sizer Sean - I''m away for about 10 days from this weekend, and I''m thinking of doing a 1.9.2 release in the next day or two.