Hi all,
I am using Arexx and broadblues's Proaction to create an application with a Reaction interface.
I have noticed that if I want to ghost a string gadget by setting the GA_Disabled tag, then the gadget doesn't instantly ghost out - it only becomes ghosted when the user clicks on the field.
Similarly, if GA_Disabled is set to 0 to enable the string gadget, then the gadget remains in the ghosted state until the user clicks on it.
Other gadgets, e.g., Integer, ghost instantly, although check boxes don't change appearance at all but become unresponsive.
I have tried Rethink the GUI, that didn't help. Is there a specific procecure for disabling string gadgets?
Here's my code to create the string gadget:
'ADDGADGET GUIID ' GuiKey ' GADGETCLASS "string.gadget" TAGSTRING "STRINGA_TextVal,Enter Text,STRINGA_Justification,GACT_STRINGLEFT,GA_HintInfo,Enter required text,CHECKBOX_TextPlace,PLACETEXT_LEFT,GA_Disabled,0,TAG_DONE"'
TextStrField = RESULT
'NEWIMAGE GUIID ' GuiKey ' IMAGECLASS "label.image" NODISPOSE TAGSTRING "LABEL_Text,Enter required text:,TAG_DONE"'
IMGID = RESULT
'SETATTRS GUIID ' GuiKey ' OBJECTID ' TextEntry' TAGSTRING "LAYOUT_ModifyChild,' || DefaultTextGroup || ',CHILD_Label,' || IMGID || ',TAG_DONE"'
And to disable it:
'SETATTRS GUIID ' || GuiKey || ' OBJECTID '|| TextStrField ||' TAGSTRING "GA_Disabled,0,TAG_DONE"'
Thanks for any assistance.