With wdlg_set_size() one can alter the size of a window dialog. The GRECT <new_size> sets the new position and size of the window's working area. SET SIZE does not alter either the position or the size of the root object. If the root object is to be moved or enlarged then the object dimensions have to be altered before calling wdlg_set_size().
Declaration: WORD wdlg_set_size( DIALOG *dialog, GRECT *new_size ); Call: wdlg_set_size( dialog, new_size ); Variable Argument Meaning Inputs: contrl[0] 165 wdlg_set contrl[1] 1 Entries in intin contrl[2] 1 Entries in intout contrl[3] 2 Entries in addrin contrl[4] 0 Entries in addrout intin[0] 2 wdlg_set_size addrin[0] dialog Pointer to the dialog structure addrin[1] new_size Pointer to GRECT Outputs: intout[0] 1
Note: The buttons must always lie completely within the window's working area, as form_button() pays no regard to the rectangle list.
The normal use for wdlg_set_size() are enlargeable dialogs, that have a Sizer object at the bottom right corner.