Displaying 5 results from an estimated 5 matches for "menu_help".
2007 Nov 18
2
Issues adding sub-menu items
...Wx::Menu.new
#menu_tools.append(Wx::ID_UNIQUEFIELDS, "Find Unique Fields", "Find
Unique Fields")
menu_tools.append(nil, "Find Unique Fields", "Find Unique Fields")
menu_bar.append(menu_tools, "Tools")
# The "help" menu
menu_help = Wx::Menu.new
# Using Wx::ID_ABOUT default id means the menu item will be placed
# in the correct platform-specific place - eg on OS X
menu_help.append(Wx::ID_ABOUT, "&About...\tF1", "Show about dialog")
menu_bar.append(menu_help, "&Help")...
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
2007 Sep 27
10
Adding more sugar to wxSugar
...these simple additional classes, the minimal app sample can be
written like this :
CandyApp.create do
self.app_name = ''Minimal''
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&qu...
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 -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
..., -1)
+ @html_win.set_related_frame(self, ''HTML Window: %s'')
+ @html_win.set_related_status_bar(2)
+ @html_win.set_page(DATA.read)
+ sizer.add(@html_win, 1, Wx::ALL|Wx::GROW, 4)
+ self.set_sizer(sizer)
+ end
+
+ def setup_menus
+ menu_file = Wx::Menu.new()
+ menu_help = Wx::Menu.new()
+ # Using Wx::ID_ABOUT default id means the menu item will be placed
+ # in the correct platform-specific place
+ menu_help.append(Wx::ID_ABOUT, "&About...\tF1", "Show about dialog")
+ menu_file.append(Wx::ID_OPEN, "&Open File...\tCtrl-O...