Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
12 user(s) are online (8 user(s) are browsing Forums)

Members: 0
Guests: 12

more...

Support us!

Headlines

 
  Register To Post  

Ghosting a Reaction String Gadget
Not too shy to talk
Not too shy to talk


See User information
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.

Go to top
Re: Ghosting a Reaction String Gadget
Not too shy to talk
Not too shy to talk


See User information
Sorry, ignore this, it just started working... ???

Go to top
Re: Ghosting a Reaction String Gadget
Not too shy to talk
Not too shy to talk


See User information
And now its back to not working...

...huh???

Go to top
Re: Ghosting a Reaction String Gadget
Home away from home
Home away from home


See User information
Some gadget's need to be refreshed before they update imagery after GA_Disabled.

In C code you might use

RefreshSetGadgetAttrs()

in proaction add the REFRESH arg to the SETATTRS call.

'SETATTRS GUIID ' || GuiKey || ' OBJECTID '|| TextStrField ||' TAGSTRING "GA_Disabled,0,TAG_DONE" REFRESH'

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project