Check boxes and properties (OpenInsight Specific)
At 01 MAR 2000 04:44:09PM Andy Becker wrote:
What I am trying to do should be simple, but it has us stumped.
I'm attempting to do two things with checkboxes - 1 - Programmatically making them visible/invisible and - 2 - changing the text of the checkbox.
(In the following "CHECK_1" is the name of the 1st check box)
I have tried the statement
X=SET_PROPERTY("CHECK_1","TEXT","Hi there")
with no results.
For the visible/invisible I have tried
XX=SET_PROPERTY("CHECK_1", "VISIBLE", 1)
with no results.
I have even tried to get the current property of CHECK_1 by using
XXX=GET_PROPERTY("CHECK_1", "ENABLED")
with no results.
Can anyone tell me how to do what should be a simple procedure. It has to be a simple thing to cause this much trouble for us.
There has to be a way to obtain properties from/for a check box.
Thanks for all input.
At 01 MAR 2000 04:50PM DSig wrote:
Andy,
You aren't really looking at 'CHECK_1' are you? You are looking at @Window:".CHECK_1" right?
DSig
At 01 MAR 2000 04:54PM Don Bakke wrote:
Andy,
All controls need the fully qualified name in order for you to make programmatic references to them. The syntax is:
Window.Control
Typically, you usually use the system variable @Window rather than hardcode it because multiple instance windows add an "*n" to distinguish each window running on the desktop. The n is just a number that changes with each instance. Therefore a typical Set_Property statement might look like this:
rv=Set_Property(@Window:".CHECK_1", "VISIBLE", 0) ; * This hides it
Hope that helps,
dbakke@srpcs.com
At 02 MAR 2000 09:42AM Andy Becker wrote:
Thanks Don - I brand new at this along with the rest of the staff and full qualification wasn't even mentioned. Like I said it was a simple problem to cause this much trouble.
At 02 MAR 2000 09:44AM Andy Becker wrote:
Thanks DSig - I brand new at this and so is the rest of the staff. Full qualification wasn't even mentioned. Knew it had to be something simple to cause this much trouble.
At 02 MAR 2000 12:26PM DSig wrote:
No problem .. keep asking the questions
DSig