Richard -

I believe you are completely correct: I am trying to do something incorrectly (still 
learning the Palm way!).  What I *really* want
is to use a PopupTrigger in place of a Field for the FormEdit that is part of a DB.  
In other words, the Popup List contains the
values that can be used.

Sorry for the confusion..........

Todd

Richard Burmeister wrote:

> > From: Todd Cary
> >
> > I did this with pText a global.  It appears that the pointer for
> > the label is not available.  I first set the label to "Original" at
> > design time.  This shows up as expected at run time.  I push on
> > the button and I get my list.  I select from the list and now the
> > Popup trigger has the new label.  This stays.
> >
> >   if Control <> nil then
> >   begin
> >     FrmCustomAlert(AlertError, 'Got Control ptr', '', '');
> >     //Nothing happens to the control!!
> >     pText := 'Testing';
> >     FrmCustomAlert(AlertError, pText, '', '');
> >     CtlSetLabel(Control, pText);
> >   end else
> >     FrmCustomAlert(AlertError, 'Control ptr = nil', '', '');
> >
>
> So, the question is: when do you call the code you have above?  To change a
> popup trigger label, CtlSetLabel() works.  You say the label changes when
> you select an item from the associated list.  The OS does that for you --
> that's the way popup triggers work.  If you want to change it to something
> else, call CtlSetLabel() again.  However, if the user has just selected
> something from a list, he/she will expect to see what he selected in the
> popup trigger label.
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
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