Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: How to get a dialog object's object-reference?

$
0
0

Hi Linden,

What you can do is something like:-

BUTTON-SELECTED

    MOVE-OBJECT-HANDLE PB2 MAINHWIN

    CALLOUT "DISABLEEXITBUTTON" 0 $NULL

in your dialog. Then in the COBOL code:-

          invoke button "fromHandle" using mainhwin

              returning ws-button

          invoke ws-button "disable"

          invoke ws-button "destroyproxy" returning ws-button

You create an instance of the button from the Windows handle and then when finished with the object you issue a destroyproxy when finalizes the instance of the button but not the underlying GUI object.

Regards

David


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>