The Dialog Statements

The following editor extension commands are syntactically the same as the GFA-BASIC 16 bit commands, but operate on a different level: inside the IDE.

Dialog #id, x%,y%,w%,h% [,title$ [,style% [,fontheight%,fontname$]]]

EndDialog
ShowDialog #id
CloseDialog #id

By default the coordinates specify the number of pixels, an implicit DlgBase Pixel. By using DlgBase Unit the interpretation of the dialog box and control coordinates is changed.

The default style is WS_POPUP. When the title argument is specified the WS_CAPTION is set as well. In most cases only WS_SYSMENU is provided as the argument for style.

The default font is the font obtained using GetStockObject(DEFAULT_ GUI_FONT), which will suffice in most circumstances.

ShowDialog is implemented as ShowWindow(Dlg(id),SW_SHOW).

The GWL_USERDATA index with the SetWindowLong API function should not be used. GFA-BASIC 32 reserves the value at this index to store a pointer to a dialog info block for the dialog box.

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}