Displaying 16 results from an estimated 16 matches for "default_validator".
2007 Jan 04
0
[825] trunk/wxruby2/swig/RubyConstants.i: Added DEFAULT_VALIDATOR constant
...px 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>[825] trunk/wxruby2/swig/RubyConstants.i: Added DEFAULT_VALIDATOR constant</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>825</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-01-04 17:48:52 -0500 (Thu, 04 Jan 2007)</dd>...
2006 Dec 26
0
[ wxruby-Bugs-7451 ] Add Wx::DEFAULT_VALIDATOR
...12-26 01:37
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=7451&group_id=35
Category: Missing API call
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Alex Fenton (brokentoy)
Assigned to: Alex Fenton (brokentoy)
Summary: Add Wx::DEFAULT_VALIDATOR
Initial Comment:
WxWidgets defines a constant wxDefaultValidator, but it''s not currently exposed in wxRuby2. This is needed because it is the default arg to many control constructors (similar to Wx::DEFAULT_SIZE and Wx::DEFAULT_POSITION)
--------------------------------------------------...
2007 Mar 21
4
Bug in TextCtrl constructor
...rl (originally
uncovered while using WxSugar but it appears to apply to WxRuby itself
as well). Here''s the output from irb:
# ------
irb(main):001:0> require ''wx'';
irb(main):002:0* ctl =
Wx::TextCtrl.new(nil,-1,"",Wx::DEFAULT_POSITION,Wx::DEFAULT_SIZE,0,Wx::DEFAULT_VALIDATOR,"my_name")
=> #<Wx::TextCtrl:0x2e7a188>
irb(main):003:0> puts ctl.get_name
=> nil
# That should have printed "my_name"
# -----
It''s not a show-stopper, though, as you can just assign to ctl.name.
This bug shows up when you are trying to do
<Wx::Wind...
2006 Nov 21
0
[745] trunk/wxruby2/doc/textile/choice.txtl: Correct ruby method signature for constructor, bit more explanatory text
...,
- %(arg-type)String% choices[],
</del><ins>+ %(arg-type)Array% choices[],
</ins><span class="cx"> %(arg-type)Integer% style = 0,
</span><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = "choice")
</span><span class="cx">
</span><del>- *Choice.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, %(arg-type)Point% pos,
- %(arg-type)S...
2006 Nov 21
0
[746] trunk/wxruby2/doc/textile/listbox.txtl: Correct ruby method signature for methods that accept an array of strings
...p                    %(arg-type)Integer% style = 0,
</ins><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = "listBox")
</span><span class="cx">
</span><del>- *ListBox.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, %(arg-type)Point% pos,
- %(arg-ty...
2007 Mar 21
0
[906] branches/wxruby2/wxwidgets_282: Wx::ComboBox API 2.6 -> 2.8, plus some doc corrections
...- %(arg-type)Point% pos = DEFAULT_POSITION,
- %(arg-type)Size% size = DEFAULT_SIZE,
- %(arg-type)Integer% n,
- %(arg-type)String% choices[],
- %(arg-type)Integer% style = 0,
- %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
- %(arg-type)String% name = "comboBox")
-
</del><span class="cx"> *ComboBox.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, %(arg-type)String% value,
</span><span class="cx"> %(arg-type)Point% pos,
&l...
2006 Dec 01
0
[768] trunk/wxruby2/doc/textile/checklistbox.txtl: Corrected constructor method signature
...%(arg-type)Size% size = DEFAULT_SIZE,
+ %(arg-type)Array% choices = [],
</ins><span class="cx"> %(arg-type)Integer% style = 0,
</span><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = "listBox")
</span><span class="cx">
</span><del>- *CheckListBox.new*(%(arg-type)Window% parent, %(arg-type)Integer% id, %(arg-type)Point% pos,
-...
2009 Jan 29
4
Help understanding EVERYTHING
Team,
I am trying to learn a GUI for Ruby and I picked wxRuby.
The problem is that I am kind of slow learning this and I now feel
frustrated after trying for about at least 7 hours.
I am trying to design a simple Sudoku 9x9 grid to display numbers, 1 - 9,
using buttons.
I posted a question on Ruby forum ruby-talk and a gentleman, Alex Fenton,
answered my questions.
Alex gave me what appear to be
2007 Jan 06
0
[836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
...efine_keyword_ctors(''CheckBox'') do
</span><span class="cx"> wx_ctor_params :label => ''''
</span><span class="cx"> wx_ctor_params :pos, :size, :style
</span><del>- # wx_ctor_params :validator => Wx::DEFAULT_VALIDATOR, :name => ''checkBox''
</del><ins>+ wx_ctor_params :validator, :name => ''checkBox''
</ins><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> # A listbox with a...
2006 Dec 26
0
[805] trunk/wxsugar/lib/wx_sugar/keyword_classes.rb: NULL_BITMAP is now defined when wxruby2 is loaded, so dummy def not needed
...gt; wx_ctor_params :label => ''''
</span><span class="cx"> wx_ctor_params :pos, :size, :style
</span><del>- # wx_ctor_params :validator, :name => ''checkBox''
</del><ins>+ # wx_ctor_params :validator => Wx::DEFAULT_VALIDATOR, :name => ''checkBox''
</ins><span class="cx"> end
</span><span class="cx">
</span><span class="cx"> # A listbox with a checkbox to the left of each item
</span></span></pre>
</div>
</di...
2007 Apr 14
0
[966] branches/wxruby2/wxwidgets_282/doc/textile/listbox.txtl: Fix methods which don''t need a ''n'' item for arrays in Ruby
...p                   %(arg-type)Integer% style = 0,
</ins><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = "listBox")
</span><span class="cx">
</span><span class="lines">@@ -136,21 +137,15 @@
</span><span class="cx"> "ControlWithItem...
2007 Mar 09
0
[877] trunk/wxruby2/Changelog: Update with 0.0.39 changes; correct last version number
...ke wx raise an exception if Icon created from non-existent file (Alex Fenton)
+- Fix a GC crasher when using nested sizers (Alex Fenton)
+- Made NULL_XXX objects available from startup though (Alex Fenton)
+- Moved init StockObjects to App.on_init to avoid GTK error messages (Alex Fenton)
+- Added DEFAULT_VALIDATOR constant (Alex Fenton)
+- Tidied up redundant stuff for old Wx versions in App.i (Alex Fenton)
+- Added convenience wrapper & doc for TextUrlEvent (Alex Fenton)
</ins><span class="cx"> - Added AcceleratorEntry and AcceleratorTable classes, plus doc (Alex Fenton)
</span&...
2007 Jan 05
0
[827] trunk/wxruby2/swig: Moved NULL objects into constants so they can be used for default args
...p 2007-01-05 21:43:19 UTC (rev 827)
</span><span class="lines">@@ -2145,6 +2145,17 @@
</span><span class="cx"> %constant const wxPoint DEFAULT_POSITION = wxDefaultPosition;
</span><span class="cx"> %constant const wxValidator DEFAULT_VALIDATOR = wxDefaultValidator;
</span><span class="cx">
</span><ins>+
+// ''Null'' objects
+%constant wxBitmap const NULL_BITMAP = wxNullBitmap;
+%constant wxIcon const NULL_ICON = wxNullIcon;
+%constant wxCursor const NULL_CURSOR = wxNullCursor;
+%con...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
.../span><span class="cx"> %(arg-type)Size% size = DEFAULT_SIZE,
</span><span class="cx"> %(arg-type)Integer% style = TR_HAS_BUTTONS,
</span><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><del>- %(arg-type)String% name = "listCtrl")
</del><ins>+ %(arg-type)String% name = "treeCtrl")
</ins><span class="cx">
</span><span class="cx"> Constructor, creating and sh...
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...%(arg-type)Size% size = DEFAULT_SIZE,
</span><del>- %(arg-type)Integer% style = LC_ICON,
</del><ins>+ %(arg-type)Integer% style = @LC_ICON@,
</ins><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = ListCtrlNameStr)
</span><span class="cx">
</span><span class="lines">@@ -189,12 +189,6 @@
</span><span class="cx">
</span><span clas...
2007 Apr 14
0
[965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
...ger% style = 0,
</del><ins>+ %(arg-type)Size% size = DEFAULT_SIZE, %(arg-type)Integer% n,
+ %(arg-type)String% choices[] = nil, %(arg-type)Integer% style = 0,
</ins><span class="cx"> %(arg-type)Validator% validator = DEFAULT_VALIDATOR,
</span><span class="cx"> %(arg-type)String% name = "listBox")
</span><span class="cx">
</span><span class="lines">@@ -141,9 +141,9 @@
</span><span class="cx">
</span><span...