[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to handle multiple widgets at once?

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
You can write a trigger which handles events for all widgets in a frame using the ANYWHERE keyword. ON LEAVE OF FRAME f-main ANYWHERE I can think of a few ways to associate one widget with another. For example, you could store the handle of the secondary widget in the primary widget's PRIVATE-DATA attribute. PRIVATE-DATA is a string which can be used for whatever purpose you want. In this case you could store a handle, like this. You would do this initialization after the frame is defined. proc-1:PRIVATE-DATA = STRING(procName-1:HANDLE). Then in the trigger you could retrieve the handle like this: DEFINE VARIABLE procX AS HANDLE NO-UNDO. procX = HANDLE(SELF:PRIVATE-DATA). procX:SCREEN-VALUE = getProcName(SELF:SCREEN-VALUE).

Continue reading...
 
Status
Not open for further replies.
Back
Top