Consultor Eletrônico



Kbase P90103: How to access a FILL-IN on the VALUE-CHANGED event of an associated TOGGLE-BOX?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   26/10/2004
Status: Unverified

GOAL:

How to access a FILL-IN on the VALUE-CHANGED event of an associated TOGGLE-BOX?

FIX:

1. Use the STRING function to store the FILL-IN handle as the PRIVATE-DATA of the TOGGLE-BOX:

TOGGLE-1:PRIVATE-DATA = STRING(FILL-IN-1:HANDLE).

2. Use the WIDGET-HANDLE function to retrieve the handle of the associated FILL-IN widget:

ON VALUE-CHANGED OF TOGGLE-1 IN FRAME DEFAULT-FRAME /* Toggle 1 */
DO:
DEFINE VARIABLE h AS HANDLE NO-UNDO.
h = WIDGET-HANDLE(SELF:PRIVATE-DATA).
MESSAGE h:SCREEN-VALUE
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.