Can anybody help me in hidding text field in a frame .
I tried the following code , but did not work:
TEXT-8:HIDDEN = YES.
Can anybody help me in hidding text field in a frame .
I tried the following code , but did not work:
TEXT-8:HIDDEN = YES.
Flag this post as spam/abuse.
Click here to report this email as spam.
Thanks James. I have to follow widget tree route because I am working on already developed application . I have to hide the text box fields. Could you please tell me the overview of widget tree route to hide text box.
Setting HIDDEN attribute should hide the widget.
Please check:
To hide the widget, in the first case, you can set VISIBLE attribute to FALSE and in the later case, you can add UNLESS-HIDDEN to the ENABLE statement so that it restricts ENABLE to widgets whose HIDDEN attribute is FALSE.
[mention:f2c3b268940943f69cb639470006dc63:e9ed411860ed4f2ba0265705b8793d05], it is a text widget. You can't reference it using its name, you have to walk the widget tree to find the handle.
[mention:04e95b8bf7ad413db8577e7108735503:e9ed411860ed4f2ba0265705b8793d05], walking the widget tree is well documented. Essentially you pass it the handle to a frame, and then use the properties of that handle to traverse through all the objects parented to that frame until you get to the widget you want. As far as I remember, for a text object, the screen-value of the handle is the text that is displayed, you can test for that. But seriously, it's a lot of overhead just to hide a bit of text!
One thing I've done in the past for screens that I want to manipulate at run time is to walk the widget tree at the load of the screen and place all the handles into a temp table. It's usually quicker to then scan the temp table for what I want rather than walking the tree each time.
Hi all,
I also agree that it's a lot of overhead just to hide a bit of text.
In most of the cases I used option 1 (put it on as a fill in that is set as text only), the only downside I saw in this was that when using statement of CLEAR FRAME the fill in is also cleared, so you will still need to fill it again by code.