From: Adam W. <ad...@ta...> - 2004-05-17 21:12:05
|
At 4:02 PM -0400 5/17/04, Adam Wildavsky wrote: >The class takes care of selecting the appropriate item automatically >when the user clicks it -- it becomes the item displayed when the >user lets go of the mouse button and menu pops closed. I should have >been clearer about what I want to do, which is to select an item in >the same way, but programmatically. Something like this seems to do the trick: myOptionMenu.current = myPopup.children[0] I'm still trying to figure out how to remove the "empty" slots taken up by FXOption items I've destroyed. More generally, I'd like to know the proper fxruby way to remove a component FXWindow from a FXComposite. -- Adam Wildavsky Extreme Programmer Tameware, LLC ad...@ta... http://www.tameware.com |