similar to: FlexGridSizer question

Displaying 20 results from an estimated 400 matches similar to: "FlexGridSizer question"

2004 Jun 02
13
wxGrid Question
When operating with a wxGrid is there a way to get a reference to the TextCtrl field that is created when you start typing in a cell. Also is there a way to get mouse events to work with a wxGrid, so far I can''t get any of them to work. I had tried various combo''s of: @grid.evt_left_down(){ |event| puts "Left mouse is down"; } using evt_left_down, evt_left_up,
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 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
2004 May 24
9
Combo Box
>> You really want to call get_value. Unfortunately, that''s not implemented >> in wxRuby 0.3.0. >I found to my surprise that this method is actually working, but only in the >example code that comes with wxRuby one-click install for Windows. @combo.get_label seems to work for me. See sample code below. HTH, Assaph ----- CODE ----- require ''wxruby''
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
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.
2009 Apr 19
1
FlexibleGrid column sizing
OK, I''m relatively new to wxruby, but have gotten a few forms successful, and so building up some experience, but have run into a 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
2004 Apr 21
2
Resizing a ListCtrl
Hi Guys, I''m having serious troubles resizing a dialog with a ListCtrl. The ctrl will not resize horizontally no matter what I''m doing. I''ve attached a sample code below. Any help will be greatly appreciated, as I really like wxRuby :) I''ve also tried to copy from the example from listtest.rbw, but that also doesn''t seem to work. Another thing
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
2006 Feb 07
3
ActiveRecord for kirbybase?
I''ve found vague mentions of various attempts at creating an ActiveRecord adapter for the KirbyBase pure Ruby DBMS, but nothing which looks like it''s actually working. Anyone know of such an adapter that is functional and available? b
2006 Mar 24
9
Escaping characters
Hi, I am writing some help about post formatting. I am using redcloth to format the text, and in a FAQ, also formatted with redcloth, I explain what to type to what to obtain. So, how could I escape ''*'', ''#'' & Co, to have an output like <redcloth> Type *word* to obtain <strong>word</strong> </redcloth> I tried "Type
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 Apr 26
7
TRW: getters and setters
Hi all, I mentioned this on the forum but wasn''t sure if anyone was paying attention. I was just wondering if it would be possible to replace the get_something/set_something style methods with the more Rubyish something/something= style (i.e. uniform access). For example, the Button class currently has button.get_label and button.set_label("foo"). It would give me warm,
2004 Aug 25
7
problem subclassing Wx::Menu
Hi folks I''m trying to make a class to make Wx::Menu easier for me to use and hide the constants and event-binding complexity. I''ve created a subclass of Wx::Menu, but whether I create my own append() method and call super(), or create a differently-named method and called append() from it, it seems to segfault. Sample attached, see line 20. Am I doing something stupid?
2006 Mar 02
5
Instiki and SQL Server??
Hello. I reeeeally want to get Instiki running at my day job, but they are Microsoft-heads. While I can probably sell them on trying Rails, they are definitely going to want the database to sit in our SQL Server instance with our other databases. I can''t get instiki to create the tables in sql server though (I''ve added ADO.rb, and gotten a connection). When I run the
2006 Jun 16
6
rendering mathematical equations
Any recommendations on how I can get mathematical equations into my resulting html? (Besides using x^2^ type markup.) I figure I could parse out equation text from my main text before RedCloth ever sees it... and then maybe create png''s somehow from it, putting the links to them back into the main text before handing it over to RC. But I don''t know of a util that will generate
2006 Feb 15
7
Ackbar - ActiveRecord Adapter for KirbyBase
= About Ackbar Ackbar is an adapter for ActiveRecord (the Rails ORM layer) to the KirbyBase pure-ruby plain-text DBMS. Because KirbyBase does not support SQL, joins or transactions, this is not a 100% fit. There are some changes to the ActiveRecord interface (see below), but it may still be useful in some cases. = URIs Ackbar: http://ackbar.rubyforge.org KirbyBase:
2010 Nov 13
2
Scrolling / wxPanel / wxFlexGridSizer
I have a problem getting scroll bars to become active. Scrollbars appear but do not actually scroll. The problem I am trying to solve is to list a large number of key/value pairs. I looked to use PropertyGrid but did not find it in wxruby 2.0.1. I''m really stuck and would appreciate any help. Thanks, Dave Details: I am starting with an .xrc file containing: ...
2004 Aug 07
1
end_modal question
Really stupid question, but have you wrapped this all in an App class? If you don''t have a wxApp subclass driving your applications then all sorts of badness would happen. > I''m writing a custom little application for my boss''s high school > football team to track there stats play by play. > > My problem is that when I start the application, it
2004 Jun 10
2
Building wxruby-swig on WinXP
Sorry for the lameness, but I need things explained to me very slowly... -----Original Message----- Subject: RE: [Wxruby-users] wxGrid Question > > Yes, grab the latest tarball from the above location. Then, you should > install rubygems if you haven''t already: > http://rubyforge.org/projects/rubygems/ > > That should allow you to easily install rake: >