Displaying 20 results from an estimated 900 matches similar to: "Proposal for an improved API for Sizer (and ToolBar)"
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2009 Jan 05
8
How to use evt_update_ui wrt RichTextCtrl ?
Hi,
I''m trying to create a very simple RichTextCtrl sample based on the C++ version.
This works pretty well now with the fixes for missing
RichTextCtrl.selection_bold? ... methods.
See the attached script.
Given the formatting buttons (bold, italics, underlined), I can type
text with the proper formatting, select some text and apply a
formatting later ...
The problem I have is I
2007 Oct 24
3
API doc update coming?
I''ve upgraded from 1.9.0 to 1.9.2 and am finding that
the errors I''m getting don''t match the docs. For example,
in Wx::ListCtrl:
- The doc makes no mention of on_get_item_column_image(),
but without this method I get NoMethodError.
- The doc says on_get_item_attr() *may* be overloaded,
but if I don''t define it, I get NoMethodError.
The API doc appears to
2007 Jun 19
5
Wx::ToolBar#insert_tool
Hey guys,
Wx::ToolBar#insert_tool, is either not referenced right, or needs to be
updated.
1.) Wx::ToolBar#insert_tool(size_t
pos, ToolBarToolBase tool) comes up with a No overloading function
type error, AKA 404 Not Found
2.) Wx::ToolBar#insert_tool(size_t pos, Integer toolId, Bitmap bitmap1,
Bitmap bitmap2 = NullBitmap, Boolean isToggle = false, Object clientData =
nil, String shortHelpString
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 Feb 24
4
wxruby effect like fxshutter
hi,
i was searching for an efect in wxruby like fxshutter from fxruby.
http://www.fxruby.org/doc/examples.html
is it possible to build an skeleton like this in wxruby?
i am ruby beginner
--
Posted via http://www.ruby-forum.com/.
2007 Oct 23
6
wxRuby 1.9.2
I''m happy to announce that wxRuby 1.9.2 is now available from Rubyforge.
As usual we''ve got source and binary gems for Win32, OS X and Linux:
http://rubyforge.org/frs/?group_id=35
or
gem install wxruby
== WHAT''S NEW ==
This release has a mix of new syntax features, new classes, and lots of
minor fixes and additions
* New shorter syntax for event handlers
* New
2007 Sep 26
7
development status, 1.9.2
Hi all
Just a quick update on recent SVN activity:
* added Sound and CollapsiblePane classes
* added the XRC tool to wxSugar
* fixed some XRC bugs in Window
* added syntax sugar for event handlers and list-like controls
* added some missing methods in Sizer
Sean - I''m away for about 10 days from this weekend, and I''m thinking of
doing a 1.9.2 release in the next day or two.
2007 Sep 28
1
WxWizard Error
Hey All,
Looks like there''s a few bugs with the controls dealing with
Wx::Wizard. I''ve gone through it a bit, and seems like there''s some
errors beyond what I could fix. An example is:
# wxWizard A wizard dialog
Wx::define_keyword_ctors(''Wizard'') do
wx_ctor_params :title => ''''
wx_ctor_params :bitmap =>
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 text sticking
far too close to the left edge of
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
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
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,
2006 Nov 22
2
Problem with "additional" submenus
Hello all,
First off, thanks for the great work.
I have recently added "more submenus" to a functioning advanced menu
that only had one "submenu off of the main menu before" The addition of
the new submenus has caused the main menu to not function correctly and
I have been pouring over the code for several weeks and I just cannot
see the error that I have introduced. This
2008 Mar 07
9
copy & paste event
hi. now I have problem about copy and paste text in my application I
make copy and paste button in toolbar and I have fuction of them but I
don''t know how to make it can copy only selection text and paste into
other textCtrl. see my picture for more info. thank you :)
Attachments:
http://www.ruby-forum.com/attachment/1526/untitled.JPG
--
Posted via http://www.ruby-forum.com/.
2006 Nov 27
8
Chaining from PXELinux to some other boot loader
Hi
I am using PXELinux to boot BartPE and some other application and it works fine. There are some other Boot application which I am using 3COM MBAUTIL PXE.mnu and floppy images. I have problem chaining from pxelinux.0 to 3com pxe.0 (pxe.mnu).
Consider:
BIOS->(DHCP-TFTP)->pxelinux.0 works fine.
BIOS->(DHCP-TFTP)->3COM pxe.mnu works fine, the menu appears and I can choose a floppy
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi,
The following code works as expected with a list box.
require "wx"
class HelloWorld < Wx::App
def on_init
helloframe = Wx::Frame.new(nil, "Hello World")
choices = ["one", "two", "three", "four", "five"]
data = ["data1", "data2", "data3", "data4", "data5"]
2007 Oct 09
17
Crash when using item data with a CheckListBox
Hi,
The following code works as expected with a list box.
require "wx"
class HelloWorld < Wx::App
def on_init
helloframe = Wx::Frame.new(nil, "Hello World")
choices = ["one", "two", "three", "four", "five"]
data = ["data1", "data2", "data3", "data4", "data5"]
2004 Feb 03
2
SYSLINUX 2.09-pre5 - Menu Depth "Feature"
HPA,
I believe I've found a possible bug with /menu.
This against the unmodified -pre5 snapshot.
SRC: http://www.survivaldisk.com/menutest.c
COMPILED: http://www.survivaldisk.com/menutest.com
It's easiest explained if you just compile the .c and experience it for
yourself, anyways.
If you have two submenus nested within each other and then call a third menu
it will bring up the
2009 Apr 02
1
Controlling vertical position
First, I want to thank everyone here who''s been helping me learn wxRuby.
The biggest problem I''m having is getting the layout of a screen right.
Right now, I have a dialog with several controls on it. With one
exception, it looks good. I''m using wxFormBuilder and Xrcise to do the
generation. I''m using nested box sizers to try to get things into the
right