Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Accelerators and Dialogs (https://www.delphipraxis.net/4049-accelerators-dialogs.html)

Mr.Sade 12. Apr 2003 23:39


Accelerators and Dialogs
 
Hello,
I have a resource file with a dialog, menu and accelerator.
I have load the main dialog with DialogBoxParam() function, and I would like to know, if is possible to use an Accelerator with the main dialog.
thank you

Luckie 13. Apr 2003 02:43

Not really. If you use DialogBoyParam() you don't have a messageloop which is neccessary for processing accelarators. Use instead CreateDialog. Then you have to program your own messageloop with which you can process your accelarators.
If you are looking for examples, take a look at my page: www.luckie-online.de . Almost every program uses CreateDialog.


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz