search for: id_exit

Displaying 20 results from an estimated 24 matches for "id_exit".

Did you mean: __exit
2007 Apr 13
2
who can give me an EvtHandler#connect example?
...t still don''t know how to use it. EvtHandler#connect connect(Integer id, Integer lastId, EventType eventType, ObjectEventFunction function, Object userData = nil, EvtHandler eventSink = nil) the online doc''s example is write in C++: frame->Connect( ID_EXIT, EVT_COMMAND_MENU_SELECTED, CommandEventHandler(MyFrame::OnQuit) ); is it like this?: frame.connect(Wx::ID_EXIT, Wx::EVT_COMMAND_MENU_SELECTED,frame.on_exit); I need to attach event, but not in initialtion function. thanks! cy
2006 Aug 21
2
Patch to Calendar sample
This patch cleans up the calendar sample to follow the Ruby coding style. It also uses ID_ABOUT and ID_EXIT for the About and Quit menu item ID''s these allow wxWidgets to put the About and Quit menu in the correct location on Mac OS X. We should probably do this with all the samples. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http...
2006 Jul 24
6
MiniFrame.i
Hi Another little patch, adding MiniFrame (a frame with small title bar and buttons which doesn''t appear in the desktop taskbar). Also a sample - not very interesting, happy to roll this into something else if that''s better. cheers alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...<span class="lines">@@ -14,9 +14,9 @@ </span><span class="cx"> end </span><span class="cx"> include Wx </span><span class="cx"> </span><del>-CONTROLS_QUIT = 100 </del><ins>+CONTROLS_QUIT = ID_EXIT </ins><span class="cx"> CONTROLS_TEXT = 101 </span><del>-CONTROLS_ABOUT = 102 </del><ins>+CONTROLS_ABOUT = ID_ABOUT </ins><span class="cx"> CONTROLS_CLEAR_LOG = 103 </span><span class="cx"> # tooltip menu...
2008 Jun 28
1
catch all key events in frame?
Hi. How do I best capture *all* key events in a frame. Specifically: In Albuin I want to delete selected songs in the playlist when the user presses ''del'' - no matter what control in the frame happens to be in focused atm. What event should I bind to and to which control? (as a side note, the latest svn of albuin fixed the alexs'' problem with sequel-2.x - never, ever,
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2006 Aug 21
1
Patch for listbook sample
I made it use ID_EXIT so it follows my previous suggestion to use this predefined constant. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Aug 21
4
Patch for caret sample
Cleaned up so it follows Ruby coding style and uses ID_EXIT, ID_ABOUT. Sean _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2004 May 22
4
couple of questions
Hi folks A couple of questions: 1) I seem to get funny artifacts in the display of TreeCtrl, ComboBox and ListBox when the MDI child frame containing it is first painted (see attached - it should be two-root treeview, unopened). I''m not sure if it''s related to being in a MDI, but the controls sample looks OK. The artifacts are cleared up when it''s repainted or
2007 Nov 18
2
Issues adding sub-menu items
...Thanks, Glenn #!/usr/bin/env ruby begin .... .... .... class HL7Query < Wx::Frame def initialize(title) super(nil, :title => title, :size => [ 850, 600 ]) menu_bar = Wx::MenuBar.new # The "file" menu menu_file = Wx::Menu.new menu_file.append(Wx::ID_EXIT, "E&xit\tAlt-X", "Quit this program") menu_bar.append(menu_file, "&File") # The "Tools" menu menu_tools = Wx::Menu.new #menu_tools.append(Wx::ID_UNIQUEFIELDS, "Find Unique Fields", "Find Unique Fields") menu_to...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note the new %directorargout typemap I added to fix wxWindows calling into SWIG. I don''t know if this can fix all such problems or not. Let me know what you think. I also rubified the sample a little bit more. Also, note that I fix the << operator so the function can be called. I hope I did this right. Roy
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
..."lines">@@ -30,8 +30,8 @@ </span><span class="cx"> create_status_bar(2) </span><span class="cx"> set_status_text("wxRuby Sash sample") </span><span class="cx"> </span><del>- evt_menu(Wx::ID_EXIT) { onQuit } - evt_menu(Wx::ID_ABOUT) { onAbout } </del><ins>+ evt_menu(Wx::ID_EXIT) { on_quit } + evt_menu(Wx::ID_ABOUT) { on_about } </ins><span class="cx"> </span><span class="cx"> # Start creating the sashes - these are create...
2007 Dec 19
1
Menu Bar KeyBoard Shortcuts.
Hello, I''m trying to use a wxMenuBar from XRC built with DialogBlocks on Windows. My first example had the menu being called from the Frame because I couldn''t figure out how to call the menu from my XRC. Shortcuts worked nicely. Example 1: menu.append(Wx::ID_EXIT, "E&xit\tAlt-X", "Quit this program") tool.append(Wx::ID_PHOTO, "&MS Picture Manager\tAlt-B", "MS Picture Manager") Now that I''ve figured this out, I lost the ability to have my Keyboard shortcuts as a parameter. Example 2 : @menubar...
2004 Jan 08
3
pictorG
...;,"Creates a new catalog" menuFile.append ID_OPEN,"&Open catalog\tO","Opens an existing catalog" menuFile.append ID_SETROOT,"&Set root dir\tR","Sets the root directory of the catalog" menuFile.append_separator menuFile.append ID_EXIT,"E&xit\tQ","Quits the program" # Help menu menuHelp = Menu.new menuHelp.append(ID_ABOUT,"&About\tCtrl-F1","Show program information") # the Menubar menuBar = MenuBar.new menuBar.append menuFile, "&File" menu...
2007 Sep 27
10
Adding more sugar to wxSugar
...frame = CandyFrame.create(nil, :title => "Minimal wxRuby App", :size => [ 400, 300 ]) do menu_file = Wx::Menu.new() menu_help = Wx::Menu.new() menu_help.append(Wx::ID_ABOUT, "&About...\tF1", "Show about dialog") menu_file.append(Wx::ID_EXIT, "E&xit\tAlt-X", "Quit this program") menu_bar = Wx::MenuBar.new() menu_bar.append(menu_file, "&File") menu_bar.append(menu_help, "&Help") set_menu_bar(menu_bar) create_status_bar(2) set_status_text("Welco...
2006 Jul 25
6
Wizards
Hi Please find attached a set of patches and swig files to implement Wizards for wxruby. Also a brief sample. Quick q - the C declarations of evt_xxx_xxx methods and their attaching to Ruby classes seems to be duplicated across Events.i and EvtHandler.i - is one of these the right place to be adding them? or both? Thanks alex _______________________________________________
2007 Apr 29
0
[987] branches/wxruby2/wxwidgets_282/samples/listbook/listbook.rb: Use default constructor before load_frame_subclass to avoid GTK crash
...nbsp&nbsp&nbsp2007-04-29 14:12:45 UTC (rev 987) </span><span class="lines">@@ -26,9 +26,13 @@ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspFILE_DIALOG, FILE_ABOUT, FILE_QUIT = [0,Wx::ID_ABOUT,Wx::ID_EXIT] </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspdef initialize(parent) </span><del>-&nbsp&a...
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...t to get the keycode for a +non-alphanumeric key. </ins><span class="cx"> </span><del>- AcceleratorEntry entries[4]; - entries[0].Set(ACCEL_CTRL, (int) ''N'', ID_NEW_WINDOW); - entries[1].Set(ACCEL_CTRL, (int) ''X'', ID_EXIT); - entries[2].Set(ACCEL_SHIFT, (int) ''A'', ID_ABOUT); - entries[3].Set(ACCEL_NORMAL, WXK_DELETE, ID_CUT); - AcceleratorTable accel(4, entries); - frame->SetAcceleratorTable(accel); </del><ins>+ entries = [ Wx::AcceleratorEntry.new(Wx::ACCEL_CTRL, ...
2006 Nov 04
0
[720] trunk/wxruby2/doc/textile/menu.txtl: Update, rubyify and tidy
...r it has +been created. A menu item with a special identifier @-1@ is a separator. +Separators don''t have an associated command but just make a separator line +appear in the menu. </ins><span class="cx"> </span><del>-*NB:* Please note that _ID_ABOUT_ and _ID_EXIT_ are -predefined by Widgets and have a special meaning since entries </del><ins>+*NB:* Please note that @ID_ABOUT@ and @ID_EXIT@ are +predefined by Widgets and have a special meaning. Entries </ins><span class="cx"> using these IDs will be taken out of the normal m...
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -