[Fxruby-users] reparent/linkAfter in FXFileSelector widget
Status: Inactive
Brought to you by:
lyle
From: Rich <ri...@li...> - 2004-01-08 06:46:09
|
I'm trying to insert my own FXTextField right after the directory drop = down in the first FXHorizontalFrame... but I've only found the = 'children()' method as the way to navigate through the existing = structure... and that returns an FXWindow... reparent and linkAfter = require an FXComposite type as the parameter... Here's the two different NON-working code attempts: localVF=3DFXVerticalFrame.new(contentHF,LAYOUT_FILL_X|LAYOUT_FILL_Y) lfs=3DFXFileSelector.new(localVF,nil,0,LAYOUT_FILL_X|LAYOUT_FILL_Y) ldTF=3DFXTextField.new(localVF,20,nil,0,LAYOUT_FILL_X) ldTF.reparent(lfs.children()[0]) ...and a different approach... localVF=3DFXVerticalFrame.new(contentHF,LAYOUT_FILL_X|LAYOUT_FILL_Y) lfs=3DFXFileSelector.new(localVF,nil,0,LAYOUT_FILL_X|LAYOUT_FILL_Y) ldTF=3DFXTextField.new(lfs.children()[0],20,nil,0,LAYOUT_FILL_X) ldTF.linkAfter(lfs.children()[0].children()[3]) What are my options? Is there an easy/easier way to 'insert' something = into an existing widget like the FXFileSelector? -Rich |