In this post, we’ll use the DialogHandle property or DelphiVCL.Application.DialogHandle provides a mechanism for using non-VCL dialog boxes in an application. Learning how to do it will allow you to easily build GUIs with Python Program Maker.
Use DialogHandle when displaying a modeless dialog box that was created using the CreateDialog API function. Assigning the handle of the modeless dialog box to DialogHandle allows the dialog to see messages from the application’s message loop.
Assign the handle of the modeless dialog box to DialogHandle when it receives an activation message (WM_NCACTIVATE) and set DialogHandle to zero when the dialog box receives a deactivation message.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.DialogHandle using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.DialogHandle) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.DialogHandle using the print() command:
1 2 |
print(DelphiVCL.Application.DialogHandle) print(DelphiVCL.Application.DialogHandle.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.