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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
hendra kusuma (Guest)
on 2011-01-31 09:55
(Received via mailing list)
Dear all,

I am making a business application here with ruby gtk and want to use
After I look into tutorial on web, It seems with gtk we achieve MDI
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
sorry, was delphi developer here. Not really good at OOP

please help

Thank you
on 2011-01-31 10:32
(Received via mailing list)
Why couldn't you attach any other container widget to the notebook?
Why it has to be window?


2011/1/31 hendra kusuma <removed_email_address@domain.invalid>:
hendra kusuma (Guest)
on 2011-01-31 10: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
hendra kusuma (Guest)
on 2011-01-31 11: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
This topic is locked and can not be replied to.