markGreenway
New Member
We are currently writing some generic code to loop through all the widgets on any window and save various properties of those widgets.
Those saved propeties will then be used when that same window is opened later to show the widgets on the window in exactly the same way they where before the window was closed.
I can get the handle of the widgets and query their properties OK but when it comes to fill-ins for example, I need to get both the assigned value and the screen-value of that widget as they may be different.
If I where to reference the fill-in by name it gives me the value I want, for example:
MESSAGE fill-in-1
VIEW-AS ALERT-BOX.
But I cannot seem to get that same value when I use the handle to the fill-in.
Below is some code similar to that which I am using.
/********** Start Of Code Example **********/
DEFINE VARIABLE vHandle AS HANDLE NO-UNDO.
ASSIGN vHandle = FRAME {&FRAME-NAME}:FIRST-CHILD
vHandle = vHandle:FIRST-CHILD.
DO WHILE vHandle <> ?:
MESSAGE vHandle:NAME
SKIP
vHandle:TYPE
SKIP
vHandle:SCREEN-VALUE /* This gives me the screen-value but I also need the real value */
VIEW-AS ALERT-BOX.
vHandle = vHandle:NEXT-SIBLING.
END.
/********** End Of Code Example **********/
Any help or suggestions with this would be gratefully received.
we are using Progress 9.1C on Winows 2000.
Those saved propeties will then be used when that same window is opened later to show the widgets on the window in exactly the same way they where before the window was closed.
I can get the handle of the widgets and query their properties OK but when it comes to fill-ins for example, I need to get both the assigned value and the screen-value of that widget as they may be different.
If I where to reference the fill-in by name it gives me the value I want, for example:
MESSAGE fill-in-1
VIEW-AS ALERT-BOX.
But I cannot seem to get that same value when I use the handle to the fill-in.
Below is some code similar to that which I am using.
/********** Start Of Code Example **********/
DEFINE VARIABLE vHandle AS HANDLE NO-UNDO.
ASSIGN vHandle = FRAME {&FRAME-NAME}:FIRST-CHILD
vHandle = vHandle:FIRST-CHILD.
DO WHILE vHandle <> ?:
MESSAGE vHandle:NAME
SKIP
vHandle:TYPE
SKIP
vHandle:SCREEN-VALUE /* This gives me the screen-value but I also need the real value */
VIEW-AS ALERT-BOX.
vHandle = vHandle:NEXT-SIBLING.
END.
/********** End Of Code Example **********/
Any help or suggestions with this would be gratefully received.
we are using Progress 9.1C on Winows 2000.