Forum: Ruby-Gnome 2 how to attach window as notebook page

2aa32559134aa3d596fb749f8ffccde7?d=identicon&s=25 hendra kusuma (Guest)
on 2011-01-31 08:55
(Received via mailing list)
Dear all,

I am making a business application here with ruby gtk and want to use
MDI
After I look into tutorial on web, It seems with gtk we achieve MDI
using
gtk::notebook
problem is, gtk::notebook cannot use gtk::window as a page directly
and I already code most of my form using gtk::window

So, basically I need to attach gtk::window object as gtk::notebook page
is there a way? or example would be better
I already tried to reparent first child in window object to notebook
but the result is ugly, I mean it gives me a lot of warning and the
accelerator did not work.
In every window, I use menu and accelerator, and I need them working

I heard about gtk::plug and gtk::socket but still don't understand about
it.
sorry, was delphi developer here. Not really good at OOP

please help

Thank you
Eed8337939641eac5ad0b570bd6acf96?d=identicon&s=25 marcin@saepia.net (Guest)
on 2011-01-31 09:32
(Received via mailing list)
Why couldn't you attach any other container widget to the notebook?
Why it has to be window?

m.

2011/1/31 hendra kusuma <penguinroad@gmail.com>:
2aa32559134aa3d596fb749f8ffccde7?d=identicon&s=25 hendra kusuma (Guest)
on 2011-01-31 09:39
(Received via mailing list)
Well, I already create a lot of forms as window
and I will hate to do my work all over again by changing them into some
other widget
such as panel or even vbox

but if there is no other way, then I guess I would go that way

Just looking for some chance here
2aa32559134aa3d596fb749f8ffccde7?d=identicon&s=25 hendra kusuma (Guest)
on 2011-01-31 10:26
(Received via mailing list)
OK. Forget I am asking
I decide to change all those window object to frame
so far so good
just need to catch shortcut key and send them to active child

thanks anyway
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.