Displaying 20 results from an estimated 25 matches for "message_box".
Did you mean:
message_body
2005 Apr 03
4
BusyCursor probs in 0.6
...t, so the full code now reads:
require ''wxruby''
include Wx
class MyFrame < Wx::Frame
def initialize(title)
super(nil, -1, title)
end
end
class NothingApp < Wx::App
def on_init
frame = MyFrame.new("Minimal wxRuby App")
frame.show
BusyCursor.new {
message_box("This is a control sample", "About Controls")
}
end
end
a = NothingApp.new
a.main_loop()
-----------------------
However, the message_box line is never executed and the program seems
to hang. Could somebody advise if I am doing something wrong?
Thanks,
David L.
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::
...s {background:#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 -0...
2007 Jul 18
0
[1118] trunk/wxruby2/swig: Move Wx::message_box function from wx.i to Functions.i, where it belongs
...cc;margin:10px 0;}
#patch ins {background:#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>[1118] trunk/wxruby2/swig: Move Wx::message_box function from wx.i to Functions.i, where it belongs</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>1118</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-07-18 0...
2010 Jul 31
2
Non-modal FXMessageBox
Is there a way to make FxMessageBox non-modal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100731/bd63db58/attachment-0001.html>
2007 Sep 05
6
centering MessageDialog
Hi,
is there any way to center the default Wx::MessageDialog or Wx::message_box
on parent (owner) instead of screen?
I haven''t found any constant other than Wx::DEFAULT_POSITION.
thanks for your help.
fabio.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
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
2007 Oct 24
5
How can I hide a DIV with a success message inside?
I want to have something like Facebook has. In some cases when you
post something a success message shows up (on the same page, not a pop-
up), stays 2-3 seconds and then fades away.
How can I do that with Prototype?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
2007 May 22
0
[1031] trunk/wxruby2/samples/text/unicode.rb: Fix so invoking the about box will not crash the app.
...quot;> 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, "About Minimal", Wx::OK|Wx::ICON_INFORMATION, self)
</del><ins>+ Wx::message_box(msg, "About Minimal", Wx::OK|Wx::ICON_INFORMATION, self)
</ins><span class="cx"> end
</span><span class="cx"> end
</span><s...
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...t;cx"> def on_about
</span><span class="cx"> msg = sprintf("This is the About dialog of the sash sample.\n" \
</span><span class="cx"> "Welcome to %s", Wx::VERSION_STRING)
</span><del>- message_box(msg, "About Sash", Wx::OK|Wx::ICON_INFORMATION, self)
</del><ins>+ Wx::message_box(msg, "About Sash", Wx::OK|Wx::ICON_INFORMATION, self)
</ins><span class="cx"> end
</span><span class="cx"> end
</span><span cl...
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
..._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",
</span><span class="cx">...
2006 Aug 02
13
wxruby2 alpha release goals
Hi
We''re all keen to get a release out, for lots of reasons: getting more
people testing, showing people the progress we''ve made, etc. So I
suggest that we now look to release an alpha version very soon, based
pretty much on the current state of CVS plus pending check-ins.
Sure, it has some bugs, some missing features and segfaults occasionally
- but my experience on OS X
2004 Jan 08
3
pictorG
...plitter)
@cat.evt_tree_item_activated(@cat.get_id) { |e|
self.show_pics() #if e.get_item == @cat.root
}
@pic=Pictures.new(splitter)
splitter.split_vertically @cat,@pic,150
#set_auto_layout(TRUE)
# Statusbar
create_status_bar()
# Events
evt_menu(ID_NEW) {message_box "New db"}
evt_menu(ID_OPEN) {
filedlg=FileDialog.new(self,''Open catalog'','''','''',''Picture organizer catalog *.poc|*.poc'',OPEN|CHANGE_DIR).show_modal}
evt_menu(ID_SETROOT) {
dirdlg=DirDialog.new(self,...
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...t;<ins>+ def on_about
</ins><span class="cx"> msg = sprintf("This is the About dialog of the wizard sample.\n" \
</span><span class="cx"> "Welcome to %s", Wx::VERSION_STRING)
</span><del>- message_box(msg, "About Wizard", Wx::OK|Wx::ICON_INFORMATION, self)
</del><ins>+ Wx::message_box(msg, "About Wizard", Wx::OK|Wx::ICON_INFORMATION, self)
</ins><span class="cx"> end
</span><span class="cx"> end
</span><spa...
2006 Dec 23
0
[796] trunk/wxruby2/samples/xrc/xrc_sample.rb: Simplify some method calls, rubyify and add a little more explanation
...( @ok.get_id ) { end_modal(Wx::ID_OK) }
+ evt_button( @cancel.get_id ) { end_modal(Wx::ID_CANCEL) }
+                evt_button( @message.get_id ) do
+ Wx::message_box("And now a message from our sponsors.")
</ins><span class="cx">                 end
</span><del>-   &am...
2004 Jun 19
4
FlexGridSizer question
...btn = Wx::Button.new(frame,:btn.id,"OK",
Wx::Point.new(10,10),Wx::DEFAULT_SIZE)
btn.evt_button(:btn.id){|event| onOK()}
end
def onOK()
begin
dialog = MyDialog.new(nil)
ret = dialog.show_modal()
rescue
Wx::message_box($!.to_s,"Error")
end
end
end
app = MyApp.new
app.main_loop()
__END__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wxruby-users/attachments/20040619/f3047616/attachment.htm
2004 Dec 09
6
Scrolling to the bottom of a Grid
Hi,
Thanks to the newly added event handlers for Wx::Grid in the 0.6.0
release, I can now provide a much slicker intreface to my "data widgets"
which heavily rely on that control.
However, I haven''t quite figured out how to programmatically scroll to
the last row of a populated grid (actually, the first empty row). So
say that I have a grid with 200 rows only 20 of which
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...vent) }
</ins><span class="cx">
</span><span class="cx"> end
</span><span class="cx">
</span><del>- def onButton(event)
</del><ins>+ def on_button(event)
</ins><span class="cx"> message_box("Button pressed in modeless dialog", "Info",
</span><span class="cx"> OK | ICON_INFORMATION, self)
</span><span class="cx"> end
</span><span class="cx">
</span><del>- def onClose(ev...
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 May 04
0
[1010] trunk/wxruby2: PrintPreview ok method name changed to is_ok, update sample
...= Wx::PrintPreview.new(MyPrintout.new, MyPrintout.new, print_dialog_data)
</span><del>- if (!preview.ok)
</del><ins>+ if not preview.is_ok
</ins><span class="cx"> #delete preview;
</span><span class="cx"> Wx::message_box("There was a problem previewing.\nPerhaps your current printer is not set correctly?", "Previewing", Wx::OK)
</span><span class="cx"> return
</span></span></pre></div>
<a id="trunkwxruby2swigclassesincludewxPrintPrevi...
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...an class="cx"> end
</span><span class="cx">
</span><span class="cx"> def check_item(item)
</span><del>- unless item.is_ok
</del><ins>+ unless item.nonzero?
</ins><span class="cx"> message_box("Please select some item first!",
</span><span class="cx"> "Tree sample error",
</span><span class="cx"> Wx::OK|Wx::ICON_EXCLAMATION, self)
</span><span class="lines">@@ -1028,7...