cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin GUI Builder buglet

hbarta2
Associate III
Posted on April 13, 2015 at 21:36

If a dialog is created rooted on a FrameWin, the name of the widget takes the Name attribute of the Frame Win including any embedded spaces. This results in code that looks like:

/*********************************************************************
*
* CreateLogin Error
*/
WM_HWIN CreateLogin Error(void);
WM_HWIN CreateLogin Error(void) {
WM_HWIN hWin;
hWin = GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
return hWin;
}

That's not going to compile. Incidentally, it would be really nice if this Create...() procedure was static. When Window widgets are used as the basis for several screens, the procedure''WM_HWIN CreateWindow(void)'' is going to collide with other files at link time. It's easy enough to modify but is outside the bounds of what can be modified if one ever plans to open the file using the GUI Builder again.
0 REPLIES 0