search for: add_pag

Displaying 14 results from an estimated 14 matches for "add_pag".

Did you mean: add_page
2008 Jan 16
2
Question about WxNotebook, threads, and GUI refreshing
...--- MultiTool.rb --- require ''wx'' require ''wx_sugar/all'' require ''panels/all.rb'' class MainNB < Wx::Notebook def initialize(parent, id) super(parent, id, Wx::DEFAULT_POSITION, Wx::DEFAULT_SIZE, Wx::NB_TOP) fpar_page = add_page(FPARPanel.new(self), "Acct. Report", true, 0) gsbis_page = add_page(GSBISPanel.new(self), "Inv. Scan", true, 0) mpa_page = add_page(MPAPanel.new(self), "Product Addition", true, 0) msrpc_page = add_page(MSRPCPanel.new(self), "SRP Change&qu...
2006 Nov 13
0
[734] trunk/wxruby2/samples/bigdemo/bigdemo.rb: Remove debug output line I forgot to remove before I did a commit.
...7:01:17 UTC (rev 733) +++ trunk/wxruby2/samples/bigdemo/bigdemo.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-13 07:05:34 UTC (rev 734) </span><span class="lines">@@ -326,7 +326,6 @@ </span><span class="cx"> @nb.add_page(@ovr, "Overview") </span><span class="cx"> </span><span class="cx"> if Wx.const_defined?(:Scintilla) </span><del>-puts "here" </del><span class="cx"> panel, @txt =...
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...6:35:38 UTC (rev 731) +++ trunk/wxruby2/samples/bigdemo/bigdemo.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-13 07:00:35 UTC (rev 732) </span><span class="lines">@@ -326,6 +326,7 @@ </span><span class="cx"> @nb.add_page(@ovr, "Overview") </span><span class="cx"> </span><span class="cx"> if Wx.const_defined?(:Scintilla) </span><ins>+puts "here" </ins><span class="cx"> panel, @txt =...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...Wx::Size.new(430, 200), + @notebook_style) + + page_bmp = Wx::ArtProvider::get_bitmap( Wx::ART_NORMAL_FILE, + Wx::ART_OTHER, + Wx::Size.new(16,16) ) + + ctrl.add_page( create_html_ctrl(ctrl), + "Welcome to Wx::AUI", false, page_bmp) + + panel = Wx::Panel.new(ctrl, Wx::ID_ANY) + flex = Wx::FlexGridSizer.new( 2 ) + flex.add_growable_row( 0 ) + flex.add_growable_row( 3 ) + flex.add_growable_row( 1 ) + + flex.a...
2007 Nov 08
1
Why don''t my tabs look as nice as theirs?
...ery simple. Here''s my test script: ------------------------------------------------------------ require "wx" include Wx class MyNotebook < Notebook def initialize( parent ) super(parent, -1) %w[ Apples Oranges Bananas ].each{ |d| win = Panel.new( self, -1 ) add_page( win, d, false ) } end end class MyApp < App def on_init frame = Frame.new(nil, -1, "Test") MyNotebook.new( frame ) frame.show() end end MyApp.new.main_loop ------------------------------------------------------------ Thanks for your help! Peralta ____________...
2006 Sep 14
1
wxChoicebook
wxChoicebook.rbw + patch file to bigdemo.rb Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2004 Oct 21
0
Re: wxRuby: How to add a scrollbar to a Wx::Notebook tab
...notes, 1) > > sizer.add( Wx::StaticText.new( panel, -1, '''' ), 0, > Wx::ALIGN_LEFT ) > sizer.add( Wx::StaticText.new( panel, -1, '''' ), 0, > Wx::ALIGN_LEFT ) > } > notebook.add_page( panel, "Tab No #{idx + 1}" ) > } > end > > end > > if __FILE__ == $0 > TabScroller.new.main_loop() > end > > --- code end --- > > These are my questions: > How would I introduce a Wx::ScrolledWindow (if that''s what is needed)...
2007 Jun 05
0
[1053] trunk/wxruby2/samples: Change references to assign_image_list methods to set_image_list in samples
.../span><del>- assign_image_list(il) </del><ins>+ set_image_list(il) </ins><span class="cx"> </span><span class="cx"> win = make_color_panel(Wx::BLUE) </span><span class="cx"> add_page(win, "Blue", true, 0) </span></span></pre></div> <a id="trunkwxruby2samplescontrolscontrolsrb"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/samples/controls/controls.rb (1052 => 1053)</h4> <pre class...
2007 Jun 05
0
[1052] trunk/wxruby2: Remove unwanted Notebook#assign_image_list method, update docs
...p&nbsp&nbsp&nbsp&nbsp&nbsp2007-06-05 22:27:54 UTC (rev 1052) </span><span class="lines">@@ -82,7 +82,6 @@ </span><span class="cx"> * "Notebook.new":#Notebook_new </span><span class="cx"> * "Notebook#add_page":#Notebook_addpage </span><span class="cx"> * "Notebook#advance_selection":#Notebook_advanceselection </span><del>-* "Notebook#assign_image_list":#Notebook_assignimagelist </del><span class="cx"> * "Notebook#crea...
2007 Nov 09
6
Wx::Notebook tabs, bug reports on...
Thank you Alex for the answer to my previous question -- it was exactly what I was looking for! Moving on, I have some bugs to report: I''m using the Wx::Notebook class and it looks to me like Wx::NB_LEFT, Wx::NB_RIGHT, and Wx::NB_BOTTOM are defined incorrectly. To get my tabs to appear on the bottom, for example, I find I have to use Wx::NB_LEFT. Same symptom in
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...60), DEFAULT_SIZE, </span><span class="cx"> ALIGN_RIGHT) </span><span class="lines">@@ -421,31 +396,6 @@ </span><span class="cx"> </span><span class="cx"> @m_notebook.add_page(panel, "BitmapXXX") </span><span class="cx"> </span><del>- # layout constraints - - panel = Panel.new(@m_notebook) - panel.set_auto_layout( TRUE ) - - c = LayoutConstraints.new - c.top.same_as( panel, LAYOUT_TOP, 10 )...
2007 May 05
0
[1012] trunk/wxruby2/doc/textile: Added docs for AUI Advanced User Interface classes
...this style, the close button is visible on the active tab.| +|@AUI_NB_CLOSE_ON_ALL_TABS@|With this style, the close button is visible on all tabs.| + + + +h2. Data structures + +<div id="methods"> + +h2. Methods + +* "AuiNotebook.new":#AuiNotebook_new +* "AuiNotebook#add_page":#AuiNotebook_addpage +* "AuiNotebook#create":#AuiNotebook_create +* "AuiNotebook#delete_page":#AuiNotebook_deletepage +* "AuiNotebook#get_art_provider":#AuiNotebook_getartprovider +* "AuiNotebook#get_page":#AuiNotebook_getpage +* "AuiNotebook#get_...
2011 Mar 08
6
[PATCH v1 0/6] btrfs: scrub
This series adds an initial implementation for scrub. It works quite straightforward. The usermode issues an ioctl for each device in the fs. For each device, it enumerates the allocated device chunks. For each chunk, the contained extents are enumerated and the data checksums fetched. The extents are read sequentially and the checksums verified. If an error occurs (checksum or EIO), a good copy
2005 Aug 09
43
Some patches.
...it. fix-controls-sample.patch & icons.tar.gz - Some small changes, so the controls-sample runs in all its glory. :) The icons are needed or the sample crashes with a nasty GTK error (on my Linux system). To run without the icons you have to remove the last parameter of each call to @m_notebook.add_page. I''m thinking about adding more code from the C++ controls sample and make the code a little bit more rubyish, so stay tuned :) Greetings Tobi PS: I hate working with CVS. Anyone interested moving to something better? I would prefer something like Darcs or Arch. -- GPG-Key 0xE2BEA341...