Displaying 20 results from an estimated 1000 matches similar to: "Adding more sugar to wxSugar"
2007 Nov 18
2
Issues adding sub-menu items
Hello All,
I''m new to the list and to Ruby.
I was trying to use one of the examples as a skeleton for something that
I''m working on.
I''m currently stuck when it comes to adding another item to the
sub-menus.
I have a menu item by the name of "Tools" and I would like to add a
sub-menu item called "Find Unique Fields" but it doesn''t show up
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
<!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:
2008 Jan 04
2
problem with Menu.append_check_item()
Menu.append_check_item(), like Menu.append(), is supposed to return a
reference to the created menu item. Here is a test code which seems to show
that this behavior works for append(), but fails for append_check_item().
This is the output I get:
% ruby test-menu.rb
#<Wx::MenuItem:0xb74c036c>
nil
Am I missing something or is this a bug? Both menu items are created and
work as expected. I
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
Hi,
I wanted to use wxSugar enumerable features to add a method for
returning checked items'' index to the CheckListBox class :
require ''wx_sugar/version''
require ''wx_sugar/wx_classes/control_with_items''
require ''wx_sugar/wx_classes/listctrl''
class Wx::CheckListBox
def checked_items
# use of find_all method from Enumerable
2007 Apr 03
0
[946] trunk/wxsugar/samples/sugar-sample.rb: Illustrate enumerable_controls and has_style
<!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 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 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
<!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:
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note
the new %directorargout typemap I added to fix wxWindows calling into
SWIG. I don''t know if this can fix all such problems or not. Let me
know what you think.
I also rubified the sample a little bit more. Also, note that I fix the
<< operator so the function can be called. I hope I did this right.
Roy
2007 Feb 14
0
[875] trunk/wxruby2/samples: Add expanded grid sample
<!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:
2008 Mar 18
14
Proposal for an improved API for Sizer (and ToolBar)
Hi all,
This is a proposal for supporting keyword arguments to Sizer#add
following the thread below :
http://rubyforge.org/pipermail/wxruby-development/2008-March/001244.html
After a deeper look at lib/wx/keyword_ctors.rb and
lib/wx/keyword_defs.rb, I understood the whole thing :-).
I just reused and modified slightly the method args_as_list.
The new Sizer#add_item combines the features of add
2007 Oct 23
3
CheckListBox : delete method bug !
Hi,
I''ve practically finished a patch for removing the limitation of
CheckListBox (http://rubyforge.org/pipermail/wxruby-development/2007-October/000973.html)
but I just discovered a new bug related with this control !!
I need to redefine the delete method to take into account the deletion
of the associated data. The problem is that if I just redefine this
method and simply call super,
2006 Nov 06
3
HtmlWindow and friends
Hi
Attached is a patch to add HtmlWindow and some of its friends, including
HtmlEasyPrinting. Also a sample.
I haven''t tried exposing the parsing and rendering API yet to allow
custom tags etc - I just wanted to get basic HTML and the 0.6.0
compatibility classes first. There may well be some quite easy classes left.
There''s one ugly kludge to get OnOpeningURL to compile -
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 Nov 07
1
3 wxSugar questions
A bit new to wxRuby and have 2 questions regarding wxSugar:
1. I only find one sample application for wxSugar, but as I understand
from the docs, wsSugar is the preferred approach. Are there any more
wxSugar samples available somewhere?
2. When I run sugar-sample.rb, I get a couple of warnings: "listen is
deprecated, use evt_xxx directly". Just wanted to check: Is this sample
2007 Sep 17
7
Re : syntax II
Alex Fenton wrote :
>1) Setting up event handlers
>
>In most real apps, I think the most normal way to set up event handlers
>is for the event to be dealt with by a corresponding method. At the
>moment this has to be done using a block:
>
>evt_button(AN_ID) { on_button_click }
>evt_button(my_button.get_id) do | event |
> on_button_click(event)
>end
>evt_size { |
2007 Mar 22
0
[912] trunk/wxsugar/lib: Overview documentation moved to lib/wx_sugar.rb
<!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:
2006 Sep 07
2
A little bit of sugar
Hi
Do a search on ''wxruby'' and you''ll see that people''s main gripes are 1)
stability 2) development progress 3) documentation and 4) syntax.
We''re making great progress on 1-3 so thought it seemed like a good time
to start looking at 4). So here''s announcing a first release of WxSugar.
It can be downloaded via gems (gem install wx_sugar)
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
<!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 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"]