Displaying 3 results from an estimated 3 matches for "textframebase".
2010 Jun 22
1
Stuck noobie: XRC/xrcise woes
...4) the error message.
1)
###### the xrc file #####
<?xml version="1.0" encoding="UTF-8"?>
<resource version="2.3.0.1" xmlns="http://www.wxwidgets.org/wxxrc">;
<object class="wxFrame" name="ID_WXFRAME" subclass="TextFrameBase">
<style>wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX</style>
<size>400,300</size>
<title>From Scratch</title>
<centered>1</centered>
<object class="wxBoxSizer">
<or...
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
...16:in
`main_loop''
from c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.2-i386-mswin32/lib/wx/classes/app.rb:16:in
`run''
from tutorial.rb:27
The relevant ruby code looks like.
# Inherit from the generated base class and set up event handlers
class CaseChangeFrame < TextFrameBase
def initialize
super
evt_button(upper_bt) { text_box.upcase! }
evt_button(lower_bt) { text_box.downcase! }
end
end
I have triple checked that I have given the button widget an Id name of
upper_bt in DialogBlocks
Has anyone come across this before?
Thanks
Tim
_____________...
2008 Mar 05
21
wxruby, XRC, DialogBlock
I''ve been trying to figure out the best method for generating GUI''s with
Ruby. I ended up using DialogBlock because it seems like the fastest
way. But not I have to work backwards and have not done this before.
How do I go from the file I generate in DialogBlock to a code in Ruby?
--
Posted via http://www.ruby-forum.com/.