search for: icon_inform

Displaying 15 results from an estimated 15 matches for "icon_inform".

2007 May 22
0
[1031] trunk/wxruby2/samples/text/unicode.rb: Fix so invoking the about box will not crash the app.
..."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><span class="cx"> </span></span&gt...
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::
..."cx"> msg = sprintf("This is the About dialog of the minimal 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><span class="cx"> </span></span&gt...
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...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 class="cx"> </span></span>&l...
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...s="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><span class="cx"> </span></span>...
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 Aug 22
2
Can''t change button-size?
...200),DEFAULT_FRAME_STYLE) button = Button.new(self, -1, "Push me",Point.new(10,10),Size.new(50,10)) evt_button(button.get_id()) {|event| on_button(event)} show() end def message(text, title) m = Wx::MessageDialog.new(self, text, title, Wx::OK | Wx::ICON_INFORMATION) m.show_modal() end def on_button(event) message("event recieved!!", "Button event") end end class MinimalApp < App def on_init MyFrame.new end end MinimalApp.new.main_loop #eof Can someone help...
2007 Jul 17
0
[1115] trunk/wxruby2/samples/minimal/minimal.rb: Don''t call destroy explicitly as it causes assert failures
..."cx"> # create a simple message dialog with OK button </span><span class="cx"> about_dlg = Wx::MessageDialog.new( self, msg, ''About Minimal'', </span><span class="cx"> Wx::OK|Wx::ICON_INFORMATION ) </span><del>- about_dlg.show_modal() -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspabout_dlg.destroy() </del><ins>+ about_dlg.show_modal </ins><span class="cx"> end </span><span class="cx">...
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 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
...ins><span class="cx"> "(c) Julian Smart 1997, Vadim Zeitlin 1998", </span><span class="cx"> "About tree test", </span><span class="cx"> Wx::OK|Wx::ICON_INFORMATION, self) </span></span></pre> </div> </div> </body> </html>
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.
...quot;> </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(event) </del><ins>+ def on_close(event) </ins><span class="cx"> if event.can_veto() </span><span cl...
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
2004 Jan 08
3
pictorG
...log.new(self,''Catalog base dir'',@root_dir) self.root_dir=dirdlg.get_path if dirdlg.show_modal==ID_OK } evt_menu(ID_EXIT) {close TRUE } evt_menu(ID_ABOUT) {message_box "pictorG - PICTure ORganizer by Gregory\n?Gergely Kontra","About pictorG",OK|ICON_INFORMATION} #show_pics end def root_dir= (dir) @config.write("/rootdir",@root_dir=dir) set_title @title +'' - Browsing in ''+@root_dir end def show_pics return message_box("Set root directory first!") unless @root_dir list=[] log = Thre...
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 _______________________________________________
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
...ML sample.\n" \ + "Welcome to wxRuby, version %s", Wx::WXRUBY_VERSION) + + # create a simple message dialog with OK button + about_dlg = Wx::MessageDialog.new( self, msg, ''About WxRuby HTML'', + Wx::OK|Wx::ICON_INFORMATION ) + about_dlg.show_modal() +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspabout_dlg.destroy() + end + + def on_preview + print = Wx::HtmlEasyPrinting.new(''Print HTML'', self) + print.preview_text(@html_win.html_src) + end + + def on_print...