I am trying to create a form dynamically. I think I will be needing a transitional
window, as I need to draw to screen directly. This is a port from a 5.0 app.
I had used
FrmNewForm(formId, name, 0, 0, 160, 160, false,0,0,0);
in the earlier app.
I tried replacing this with
WinConstraintsType constraints;
constraints.x_flags = 0;
constraints.x_pos = 0;
constraints.x_min = winUndefConstraint;
constraints.x_pref = 160;
constraints.x_max = winMaxConstraint;
constraints.y_flags = 0;
constraints.y_pos = 0;
constraints.y_min = winUndefConstraint;
constraints.y_pref = 160;
constraints.y_max = winMaxConstraint;
FrmNewFormWithConstraints(formId, name, 0x00000004, &constraints, 0, g_AppDB, 0,
g_AppDB, 0);
The application seems to crash immediately after executing the above line. My
understanding is that FrmNewFormWithConstraints will call
WinCreateWindowWithConstraints and since the back buffer flag is on (0x00000004 in arg
3) a transitional window should be creted.
I was planning on drawing to this window by setting it to the active form etc.
Do I need to do some kind of setup before calling FrmNewFormWithConstraints?
Any pointers on how to effectively port form/window management will be gretly
appreciate.
Thanks in advance
Vasanth R
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/