search for: set_status_text

Displaying 19 results from an estimated 19 matches for "set_status_text".

2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...title = "MyFrame", - pos = Wx::DEFAULT_POSITION, - size = Wx::DEFAULT_SIZE, - style = Wx::DEFAULT_FRAME_STYLE) - - super(parent, id, title, pos, size, style) - sizer = Wx::BoxSizer.new(Wx::VERTICAL) - create_status_bar() - set_status_text(Wx::VERSION_STRING) - - # panel = Wx::Panel.new(self) - sel_menu = Wx::Menu.new - sel_menu.append(1002, ''Select all'', ''Select all'') - evt_menu(1002) { @grid.select_all } - sel_menu.append(1003, ''Select row 2'', ''Select row...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...title = "MyFrame", + pos = Wx::DEFAULT_POSITION, + size = Wx::DEFAULT_SIZE, + style = Wx::DEFAULT_FRAME_STYLE) + + super(parent, id, title, pos, size, style) + sizer = Wx::BoxSizer.new(Wx::VERTICAL) + create_status_bar() + set_status_text(Wx::VERSION_STRING) + + # panel = Wx::Panel.new(self) + sel_menu = Wx::Menu.new + sel_menu.append(1002, ''Select all'', ''Select all'') + evt_menu(1002) { @grid.select_all } + sel_menu.append(1003, ''Select row 2'', ''Select row...
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
2007 May 01
1
Text of Status Bar always disappear
The first time I create the status bar by call @sb = create_status_bar @sb.set_status_text(''Welcome to use Code Line Statistics'') it works perfect. But when I click a tool bar button that trigger an event, and call @sb.set_status_text(''Finish'') if the mouse is on the button, the text of status bar is "Finish"; but once the mouse is out of t...
2003 Nov 10
1
Statusbar usage
Hi! While playing around with a little example, I''ve realized, that I don''t exactly know, how to work with the statusbar. When just calling set_status_text (setStatusText in C++), then repeating messages don''t display again. I guess there should be a magic rule about statusbar''s text hierarchy, but can sy give me some hints about it? Maybe some wxruby hints will also be useful. I''ve found log_status, but what is that? thx...
2008 May 03
3
what type of variable use? (setting text on another class va
so, i have a MinimalFrame class where i have a form, then, after a user add a new client i would like to send a log message on MainFrame status_bar. -- Posted via http://www.ruby-forum.com/.
2007 Oct 03
0
[ wxruby-Patches-14416 ] Patch for Bug [#12747] Crash on exit
...event sets this attribute to true (evt_close { |e| @closed = true, e.skip }) And then I changed the on_activate and close_all method to this: def on_activate(event) if !closed? if event.get_active puts "Frame ''#{get_title}'' became activated" set_status_text ''Active'' else puts "Frame ''#{get_title}'' became deactivated" set_status_text ''Inactive'' end event.skip # important end end and def close_all if !@frame_1.closed? @frame_1.close()...
2007 Sep 27
10
Adding more sugar to wxSugar
...enu_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("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...
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 Jul 16
0
[1113] trunk/wxruby2/samples/caret/caret.rb: Ensure the canvas has focus so KeyEvents are directed to it, fixing bug 10663
...Window, on Linux/GTK in particular + @canvas.set_focus + </ins><span class="cx"> # create a status bar just for fun (by default with 1 pane only) </span><span class="cx"> create_status_bar(2) </span><span class="cx"> set_status_text("Welcome to Windows!") </span></span></pre> </div> </div> </body> </html>
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...h.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-13 06:35:38 UTC (rev 731) </span><span class="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>&l...
2005 Aug 15
16
swig_up
Tracing down some things to add in validators and I''ve run across something that kinda bothers me... In order to implement validators you have to override the clone method. The directors seems to be set up to specifically handle this situation. However, whenever C++ calls back to the object''s methods the swig_get_up function is returning false. It seems like swig_up
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
...src = html + get_related_frame.addr_bar.set_value(@loaded_uri.to_s) + end + + def on_link_clicked(link) + link_uri = URI.parse(link.get_href) + @loaded_uri = load_page_from_uri(link_uri) + end + + def on_cell_mouse_hover(cell, x, y) + if link = cell.get_link + get_related_frame.set_status_text(link.get_href) + else + get_related_frame.set_status_text('''') + end + end +end + +# The frame or self-contained window for this application +class HtmlFrame < Wx::Frame + attr_reader :html_win, :addr_bar + + def initialize(title, pos, size, style = Wx::DEFAULT_FRA...
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 Aug 10
3
update on samples
Hi all Have been taking a look at the samples to see what''s broken. Not looking TOO bad overall, but a few problems we should try and tackle before alpha: Firstly, I have a few commits (minimal, dialogs, unicode) - anyone else been working on these or can I go ahead? One general issue is that many of the samples rely on being run from their own directory, but don''t enforce
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...lt;/span><span class="cx"> menu_bar = Wx::MenuBar.new </span><span class="cx"> </span><span class="lines">@@ -463,7 +460,6 @@ </span><span class="cx"> </span><span class="cx"> @frame.set_status_text("Printing demo") </span><span class="cx"> </span><del>- </del><span class="cx"> set_top_window(@frame) </span><span class="cx"> </span><span class="cx"> @print_data = Wx::Prin...
2008 Jan 25
0
Wine release 0.9.54
...ing color profiles. mscms: Open .icm files only when enumerating color profiles. Jacek Caban (9): shdocvw: Added DWebBrowserEvents2 test. shdocvw: Call OnFullScreen in put_FullScreen. shdocvw: Call WindowSetResizable in put_Resizable. shdocvw: Call StatusTextChange in set_status_text. shdocvw: Store URL in BindStatusCallback. shdocvw: Use more flexible mechanism instead of WB_WM_NAVIGATE2. shdocvw: Delay creating URL moniker to bind_to_object call. shdocvw: Do navigation in message handler. shdocvw: Store headers as BSTR. James Hawkins (3):...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...AuiManager.new + @mgr.set_managed_window(self) + @perspectives = [] + + # set up default notebook style + @notebook_style = Wx::AUI_NB_DEFAULT_STYLE| + Wx::AUI_NB_TAB_EXTERNAL_MOVE|Wx::NO_BORDER + @notebook_theme = 0 + setup_menu + create_status_bar + get_status_bar.set_status_text("Ready") + set_min_size( Wx::Size.new(400,300) ) + setup_toolbars + setup_panes + setup_perspectives + setup_events + @mgr.update + end + + # + def setup_menu + mb = Wx::MenuBar.new + + file_menu = Wx::Menu.new + file_menu.append(Wx::ID_EXIT, "Exit"...