FrmPopupForm issues

2005-03-03 Thread KMoore
Don't mean to beat a dead horse with a stick! but when I use "FrmPopupForm" and subsequently "FrmReturnToForm(0)" The FrmUpdate Even is fired... OK I get it ...but what I don't get.. is the form "I return to," is updated and displayed; but then emulator still goes back through the AppEventLoop even

FrmPopupForm issues

2002-12-11 Thread Matthew Bevan
I'm having issues returning from a form called by using FrmPopupForm. Here's snippits of my code: In my main form menu handler: case EditPrefs: FrmPopupForm(PrefsForm); handled = true; break; In my application event handler: switch ( uiFormId ) {

re: FrmPopupForm issues

2005-03-03 Thread KMoore
Thanks to anyone considering slapping-me-upside-the-head. I figured out what I was doing wrong... I had called api FrmReturnToForm(0) which would cause it to return to the form that called the FrmPopupForm command... however the problem is I had forms stacked.. i.e (9500),(9501) and (9502) respec

Re: FrmPopupForm issues

2002-12-11 Thread Oliver
Your code looks just like mine (pretty standard, as you said), except that I tend to use FrmReturnToForm(0); instead of FrmReturnToForm(MainForm); (not sure if that could make a difference, though). Oliver __ Do you Yahoo!? Yahoo! Mail Plus

Re: FrmPopupForm issues

2002-12-11 Thread Matthew Bevan
> FrmReturnToForm(0); When I first looked at that I went "Gah!", as I always thought it required the ID of a form... RTFM, and I disover otherwise. Spiffy. > FrmReturnToForm(MainForm); > (not sure if that could make a difference, though). It didn't. What -did- make a difference is replaci

Re: FrmPopupForm issues

2002-12-11 Thread Ben Combee
It didn't. What -did- make a difference is replacing FrmPopupForm and FrmReturnToForm with FrmGotoForm. Now it works without -any- problems. What a stupid git problem this is. Is there any reason I should stick with Popup/Return instead of going with Goto now? Will I melt if I stay with goto

Re: FrmPopupForm issues

2002-12-12 Thread Oliver
Ben, > studying the way the OS creator's code works is > a good way to see why to use a call and how to > use it properly. I am sure studying the internal workings of PalmOS is very educational, but I don't think it should be the (preferred) way for every developer to learn and understand why,

Re: FrmPopupForm issues

2002-12-12 Thread Ben Combee
At 07:36 2002-12-12 -0800, you wrote: Ben, > studying the way the OS creator's code works is > a good way to see why to use a call and how to > use it properly. I am sure studying the internal workings of PalmOS is very educational, but I don't think it should be the (preferred) way for every d

Re: FrmPopupForm issues

2002-12-12 Thread Oliver
> I wasn't saying that you should read the OS code, > but instead read the sample apps included with the > SDk. Ooops. Yes. You're right, Ben. Sorry about that. Note to self: don't post before 8am and before consuming at least 1 cup of coffee. Oliver ___