Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

identifier DIALOG x,y,cx,cy [,color]
  [CAPTION "string"]
  [STYLE stylebits]
BEGIN
  control-class "title", ctrl-id, x,y,cx,cy [,color] [style]
  ........  |
END         |
            |
            |
          TEXT    CHECKBOX       SCROLLBAR
          FRAME   PUSHBUTTON     "user defined class"
          BOX     RADIOBUTTON
          EDIT    LISTBOX

Please note that there is no comma preceding the "style".

Example

#include "style.h"  /* You should include this file if you use styles */

#define ID_NAMETEXT 200
#define ID_NAME     201

ID_MYDLG DIALOG 10,3,50,15
CAPTION "My Dialog"
BEGIN
  TEXT "Name:", ID_NAMETEXT, 12,5,5,1
  EDIT "",      ID_NAME,     20,5,25,1  ES_AUTOHSCROLL
  "MyClass", "foo", ID_SPECIAL,  30,16,10,3
END

You can load a dialog box into your application by using the LoadDialog()
function.

See Also: LoadDialog

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson