[Fxruby-users] FXPopup questions
Status: Inactive
Brought to you by:
lyle
|
From: Adam W. <ad...@ta...> - 2004-05-17 16:35:24
|
Hi everyone -- I'm new to Fox and fxruby, and I like what I've seen so far!
These questions may not be specific to fxruby -- please let me know
if I should post to the foxgui list instead.
1. How can I remove all items from a FXPopup? I've tried destroying
its children, but then I get empty menu items:
myPopup.children.each { | option |
option.destroy
}
Alternatively I'd be happy to destroy the FXPopup and associated
FXOptionMenu and create new ones, but my attempts to do that were
unsuccessful.
2. I am able to add new FXOption items to the popup:
opt = FXOption.new(myPopup, ...)
opt.create()
Now I'd like to choose which one is selected. How can I do that?
I've checked the Fox FAQ and the mailing lists archives to no avail.
Any tips will be appreciated!
--
Adam Wildavsky Extreme Programmer Tameware, LLC
ad...@ta... http://www.tameware.com
|