But unless you tie in an event handler how/when would you have an opportunity to get the value of said list ?
As soon as you touch a button, FrmDoDialog closes the form and gives you the button ID. How would you extract the choice/list setting of the list ? I would think the form would be gone-day before you could get a pointer to any object and check it's value. I still fail to see the value here. When you could create a minimalist event handler to handle the form w/o a lot of trouble. -- Matt Disher [EMAIL PROTECTED] > From: Brian Smith <[EMAIL PROTECTED]> > Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Date: Thu, 7 Mar 2002 16:46:12 -0500 (EST) > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Subject: Re: Looking for example popup list dialog code > > On Thu, 7 Mar 2002, Matt Disher (TiBook) wrote: > >> I could be way off but I believe dialogs (as in FrmDoDialog) is assumed >> to be a dialog like an alert dialog. It's not savvy about UI stuff >> other than buttons. That being said there is no event handler for a >> dialog unles you make one by making it a regular form (that looks, feels >> and smells like a dialog) and provide an event handler for it. > > At least in my experience... > > 1) You can set an event handler for a popup form by calling > FrmSetEventHandler on that form before calling FrmDoDialog. > > 2) FrmDoDialog, even with no event handler, does popup triggers fairly > well. I only know this for a fact with static lists (choices defined > in the resource itself), but I can't imagine a dynamic list being any > different since there's no special event handling involved... only a > callback which can be (I would think) set before calling FrmDoDialog > > Assuming the popup triggers are being done the normal way and therefore > are setting the text label of the trigger when a choice is made from the > list, you can do CtlGetLabel to pull that text value out after FrmDoDialog > returns (just like you can get information from checkboxes and fields) > and process that. > > ----------------------------------------------------------------------- > Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ > Software Developer // Gamer // Webmaster // System Administrator > Echelon Teasers: NSA CIA FBI Mossad MI5 Cocaine Cuba Revolution Espionage > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
