Displaying 20 results from an estimated 70 matches for "boxsiz".
Did you mean:
boxsize
2007 Jan 06
0
[840] trunk/wxruby2/doc/textile/boxsizer.txtl: Add methods listing, remove one bad link and not-for-user method descriptions
...d #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[840] trunk/wxruby2/doc/textile/boxsizer.txtl: Add methods listing, remove one bad link and not-for-user method descriptions</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>840</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date&...
2004 Sep 15
2
efficient submatrix extraction
...and so on. That is I want the matrix to be evenly divided into 2x2
submatrices. Now I'm also doing this subdivision into 4x4, 8x8 ...
256x256 submatrices.
Currently I'm using loops and I'm sure there is a mroe efficient way to
do it:
m <- matrix(runif(1024*1024), nrow=1024)
boxsize <- 2^(1:8)
for (b in boxsize) {
bcount <- 0
bstart <- seq(1,1024, by=b)
for (x in bstart) {
for (y in bstart) {
xend <- x + b - 1
yend <- y + b - 1
if (length(which( m[ x:xend, y:yend ] > 0.7...
2009 Dec 12
4
grid et boxsizer
Bonjour.
Une fois mon application ouverte, je voudrais savoir, si cela est
possible, comment dimensionner automatiquement la totalité des colonnes
du grid à la taille de mon boxsizer, quand je change la taille de mon
application? (puique mon grid est inséré dans mon boxsizer).
merci
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...
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
...having a heck of a time setting up a GUI with a differing number of
widgets per row, resulting in a differing number or widgets per column.
At first I tried to simply do something like the following:
class CharacterInfoPanel < Wx::Panel
def initialize(parent)
super(parent)
sizer = Wx::BoxSizer.new(Wx::VERTICAL)
set_sizer(sizer)
row = Wx::Panel.new(self,-1)
row_sizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
row.set_sizer(row_sizer)
row_sizer.add(Wx::StaticText.new(self, -1, "Character Name"))
row_sizer.add(Wx::Panel.new(self,-1, Wx::DEFAULT_POSITION, Wx::Siz...
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.
2006 Apr 23
5
Re: StaticBoxSizer bug?
...urrently reworking several classes
and trying to fix some of the big compatibility bugs. I will test your
code with my latest builds but I don''t think I''ve gotten to the sizers yet.
Roy
Daniel F. Savarese wrote:
> I''ve run into a disparity in the behavior of StaticBoxSizer between
> wxruby2 and straight C++ wxWindows or wxPython. I''ve attached three
> equivalent test programs that place some text in a panel using a
> StaticBoxSizer to create a decorative rectangle around the text region.
> The C++ and wxPython programs create the desired resul...
2007 Dec 28
4
static box sizing problems
Hi,
I tried this one over on the main wx-users list as well, but thought I would
try it here since I am using wxRuby:
I am using wxWidgets 2.8.7 on a linux box using the GTK build.
I have pared down my issue to the simplest case: I am trying to use a
horizontal BoxSizer to split a frame into two sections: a left and right
side. I want the left side to stretch proportionally and I want the right
side to be of a fixed width. Moreover, I want to enclose the right side in
a wxStaticBox.
I happen to be using wxRuby, but the code should be understandable to C++
pr...
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
2008 Sep 27
3
Problems with ToolBar Sintaxis
First of all, it''s my first week learnig ruby and so is for wxruby,also
this is my first time working with a GUI so please, please, be patient.
I''m having problems with the code for a toolbar, i want to add an item,
but a don''t know how. this is my code for now:
@toolBarPrincipal=ToolBar.new(@panel)
@toolBarPrincipal.add_tool(-1, ''&Bonzai'',
2007 Feb 19
2
Sizer question
...some confusion about how Sizers work. I''ve read the
tutorials and the section in the wxWidgets book but I still can''t
seem to figure this out.
Here''s an example of my code:
parent = Wx::Panel.new(frame, -1, Wx::Point.new(0, 0), Wx::Size.new
(823, 900))
sizer = Wx::BoxSizer.new(Wx::VERTICAL)
child = Wx::Panel.new(parent, -1, Wx::Point.new(0, 0), Wx::Size.new
(823, 200))
sizer.add(child, 1, Wx::ALIGN_CENTER_HORIZONTAL, 0)
parent.set_sizer(sizer)
When I resize the window, the size of the child panel grows to
consume the entire height of the parent. I''d l...
2004 Apr 21
2
Resizing a ListCtrl
...his has also happened with wxRuby 0.2.0.
# BEGIN CODE
require ''wxruby''
include Wx
class MainFrame < Frame
def initialize ## {{{
# init size, ionstance variables and super {{{
super(nil, -1, "test frame")
#}}}
# main layout {{{
@dlgSizer = BoxSizer.new(VERTICAL)
centerSizer = BoxSizer.new(HORIZONTAL)
# File List {{{
@fileList = ListCtrl.new(self, -1, DEFAULT_POSITION, Size.new(250,
200),
LC_REPORT | LC_SINGLE_SEL)
fillListCtrl()
centerSizer.add(@fileList, 6, GROW|EXPAND)
# }}}
@dlgSizer.add(ce...
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
...t;/dt> <dd>2007-05-28 15:17:14 -0400 (Mon, 28 May 2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>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/s...
2004 May 13
2
A Sizer Tutorial
Hi
I''ve added a very basic introduction to using the BoxSizer class for
layout in WxRuby to the wiki. Corrections, comments welcome.
http://wxruby.rubyforge.org/wiki/wiki.pl?Using_Sizers_For_Layout
alex
2006 Aug 24
1
metaplot and meta.summaries
...anding something.
metaplot(CoeffVector, StdErrorVector, nn=NULL, labels=Name, conf.level=0.95,
xlab=paste(CoeffNames[j], CoefficientName[i]),
ylab="Countries",
xlim=NULL, summn=PostCoeffs[1,j], sumse=sqrt(PostVars[1,j]),
sumnn=1/(PostVars[1,j]),
summlabel="Summary",
lwd=2, boxsize=1)
meta.summaries
--------------
What does it mean, when I get the warning message that NaNs were produced in "pchisq(q,
df, lower.tail, log.p)"? Is there something wrong with my data (there are no NAs in the
data)?
MetaAnalyse <- meta.summaries(CoeffVector,
StdErrorVector,...
2006 Aug 24
5
TreeCtrl background?
...initialize''
from TestTextCtrl.rb:24:in `on_init''
from TestTextCtrl.rb:30
Using the following (probably overly verbose) program:
require ''wx''
include Wx
class MyFrame < Frame
def initialize(title)
super(nil, -1, title)
@top_sizer = BoxSizer.new( Wx::VERTICAL )
@panel = Panel.new(self)
@panel.set_auto_layout(true)
@panel.set_sizer(@top_sizer)
@test_text_ctrl = TextCtrl.new(@panel, -1, "")
style = @test_text_ctrl.get_default_style()
style.set_background_colour(WHITE)
@test_text_ctrl.set_default_s...
2004 May 22
4
couple of questions
Hi folks
A couple of questions:
1) I seem to get funny artifacts in the display of TreeCtrl, ComboBox
and ListBox when the MDI child frame containing it is first painted (see
attached - it should be two-root treeview, unopened). I''m not sure if
it''s related to being in a MDI, but the controls sample looks OK. The
artifacts are cleared up when it''s repainted or
2005 May 03
4
Wx::HtmlWindow.on_link_clicked
...9;'LPPPPI'', ''L'')
end
def on_link_clicked(link)
@shell.call 0, ''open'', link.get_href, nil, nil, 1
end
end
class App < Wx::App
def on_init
dialog = Wx::Dialog.new nil, -1, ''About''
sizer = Wx::BoxSizer.new Wx::VERTICAL
dialog.set_sizer sizer
html = WrappedHtml.new dialog, -1
html.set_page <<EOF
<html>
<body>
<a href="http://favicon.ru/en/">My wife web project</a><br />
<a href="mailto:dmiceman@mail.ru">mail me...
2009 Mar 23
3
How to put a background image on a panel
Well I''ve made a lot of progress on my app, but I''m stuck on figuring
out how to add a bitmap. I have a notebook and a page panel. On this
panel I want to put a backdrop image and scale it to the size of the
panel. How do I do this? I looked at some of the samples related to
bitmaps and I could not see how to apply that to my situation.
Thanks,
T.
2004 Nov 22
1
Layout Issue ...
....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 )
@frame.show
self.main_loop
end
def createButtonSizer
@buttonSizer = Wx::BoxSizer.new( Wx::HORIZONTAL )
@btn1 = Wx::Button.new(@panel, -1, ''Button 1'')
@buttonSizer.add(@btn1, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2)
@btn2 = Wx::Button.new(@panel, -1, ''Print'')
@buttonSizer.add(@btn2, 0, Wx::ALIGN_CENTER_...