search for: create_status_bar

Displaying 20 results from an estimated 26 matches for "create_status_bar".

2004 Jan 27
2
The flicker of the status bar.
...init frame = MyFrame.new("Test status bar flicker") frame.show(TRUE) end end class MyFrame < Frame def initialize(title) super( nil,-1,title, DEFAULT_POSITION, DEFAULT_SIZE, DEFAULT_FRAME_STYLE | CLIP_CHILDREN | NO_FULL_REPAINT_ON_RESIZE ) @status_bar = create_status_bar(3) set_status_bar( @status_bar ) end end a = RbApp.new a.main_loop #------------------------------------- Thanks for any answer in advance. -- Pavel. mailto:papushev@inp.nsk.su
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...
2007 Sep 27
10
Adding more sugar to wxSugar
...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") 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...
2006 Oct 05
2
0.36 release problem?
...ruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `is_maximized'': Swig director pure virtual method called wxTopLevelWindow::IsMaximized (RuntimeError) from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `on_create_status_bar'' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `create_status_bar'' from C:/opt/ruby/lib/ruby/gems/1.8/gems/wxruby2-preview-0.0.36-i386-mswin32/samples/minimal/minimal.rb:35:in `initialize''...
2006 Oct 21
0
[698] trunk/wxruby2/samples/bigdemo/MDIDemo.rbw: Removed broken background stuff to stop crash on OS X (tho still crashes
...menubar = Wx::MenuBar.new() </span><span class="cx"> menubar.append(menu, "&File") </span><span class="cx"> set_menu_bar(menubar) </span><span class="cx"> </span><del>- create_status_bar() </del><ins>+ create_status_bar </ins><span class="cx"> </span><span class="cx"> evt_menu(5000) {|event| on_new_window(event)} </span><span class="cx"> evt_menu(5001) {|event| on_exit(even...
2007 Jul 10
5
Seg Fault caused by StatusBar. Am I doing something wrong?
Some odd bug cropped up when I made a bunch of code changes to my app recently. I started getting the following everytime I closed the app: ---------------------------------- [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact the application''s support team for more information.
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
2006 Nov 21
0
[ wxruby-Bugs-6809 ] Weird SWIG error when constructing statusbar
...error when constructing statusbar Initial Comment: A SWIG exception is getting thrown when trying to show a frame with a StatusBar created using StatusBar.new. This is demonstrated by the StatusBar example within the bigdemo, or the code below. NB - it can be worked around by using the Wx::Frame#create_status_bar function. # Simple demo code: require ''wx'' class CrasherApp < Wx::App def on_init Wx::init_all_image_handlers f = Wx::Frame.new(nil, -1, ''crash_app'') s = Wx::StatusBar.new(f, -1) f.set_status_bar(s) f.show end end CrasherApp.new.main...
2006 Sep 17
1
run.rb
This is a first stab at a run.rb file that will let you run a sample in the bigdemo directory by itself. You have to add the following to the bottom of every sample file: if __FILE__ == $0 load "run.rb" run(File.basename($0)) end Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
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
2007 Nov 18
2
Issues adding sub-menu items
...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") # 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 = '...
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
...is required to set focus so that key events are directed to + # this 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>
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...tialize(parent, id = -1, 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''...
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...;nbsp2006-11-13 06:32:02 UTC (rev 730) +++ trunk/wxruby2/samples/etc/sash.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_EXI...
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
...tialize(parent, id = -1, 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''...
2004 Jan 08
3
pictorG
....new(self,-1) # Categories @cat=Categories.new(splitter) @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_...
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 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 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;ins>+ @frame = MyFrame.new(nil, "wxRuby Printing Demo", Wx::Point.new(0, 0), Wx::Size.new(400, 400)) </ins><span class="cx"> </span><span class="cx"> # Give it a status line </span><span class="cx"> @frame.create_status_bar(2) </span><span class="lines">@@ -435,13 +432,13 @@ </span><span class="cx"> =end </span><span class="cx"> </span><span class="cx"> file_menu.append_separator() </span><del>- file_menu.append...
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 -