similar to: static box sizing problems

Displaying 20 results from an estimated 800 matches similar to: "static box sizing problems"

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
2006 Apr 23
5
Re: StaticBoxSizer bug?
Daniel, Thanks for the sample code. Sizers do appear to have a problem and it''s on the list to take a look at. I''m currently 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
2003 Oct 20
5
wxruby - ruby-gtk2
Hi! Can anybody tell me basic differences using wxwindows and gtk2 GUI with ruby? Gergo -- +-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+
2007 Jan 22
4
Adding sizers to other sizers doesn''t work
Hello all, Running this on an Intel Mac OSX 10.4.8 ruby 1.8.4 (2005-12-24) [i686-darwin] wxruby2-preview (0.0.37) using zshell I''m 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
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.
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
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
2007 Feb 19
2
Sizer question
First, Thank you, thank you, thank you for those who put wxRuby together. I''m thrilled to be able to write GUI code in Ruby! I''m hitting 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,
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
Hello, wxruby-users. This is an addition which implement wrapper for overloading wxHtmlWindow::OnLinkClicked method. Unfortunately, it was impossible to make it correctly without ugly hack to wxpp.rb, but i`m hope it does not broke it. Please look at attachment for a patch for htmlwindow.t and wxpp.rb and additional file htmllinkinfo.t (need to be added to $objs array in extconf.rb). Sample
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
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
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
2007 Sep 11
1
LayoutConstraints upgrade path
Hey there. I have an application that I developed with an older branch of wxruby some time ago, and I made heavy use of the LayoutConstraints class. I''ve been looking around, but so far haven''t found much in the way of advice for this scenario. Is there any existing documentation as to updating such applications? Thanks, Ess -- SO not teh 1337
2006 Sep 03
9
Patch files to implement AcceptFocus
These files add the virtual function AcceptFocus that was missing from wxWindow.h. In order to make things right I had to make sure it was also declared in all the places where wxWindows also changes it. Also, in wxTextCtrl on Windows GetDefaultAttributes needs to be redeclared. I haven''t downloaded the Unix and Mac headers for 2.6.3 so I couldn''t see if it also applies
2007 Jul 04
0
[1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Apr 29
8
wxruby unfriendly to other threads?
I''ve seen a few e-mails about multithreading with respect to wxruby but nothing recent. Unless I''m mistaken, and that may be, there still appear to be problems. The following code seems to hang my spawned thread in favor of the wxruby event loop: Thread.new do puts "in thread" loop do sleep 5 puts "looping" end end puts "main
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'',
2008 Jun 12
4
Background thread - entension code - switch contexts
Hi, I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++ and used swig to load it into Ruby interpreter, which works great. The extension is an often long executing algorithm, and I''ve noticed that if I fork a new Ruby thread in button clicked event, and in this thread run the algorithm the application freezes for the time of execution. I have looked through the
2007 May 28
0
[1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: