wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wxruby-dev] wxPanel


From: Park Heesob
Subject: Re: [Wxruby-dev] wxPanel
Date: Mon, 21 Apr 2003 16:11:22 +0900

Hi,
----- Original Message -----
From: "KONTRA Gergely" <
address@hidden>
To: "Wxruby developers' list" <
address@hidden>
Sent: Friday, April 18, 2003 8:20 PM
Subject: [Wxruby-dev] wxPanel


> Hi!
>
> I've realized, that my last program was wrong, because I don't use
> wxPanel.
> So well, I'm here again to beg for wxPanel, and better some instructions
> how to extend the source with unsupported classes.
>
I added recently a few classes.

Instructions for wxPanel.

1. modify depend
   add panel.h

2. modify extconf.rb
   add panel.o

3. make new file panel.h
   define WxPanel class

4. make new file panel.cpp
   add WxPanel method implementaion

5. modify wx.cpp
   insert
       #include "panel.h"
   insert
       VALUE rb_cWxPanel;
   insert
       rb_cWxPanel = rb_define_class_under(mWx,"WxPanel", rb_cWindow);
       rb_define_alloc_func(rb_cWxPanel,WxPanel::alloc);
       rb_define_method(rb_cWxPanel, "initialize",
VALUEFUNC(WxPanel::init), -1);
       rb_define_method(rb_cWxPanel, "GetDefaultItem",
VALUEFUNC(WxPanel::GetDefaultItem), 0);
       rb_define_method(rb_cWxPanel, "InitDialog",
VALUEFUNC(WxPanel::InitDialog), 0);
       rb_define_method(rb_cWxPanel, "SetDefaultItem",
VALUEFUNC(WxPanel::SetDefaultItem), 1);

6. ruby extconf.rb

7. nmake of make

> And I still don't get any answer where will be a wxruby version on net.
> There are some placeholders, but no real content anywhere...
>
I made up sourceforge site.
You can download at
http://sourceforge.jp/projects/wxruby

> BTW: Is class hierarchy somehow respected?
>
Yes, of course.

Regards,
Park Heesob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]