It's a heck of a lot easier to use FrmCopyTitle; why bother with 
FrmSetTitle? All you need to do is to make sure the initial title (stored 
in the resource) is as long as you ever want it to be (just pad with 
spaces), and that you never copy in a title that's longer (so 
myNewTitle[maxLength-1]='\0'; or the like). The real advantage of 
FrmCopyTitle is that it makes a copy of your string, so you don't need to 
preserve it, while FrmSetTitle requires that your string is always 
available (e.g., global variable or the like).

Steve Patt
President, Stevens Creek Software
  http://www.stevenscreek.com/palm
  Best PQA ("ePQA"), PalmSource 99
  Best Application ("PizzaScan"), Palm Developer's Conference 1998
  First printing software for the Palm - September, 1997

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to