NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentTimeSep 24th 2013
    In your docs I can see how to use Ntk_DialogBox. This operates on an RC file to create a modal dialog.

    Which function operates on an RC file to create a modeless dialog?

    If there is none, do I have to use CreateDialog and dynamically add stuff? If I do this, can I have GET boxes in the dialog?
    • CommentTimeSep 25th 2013
    did you take a look at 4DIALOG in your ../contrib/c4w2ntk directory?
    • CommentTimeSep 26th 2013
    Thanks for the reply. Yes I did look at 4dialog which _appears_ to use the DialogBox function to create a dialog which is killed by destroywindow, suggesting the dialog is modeless.

    The docs say DialogBox is modal, hence my question. How does the DialogBox function know we want the dialog to be modeless?

    Also, this has no GETs, which I will want in my m'less dlgs
    • CommentTimeSep 27th 2013 edited
    take a closer look at the dialog(...) statement and you will notice that the <hWndParent> argument has been intentionally left empty. this is the trick. seems ugly but a quick way to switch your dlg from modal to modeless.
    another big advantage with this technic is you can keep on using your favorite @ dialog .... id ... get ... picture
    i.e. no need to subclass edit-controls and develop on your own custom maskedit procedures.
    see attached & good luck for your migration.

    • CommentTimeSep 30th 2013
    Hi Wilson

    Thanks for the program. I have tried it and added 2 messageboxes which indicate that the dialog is modal.
    I can only see the second message after clearing the dialog