11-06-2016 06:36 AM
Hi,
I'd like to insert a string control that will be hidden in the beginning of the program (only after few commands the text box apear).
I sew the hidden option in the control setting but when i'm choosing the checkBox i can't see this control on the UI.
can you explain me how to use this option?
Eliran
Solved! Go to Solution.
11-06-2016 07:25 AM
If you set the visibility of your control to initially hidden you can change it at run time using the function call
SetCtrlAttribute ( panel_handle, PANEL_MYSTRINGCONTROL, ATTR_VISIBLE, 1 );
here panel_handle is the handle returned from calling the function LoadPanel(), panel_handle = LoadPanel (...,...,...);
PANEL_MYSTRINGCONTROL is a place holder for the name of your string control.
11-07-2016 02:57 AM
Thank you very much!
Can you explain me what is the ATTR_VISIBLE please?
11-07-2016 04:08 AM
...let me try
The function SetCtrlAttribute has four arguments (as is detailed here).
The first two specify the panel and the control, the third which attribute you would like to set, e.g. if your control should be bold, dimmed, hidden,... So this third parameter actually tells the function what to do, in your case you want to change visibility, and the corresponding control attribute is called ATTR_VISIBLE. The fourth parameter then determines the value of this attribute, i.e., if the control is to be set visible (1) or not (0).
11-07-2016 05:11 AM
Thank you for the explanation!
I'm new with this program and I am learning it now.
You helped me a lot!
Eliran