>Is there a way to calculate how many pixels wide
>certain characters or spaces take up?

Int16 FntCharWidth (Char ch) will get the width of a single character in the current 
font.

Int16 FntCharsWidth (Char const *chars, Int16 len) will get the width of a string in 
the current font (I suspect you want this one for right justifying a label string).

>What are the pros/cons regarding dynamic UI vs static
>elements on forms?

Personally, being the paranoid guy I am, I've avoided the Dynamic UI routines, since 
historically they've been buggy, and I need to support older OSs. I think they're 
better now, but so far I've been able to do what I need by hiding/showing form objects 
and manipulating control labels, etc.

I don't think that the size vs. speed issue is even worth thinking about for any sort 
of "normal" Palm app. UI resources like labels and controls are only a few bytes, and 
I doubt there would be a noticeable performance change either way. Instead, I would 
recommend using whatever is safest and/or easiest to maintain.

Hope this helps,

Dave Johnson

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to