* James Turner -- 6/8/2009 10:56 AM: > Another, related question: is it possible to hide and show UI > element / groups dynamically?
You can manipulate (add/remove/change) anything in a dialog before it's opened by embedded Nasal. You could have an XML dialog file with only a <nasal><open> block, and let that create the whole dialog. At the moment you'd have to close and re-open the dialog to add widgets, though. > I checked over the dialog code, and I don't see a standard 'visible' > or 'hidden' property (looking at FGDialog::makeObject), but perhaps > there is some other way to achieve this? There's a <visible> property per widget group, which defaults to true. You can let the nasal part toggle that, in which case the widget won't be considered at all (including in the layouting). But toggling the property later won't have an effect. m. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel