You are right.  CtlGetLabel does return a pointer to the control's label
text, but not the text.  I was able to do a StrCopy to save it to a char*
variable at the ctlSelectEvent.  However, If I do the same thing outside of
this event, I don't get the label text (of 8/7/01).  Instead, I get
something like "@s...".

-Elizabeth



                                                                                       
                          
                    "Scott Johnson (Bellevue)"                                         
                          
                    <[EMAIL PROTECTED]>                  To:     Palm Developer 
Forum                         
                    Sent by:                                
<[EMAIL PROTECTED]>                     
                    bounce-palm-dev-forum-8072@news.        cc:                        
                          
                    palmos.com                              Subject:     RE: Question 
on CtlGetLabel()           
                                                                                       
                          
                                                                                       
                          
                    08/07/01 02:58 PM                                                  
                          
                    Please respond to Palm Developer                                   
                          
                    Forum                                                              
                          
                                                                                       
                          
                                                                                       
                          




> From: [EMAIL PROTECTED]
> According to the Palm OS API Reference documentation, CtlGetLabel()
> does not return the text from the label, for example, from a Selector
> Trigger control, if the label was set from CtlSetLabel().

Eh?  My copy of the 4.0 doc doesn't say that.  CtlGetLabel does always
return a pointer to the control's label text, for those control types that
do have a text label.  (Which is all but graphical controls and sliders.)

-slj-


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

Reply via email to