Displaying 20 results from an estimated 20 matches for "flexgridsizer".
2004 Jun 19
4
FlexGridSizer question
=begin
I am trying to understand how FlexGridSizer works and I have written a small
test application using the latest wxRuby 0.4.0 on Win XP (Home).
I cannot get static text ''Week'', ''Day'' and ''Date'' line up above the OK button.
I have tried all combinations of ALIGN flags, but I either got the...
2006 Sep 04
1
FlexGridSizer patch
The one consistent crash I get is when Layout is called on the
FlexGridSizer. In tracking that down I saw that the header file for it
could use some tweaking. Find it attached. Didn''t fix the problem but
it might prevent another later.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.o...
2008 May 11
4
Choosing a Sizer
Following alex advices, i''ve used both "text/textctrl.rb" and
"etc/threaded.rb" to build my first wxApp.
I''ve changed the Sizer type mainly (from "Wx::BoxSizer" to
"Wx::FlexGridSizer").
I didn''t find the way to let @log (Wx::TextCtrl) span 2 columns. At the time
of writing it''s growing only vertically.
And also how to get 16px filler|spacer|border (for window resizer,
bottom-right corner, on Mac OS X) for SOUTH and EAST and 5/16 px for NORTH
and WEST
Wha...
2009 Apr 19
1
FlexibleGrid column sizing
...major challenge with the following issue. I want to generate a
table-like thing, that has a known number of columns, but a variable
number of rows, but the number of rows will be 25 or less; all the rows
are to be the same height, but the columns need to be all different
widths.
So I was using a FlexGridSizer, set the number of columns and rows; I am
able to put the sizer into a form and able to put controls into the
FlexGrid control without any proble. However all the columns are the
same width, and I can''t find any combination of flags that will make the
the columns anything other than the w...
2006 Feb 19
2
sizer support for colspan > 1?
I see that GridBagSizer is not yet supported by wxRuby. Is there an
alternative to specifying that a widget spans more than one column? I
don''t see a way to do that in FlexGridSizer.
--
R. Mark Volkmann
Partner, Object Computing, Inc.
2010 Nov 13
2
Scrolling / wxPanel / wxFlexGridSizer
...)
wxPanel (stretch factor 1, expanded vertically)
...
In the ruby file invoking the interface I have:
require ''wx''
require ''loadgui.rb'' # from xrcise
class MyApp < MyGUI
def on_init
# Sizer holding key value pairs
@settings_sizer = Wx::FlexGridSizer.new(2)
@settings_sizer.add_growable_col(1, 1)
# wxPanel holding the sizer above
@panel = @finder.call( ''ID_SETTINGS'' )
@panel.sizer = @settings_sizer
@labels = {}
@texts = {}
ENV.each { |k, v|
@labels[k] = Wx::StaticText.new(@panel, :labe...
2007 Dec 28
4
wxSizerItem show() method
It appears from the wx 2.8.7 documentation that a wxSizerItem has a show()
method. But when I try to invoke it through wxruby, I get:
tasks.rb:56:in `do_btn3'': undefined method `show'' for
#<SWIG::TYPE_p_wxSizerItem:0xb5eedf44> (NoMethodError)
Is this just something that hasn''t been added because people don''t
manipulate wxSizerItems much, or is it
2004 Nov 22
1
Layout Issue ...
...g
familar with wxRuby and any advice is appreciated.
# CODE STARTS HERE ....
require ''wxruby''
class TestApp < Wx::App
def on_init
@frame = Wx::Frame.new( nil, -1, "Test", Wx::DEFAULT_POSITION )
@panel = Wx::Panel.new( @frame )
@topSizer = Wx::FlexGridSizer.new( 1, 3 )
@topSizer.add( createInputSizer(), 1, Wx::GROW|Wx::ALL, 2 )
@topSizer.add( createGridSizer(), 1, Wx::GROW|Wx::ALL, 2 )
@topSizer.add( createButtonSizer(), 1,
Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALL, 2 )
@panel.set_sizer( @topSizer )
@topSizer.fit( @frame )
@fr...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...>GC fixes for nested sizers; fix crashes in html.rb demo</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwxruby2swigclassesBoxSizeri">trunk/wxruby2/swig/classes/BoxSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesFlexGridSizeri">trunk/wxruby2/swig/classes/FlexGridSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesGridBagSizeri">trunk/wxruby2/swig/classes/GridBagSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesGridSizeri">trunk/wxruby2/swi...
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
...m mgmt for Sizers to address more GC crashes in Sizers demo</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwxruby2swigclassesBoxSizeri">trunk/wxruby2/swig/classes/BoxSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesFlexGridSizeri">trunk/wxruby2/swig/classes/FlexGridSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesGridBagSizeri">trunk/wxruby2/swig/classes/GridBagSizer.i</a></li>
<li><a href="#trunkwxruby2swigclassesGridSizeri">trunk/wxruby2/swi...
2004 Jun 04
7
I''m ready to build 0.4.0 for Windows
Let me know when you''ve got the cvs repo labeled -- I''m already to go to
build the 0.4.0 installer for Windows.
Curt
2004 Oct 21
0
Re: wxRuby: How to add a scrollbar to a Wx::Notebook tab
..."..." ],
> ["3rd check 3", "..." ],
> ["3rd check 4", "..." ] ]
> }
> ]
>
> @sl.each_with_index{ | line, idx |
> panel = Wx::Panel.new( notebook, -1 )
> sizer = Wx::FlexGridSizer.new( 2, 0, 2 )
> panel.set_sizer sizer
>
> header = Wx::StaticText.new( panel, -1, line[:header] )
> sizer.add( header, 0, Wx::ALIGN_LEFT )
> sizer.add( Wx::StaticText.new( panel, -1, '''' ), 0,
> Wx::ALIGN_LEFT )
>...
2007 Apr 27
1
panel as child of grid on Windows
I am attempting to add controls inside a Wx::Grid. I added a Wx::Panel as a
child of the grid, then added a control to that panel. In the actual code,
the child panel would be sized and located inside a single grid cell, but I
simplified the example code.
On linux with GTK, this code performs as expected--you get a green panel
with a clickable button in it. On windows XP, however, the grid and
2008 May 18
0
[ wxruby-Bugs-20211 ] Unresolved symbol due to linkage error
...C.o obj/DataObject.o obj/DataObjectSimple.o obj/Dialog.o obj/DirDialog.o obj/DragImage.o obj/DropSource.o obj/DropTarget.o obj/EraseEvent.o obj/Event.o obj/EvtHandler.o obj/FileDataObject.o obj/FileDialog.o obj/FileDropTarget.o obj/FindDialogEvent.o obj/FindReplaceData.o obj/FindReplaceDialog.o obj/FlexGridSizer.o obj/FocusEvent.o obj/Font.o obj/FontData.o obj/FontDialog.o obj/Frame.o obj/GBPosition.o obj/GBSpan.o obj/GDIObject.o obj/GLCanvas.o obj/Gauge.o obj/GenericDirCtrl.o obj/GraphicsBrush.o obj/GraphicsContext.o obj/GraphicsFont.o obj/GraphicsMatrix.o obj/GraphicsObject.o obj/GraphicsPath.o obj/Graph...
2009 Jan 29
6
Control Characters
I am attempting a text editor using wxRuby. I''m having character issues.
Strings are not binary-safe.
Some characters are not allowed.
- newline / line feed (\n), tab (\t) are displayed
- carraige return (\r) is stripped
- Other control characters and high-ascii cause control values to become
empty.
Affected controls include: Wx::TextCtrl, Wx::StaticText, Wx::Clipboard,
et al.
Most
2010 Jan 28
5
Compiling problem on Ubuntu 9.10 64 bit
...eEvent.o obj/DatePickerCtrl.o obj/Dialog.o obj/DirDialog.o
obj/Display.o obj/DragImage.o obj/DropSource.o obj/DropTarget.o
obj/EraseEvent.o obj/Event.o obj/EvtHandler.o obj/FileDataObject.o
obj/FileDialog.o obj/FileDropTarget.o obj/FindDialogEvent.o
obj/FindReplaceData.o obj/FindReplaceDialog.o obj/FlexGridSizer.o
obj/FocusEvent.o obj/Font.o obj/FontData.o obj/FontDialog.o obj/Frame.o
obj/GBPosition.o obj/GBSpan.o obj/GCDC.o obj/GDIObject.o obj/GLCanvas.o
obj/Gauge.o obj/GenericDirCtrl.o obj/GraphicsBrush.o
obj/GraphicsContext.o obj/GraphicsFont.o obj/GraphicsMatrix.o
obj/GraphicsObject.o obj/GraphicsPath....
2005 Jul 31
5
SWIG compilation
The result of the compilation after installing swig results in lots of
errors of the sort:
WindowDisabler.obj : error LNK2001: unresolved external symbol
_SWIG_Ruby_ConvertPtr
I can see this is defined in rubydef.swg but I''m not sure why this isn''t
just included in the files that need it. Can any swig experts tell me
what I need to do to progress? I''m using
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I
also expanded the bigdemo window a little bit. I really think we should
go larger but I suppose there might be some people at 800x600 still.
Note that creating your own art provider still doesn''t quite work
correctly. I didn''t have time to get into that.
The RubyConstants.i.patch file looks weird. Not
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. I installed wxX11 in my
linux box. I compiled the demos and all the demos, save dbbrowse,
work. I think I have a functional wx. Now I''m trying to install wxRuby
from source, since I have a 64 bit machine. I only have permission to
my home directory so my installation is :
/usr/people/stevenq/Applications/wxX11/
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...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.add( 5, 5 )
+ flex.add( 5, 5 )
+ flex.add( Wx::StaticText.new( panel, -1, "Wx::TextCtrl:" ),
+ 0, Wx::ALL|Wx::ALIGN_CENTRE, 5 )
+ flex.add( Wx::T...