Below is the event handler for frmLoadEvent.
case frmLoadEvent: {
FormPtr pForm = FrmInitForm(event->data.frmLoad.formID);
formWinH = FrmGetWindowHandle (pForm);
WinSetConstraintsSize(formWinH, 160, 225, 225, 160, 160, 160);
FrmSetDIAPolicyAttr(pForm, frmDIAPolicyCustom);
PINSetInputTriggerState(pinInputTriggerEnabled);FrmSetActiveForm(pForm); FrmSetEventHandler(pForm, HelloFormEventHandler); break;
For some odd reason it doesn't work as expected - or then I have wrong expectations. I have a simple form (Form1) that is 160x160 in size and has a button on it. If I press the button the program issues FrmGotoForm(Form2). Form2 is similar, only some different text on. The problem is that if I close the DIA and then press the button it indeed opens Form2 but also opens the DIA. Then I must close DIA again. Why on Earth does it happen and why won't DIA keep closed when opening the other form? All I want to do is have a form with borders that is resized after opening/closing the DIA. I don't even know if I should just alter the existing form or use 2 separate forms as I now do.
What do the WinSetConstraintsSize values affect? Particularly, what does the preferred value mean in practice?
I can give more code if needed. I'm testing the program with Tungsten T3 simulator from PalmOne and compiling with newest PRC-Tools/Cygwin and Pilrc on Win2000.
Also, what is the dimensions of the usable area on T3 screen with DIA open or closed?
And if these issues are answered in some FAQ, please redirect me :)
Regards, Paapaa
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
