I made a little popup form that was created dynamically i.e. FrmNewForm,
with some other dynamically created objects on the form. It had it's own
event loop etc.
It was was made so that I could call it as a function from anywhere in mode
application code. ie. CustomKbd(params..).However when returning from this
function, I immediately updated the text inside selector trigger with a call
to CtlSetLabel, and it would redraw the selector trigger with the new label
in a different location on the form.It seemed as though the API function
thought that the form was sitting at a coordinate of 0,0(which it wasn.t). I
realized that some information, specifically the forms location, had been
lost during the call to my popup keyboard form. I tried to verify this by
checking the forms bounds after the call to the popup kbd, and everything
seemed sound. So as a last attempt I include the call FrmSaveActiveState()
to my keyboards initalization code, and FrmRestoreActiveState to the popup
kbd cleanup code, and voila . everything worked. So what exactly does
FrmSaveActiveState save?

Regards
Garth Watkins



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to