Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

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

$
0
0
Hi Linden, MOVE-OBJECT-HANDLE will give you the Windows handle (HWND) to the object you specify.  It may be confusing but at the API level you will get a Windows handle to a Button. When I refer to a Windows handle (HWND) it is NOT the handle to the containing Window. Remember "Inheritance" in an Object Programming environment. So...... button ----- inherits from  (referred to as superclass in docs)     gadget ----- inherits from            AbstractWindow ------ Inherits from                    Guibase If you look in docs for Guibase in the "Class Methods" you should find "fromHandle". "disable" is documented under "AbstractWindow":- ---- Makes this object insensitive to mouse and keyboard events. Some controls change in appearance when disabled. --- Unfortunately there is a steep learning curve but you do start to get used to it quite quickly. Regards David

Viewing all articles
Browse latest Browse all 5819

Trending Articles



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