Displaying 16 results from an estimated 16 matches for "on_about".
Did you mean:
nabout
2006 Nov 13
0
[730] trunk/wxruby2/samples/etc/system_settings.rb: The call to message_box in on_about needed to be prefixed with Wx::
...dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[730] trunk/wxruby2/samples/etc/system_settings.rb: The call to message_box in on_about needed to be prefixed with Wx::</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>730</dd>
<dt>Author</dt> <dd>seanlong</dd>
<dt>Date</dt> <dd>2006-11-13 01:32:02 -0500 (Mon, 13...
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 Apr 13
2
who can give me an EvtHandler#connect example?
I read the api document online: http://wxruby.rubyforge.org/doc/evthandler.html
but 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,
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...;> 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 created from outermost
</span><span class="cx"> # inwards.
</span><span class="lines">@@ -116,7 +116,7 @@
<...
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...39;')
</span><span class="cx">
</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"> w = Wx::Wizard.new(self, -1, ''The WxRuby Wizard'')
</span><span class="cx"> p1 = Wx::WizardPageSimple.new(w)
</span><span class="cx"> s = Wx::StaticText.new(p1, -1, ''Thi...
2007 Jun 26
0
[1076] trunk/wxruby2/samples/etc/activation.rb: Added sample of IconizeEvent to activation sample
...1075)
+++ trunk/wxruby2/samples/etc/activation.rb        2007-06-26 00:10:06 UTC (rev 1076)
</span><span class="lines">@@ -40,8 +40,18 @@
</span><span class="cx"> evt_menu(Wx::ID_ABOUT) { on_about }
</span><span class="cx">
</span><span class="cx"> evt_activate { | e | on_activate(e) }
</span><ins>+ evt_iconize { | e | on_iconize(e) }
</ins><span class="cx"> end
</span><span class="cx"...
2007 Nov 18
2
Issues adding sub-menu items
...Assign the menubar to this frame
self.menu_bar = menu_bar
# Create a status bar
create_status_bar(2)
self.status_text = "Welcome to HL7Query!"
# Set it up to handle menu events using the relevant methods
evt_menu Wx::ID_EXIT, :on_quit
evt_menu Wx::ID_ABOUT, :on_about
end
def on_quit
close()
end
....
....
....
Wx::App.run do
self.app_name = ''HL7Query''
frame = HL7Query.new(":::HL7Query:::")
frame.show
end
--
Posted via http://www.ruby-forum.com/.
2007 May 22
0
[1031] trunk/wxruby2/samples/text/unicode.rb: Fix so invoking the about box will not crash the app.
...05-22 17:17:39 UTC (rev 1030)
+++ trunk/wxruby2/samples/text/unicode.rb        2007-05-22 17:21:51 UTC (rev 1031)
</span><span class="lines">@@ -221,7 +221,7 @@
</span><span class="cx"> def on_about()
</span><span class="cx"> msg = sprintf("This is the About dialog of the Unicode sample.\n" \
</span><span class="cx"> "Welcome to %s", Wx::VERSION_STRING)
</span><del>- message_box(msg, "A...
2006 Oct 17
0
[681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
...span class="cx"> def get_items_recursively(parent_id, cookie)
</span><span class="lines">@@ -986,7 +987,7 @@
</span><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def on_about(event)
</span><del>- message_box("Tree test sample\n" +
</del><ins>+ Wx::message_box("Tree test sample\n" +
</ins><span class="cx"> "(c) Julian Smart 1997, Vadim Zeitlin 1998",
&l...
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 -
2007 Sep 27
10
Adding more sugar to wxSugar
...ar.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("Welcome to wxRuby!")
evt_menu Wx::ID_EXIT, :on_quit
evt_menu Wx::ID_ABOUT, :on_about
end
frame.show
end
I find it very readable and less tedious to write (see the attached
source files).
What do you think about it ?
This is only a proof of concept and I also intend to add support for
XRC initialization for CandyDialog and CandyFrame.
Cheers.
Chauk-Mean.
-------------- n...
2008 Jan 08
28
1.9.3 release, rakefile
Hi
I''d like to put out a 1.9.3 release perhaps later this week/weekend. If
you have a chance to test the build and samples esp with latest
rubygems, please do.
There are still some bugs on the list, and samples to do, but this
should address all the build/install probs that have come up. And it
would be good to get some testing and feedback on some of the new classes.
A note on the
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...</span><span class="cx"> def on_quit
</span><del>- close(Wx::TRUE)
</del><ins>+ close(true)
</ins><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> def on_about
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx"> Wx::Point.new(50, 50),
</span><span class="cx"> Wx::Size.new(450, 340))
</span><span class="cx"...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...p")
+ # Assign the menus to this frame
+ set_menu_bar(menu_bar)
+ # handle menu events
+ evt_menu(Wx::ID_OPEN) { on_open_file }
+ evt_menu(Wx::ID_PRINT) { on_print }
+ evt_menu(Wx::ID_PREVIEW) { on_preview }
+ evt_menu(Wx::ID_EXIT) { on_quit }
+ evt_menu(Wx::ID_ABOUT) { on_about }
+ end
+
+ # end the application
+ def on_quit
+ close
+ end
+
+ def on_open_file
+ f_dlg = Wx::FileDialog.new(self, "Open an HTML file", "", "",
+ "HTML files (*.html;*.htm)|.html;.htm)",
+...
2007 May 21
13
First drop of new memory management
Hi
Just a quick update on memory leaks etc. I''ve just dropped a bunch of
patches with a new approach to linking ruby''s GC to Wx''s memory
handling. Still some work to do - eg bigdemo.rb falls over quite quickly
- but working well for me on other samples.
Briefly, it disposes of fixdeleting. For almost all objects that aren''t
Windows, they should now be
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...(e) }
+ evt_menu(ID_SizeReportContent) { | e | on_change_content_pane(e) }
+ evt_menu(ID_HTMLContent) { | e | on_change_content_pane(e) }
+ evt_menu(ID_NotebookContent) { | e | on_change_content_pane(e) }
+ evt_menu(Wx::ID_EXIT) { | e | on_exit }
+ evt_menu(Wx::ID_ABOUT) { | e | on_about }
+ evt_update_ui(ID_NotebookTabFixedWidth) { | e | on_update_ui(e) }
+ evt_update_ui(ID_NotebookNoCloseButton) { | e | on_update_ui(e) }
+ evt_update_ui(ID_NotebookCloseButton) { | e | on_update_ui(e) }
+ evt_update_ui(ID_NotebookCloseButtonAll) { | e | on_update_ui(e) }
+ evt_...