How to refresh MF dialog obj from a program?

Hi there,

Is there an MF dialog GUI method to refresh an object only i.e. not set focus on it?

For example to enable an object i just do this. Is there a refresh equivalent method?

CALL 'GUI-enable' using my-dialog-object-handle. 

GUI.cbl ---------------------------------------------------------------------------------

$set mfoo
class-control.
AbstractWindow is class "awindow".

working-storage section.
01 obj object reference value null.

linkage section.
01 hand pic x(4) comp-5.

procedure division.

entry 'GUI-enable' using hand.
    *> enable object from handle...
     invoke abstractWindow "fromHandle" using hand returning obj.
     invoke obj "enable".
     invoke obj "destroyproxy" returning obj.
     goback.

Many thanks,

Linden

 

Parents
  • Hi Neil, thanks for your reply. Are you an MF employee out of interest? For now I don't have time to move away from dialog but understand it's old hat. I've been using the GUI library as per the example in my original post but I can't see how to refresh an object. Do you know which GUI class/method can do this for me. Linden

    Hi Bernd, do you have a working example that compiles and runs in Visual COBOL? Thanks, Linden.

Reply
  • Hi Neil, thanks for your reply. Are you an MF employee out of interest? For now I don't have time to move away from dialog but understand it's old hat. I've been using the GUI library as per the example in my original post but I can't see how to refresh an object. Do you know which GUI class/method can do this for me. Linden

    Hi Bernd, do you have a working example that compiles and runs in Visual COBOL? Thanks, Linden.

Children
No Data