PowerBuilder provides the send() function to send messages to the Windows
objects. The information about its usage is fragmentary and widely dispersed
throughout the help and manuals. Since searching for this information was
quite tedious, I decided to write down what information I could gather.
I hesitated to start this article with the statement that PowerBuilder is a
Windows application; it seemed ridiculous. However, that's the basis for this
article. Windows has an event-driven user interface and we can use the events
for our own purpose.
In addition to using the Windows functions to call the windows API, we can
also send messages to Windows controls. Sometimes it's helpful to send
messages to the controls since they're triggered by the operating system, for
example, an emulated mouse click, a keystroke, or any other event.
In Windows, messages are sent with the... (more)