what is different in using DEFINE WINDOW and DEFINE DIALOG
best regards
kajot
kajot
what is different in using DEFINE WINDOW and DEFINE DIALOG
best regards
kajot
DEFINE WINDOW is for creating WINDOWs and DEFINE DIALOG is for creating DIALOGs. What else? ![]()
EMG
kajot wrote:what is different in using DEFINE WINDOW and DEFINE DIALOG
best regards
kajot
Detlef,
>
I suppose that kajot's question ( and also mine ) was about the real differences between dialogs and windows.
>
The differences comes from the Windows API itself:
Windows manages windows and dialogs as different kind of objects, though in fact, a dialog is a kind of a window (a specialized one for managing controls). i.e: In a standard window, Tab will not change the focus to the next control.
FiveWin closely follows the Windows API where you can find CreateWindow() for creating a window and CreateDialog() (and DialogBox(), etc.) for creating a dialog.
The Windows API provides support for building a dialog from resources, but does not offer such functionality for windows. This is just an example, there are some more differences.
Dutch,
Yes, you are right, but we have to keep backwards compatibility, or we can break many users applications.
Also, its a better choice if we let the Windows API manage the dimensions by itself. If we change the dimensions, the results may be different for different resolutions, fonts, etc.