Displaying 20 results from an estimated 20 matches for "xrcid".
Did you mean:
orcid
2005 Aug 03
1
patch for xrcid
Somewhere along the way the xrcid function got removed from
Functions.i, this will add it back.
Kevin I hope you like these small patches, you are going to get a lot.
Sean
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Dec 23
0
[796] trunk/wxruby2/samples/xrc/xrc_sample.rb: Simplify some method calls, rubyify and add a little more explanation
...nbsp            #
-                # Get the buttons. Note we use ''xrcid'' much like the XRCID macro
-                # in C++. Make sure the id''s actually exist, or your program will crash!
-   &nbs...
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb
1) Message box scrolls properly now
2) Blank lines are skipped when adding pizzas and ice cream
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Jul 26
10
Patch for wxRuby2
Ok so I made a lot of changes and the controls sample works pretty good now.
What I changed or added:
- Got all my modifications meshed into wxRuby2.
- Added constructors to wxIcon.h
- Changed Xrc.i to XmlResource.i and changed wxXrc to wxXmlResource
within the file.
I also had to change Xrc to XmlResource in rakewx.rb.
- For backwards compatability with wxRuby 0.6 I added the subclass methods
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
...il)
super()
xml = Wx::XmlResource.get
xml.flags = 2 # Wx::XRC_NO_SUBCLASSING
xml.init_all_handlers
xml.load("sample1.xrc")
xml.load_frame_subclass(self, parent, "MyFrame1")
finder = lambda do | x |
int_id = Wx::xrcid(x)
begin
Wx::Window.find_window_by_id(int_id, self) || int_id
# Temporary hack to work around regression in 1.9.2; remove
# begin/rescue clause in later versions
rescue RuntimeError
int_id
end
end...
2007 Jul 04
0
[1098] trunk/wxruby2: Test return value from XmlResource#load and raise an exception on failure
...7 +147,7 @@
</span><span class="cx">
</span><span class="cx"> Returns a numeric ID that is equivalent to the string ID used in an XML
</span><span class="cx"> resource. To be used in event tables.
</span><del>-The macro @XRCID(name)@ is provided for convenience.
</del><ins>+The module method @Wx::xrcid(name)@ is provided for convenience.
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> h3(#XmlResource_initallhandlers)...
2008 Oct 06
2
StdDialogButtonSizer default button
Hi all,
How do i set the default button for a Wx::StdDialogButtonSizer?
Any hints would be appreciated.
regards.
bio.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Aug 25
2
listbook.rb patch
Hopefully a good listbook.rb patch
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2004 Oct 06
11
find_window_by_xxx doesn''t find Gauge or BitmapButton
...e subclass, I have the
following code:
# Load XRC data.
xml = Wx::XmlResource.get()
xml.init_all_handlers()
xml.load("xrctest.xrc")
xml.load_frame_subclass(self, nil, "test_frame")
# Attempt to get the gauge from the XRC data by ID.
id = Wx::xrcid("test_gauge") # Returns the ID, no problem
gauge = Wx::Window.find_window_by_id(id, self) # Returns nil
Attempting to get the gauge by name has the same result:
gauge = Wx::Window.find_window_by_name("test_gauge", self) #
Returns nil
I''m successfully re...
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"]
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...rev 1119)
</span><span class="lines">@@ -9,8 +9,6 @@
</span><span class="cx"> // * shortcut methods for displaying simple dialogs
</span><span class="cx"> // * logging functions
</span><span class="cx"> // * the xrcid macro
</span><del>-
-
</del><span class="cx"> %{
</span><span class="cx"> //NO_CLASS - This tells fixmodule not to expect a class
</span><span class="cx">
</span><span class="lines">@@ -85,7 +83,7 @...
2010 Jun 22
1
Stuck noobie: XRC/xrcise woes
...)
xml = Wx::XmlResource.get
xml.flags = 2 # Wx::XRC_NO_SUBCLASSING
xml.init_all_handlers
xml.load("exercise.xrc")
xml.load_frame_subclass(self, parent, "ID_WXFRAME")
finder = lambda do | x |
int_id = Wx::xrcid(x)
begin
Wx::Window.find_window_by_id(int_id, self) || int_id
# Temporary hack to work around regression in 1.9.2;
remove
# begin/rescue clause in later versions
rescue RuntimeError
int_id...
2007 Jul 18
0
[1118] trunk/wxruby2/swig: Move Wx::message_box function from wx.i to Functions.i, where it belongs
...pan class="cx"> %include "common.i"
</span><span class="cx">
</span><ins>+// This file defines a set of top-level functions used across the
+// wxLibrary:
+// * shortcut methods for displaying simple dialogs
+// * logging functions
+// * the xrcid macro
</ins><span class="cx">
</span><ins>+
</ins><span class="cx"> %{
</span><span class="cx"> //NO_CLASS - This tells fixmodule not to expect a class
</span><span class="cx">
</span><spa...
2009 Aug 10
2
xrcise -o test.rb ui.xrc
I built a small form in wxFormBuilder. In cmd i wrote
xrcise -o test.rb ui.xrc
output was
C:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/outputter.rb:4
6:in `clean_id_attr_readers'': undefined method `each'' for
#<String:0xba5850> (No
MethodError)
from (erb):16:in `output''
from C:/ruby/lib/ruby/1.9.1/erb.rb:753:in `eval''
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
Hi
I''m trying to follow the tutorial on xrcise at
http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise
But I keep getting the following error when I try to run the example;
tutorial.rb:21:in `initialize'': undefined method ''upper_bt'' for
#<CaseChangeFrame:0x2d610f8> (NoMethodError)
from tutorial.rb:28:in `new''
from
2005 Jul 16
28
wxruby (was: Some questions)
Roy Sutton wrote (on the FreeRIDE list):
> Really? That''s interesting. I haven''t checked out WxRuby but I would
> be much happier using something that interfaces to the underlying
> operating system''s widgets.
As a member (and former leader) of the wxruby team, I thought I would
share the state of the wxruby world.
The current release is 0.6, and it has
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...n class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><span class="lines">@@ -77,7 +77,7 @@
</span><span class="cx"> static VALUE
</span><span class="cx"> xrcid(VALUE self,VALUE str_id)
</span><span class="cx"> {
</span><del>- wxString temp(STR2CSTR(str_id), wxConvUTF8);
</del><ins>+ wxString temp(StringValuePtr(str_id), wxConvUTF8);
</ins><span class="cx"> int ret = wxXmlResource::G...
2007 Oct 30
3
[Weft QDA users] Using WeftQDA for Mailing-List Analysis
Hi Alex, Hi Weft-Users!
I am looking for a tool for doing a qualitative analysis of mailing-list
data. This means I have a *lot* of individual documents (the typical case:
around 500-5000 emails), belonging to the same "super-document" (a mailing
list).
I have looked at several tools and I like that Weft is public domain and
written in Ruby, so I want to figure out whether it
2007 Apr 28
6
XRC Problem
...require ''wx''
rescue LoadError => no_wx_err
begin
require ''rubygems''
require ''wx''
rescue LoadError
raise no_wx_err
end
end
module XrcEnabled
def getXrcControl(id)
return find_window_by_id( Wx::xrcid(id) )
end
end
class ContactList < Wx::Frame
include XrcEnabled
def initialize()
super(nil,-1,"RubyIM")
$xml.load_frame_subclass(self,nil,"ContactList")
# Grab all the controls for what I''m creating
end
end
class RubyIMApp &l...