Orasanu Iuliana wrote:

Hy all,
I am using a table to put out strings, but the probleme is that in CodeWorrior 
the strings are aligned to the right of the screen(in this case this is the way 
I see things), and I want them to the left, as the should be.
I can't make the column smaller, because in the same column, but in another 
row, i have larger String.
something like:
|    String1|
| Larger str|
|        str|

Who do I do this?
Regards, Iulia


Hi Iulia

maybe you should first mention where you want the
string to appear. I assume you are using fields. The API-Documentation
explains that a field has an attribute called justification.
To get your text with right alignment I suggest you use:

FieldPtr field; = (FieldPtr) FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,dbaFahrtSatField));
FieldAttrType attr;


field = (FieldPtr) FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,textField));

   FldGetAttributes (field, &attr);
   attr.||justification|| = |rightAlign|;
   FldSetAttributes (field, &attr);

If you want to read it yourself you'll find it in

http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/Field.html#995863

Christian


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

Reply via email to