Forum: wxRuby some question

Posted by hendra kusuma (Guest)
on 2010-09-18 04:22
(Received via mailing list)
I am making a program and get some trouble here

1. how do I close all opened child window in mdi form?
2. I cannot disable menu_item, perhaps I use .enable false the wrong 
way?
Posted by Alex Fenton (Guest)
on 2010-09-22 17:21
(Received via mailing list)
hi hendra

On 18/09/2010 03:09, hendra kusuma wrote:
> 1. how do I close all opened child window in mdi form?

Untested, but maybe something like

while child = mdi_parent.active_child
   child.close
end

> 2. I cannot disable menu_item, perhaps I use .enable false the wrong way?

  MenuBar#enable(menu_item_id, false)

hth
alex
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.