Page 1 of 1

Set font on part of an text field

Posted: Wed Jun 13, 2007 7:27 am
by Kenneth Jonsson
I wish to output two db fields in one text field: "table.column_a : table.column_b". The user wishes to have the column_a text in bold, but column_b in regular font. Is that possible? I tried to make a short textfield för column_a an let it overflow itnto the second field but that did not work.

In HTML it would be made this way: "column_a: column_b".

Set font on part of an text field

Posted: Wed Jun 13, 2007 9:30 am
by Edward
Sorry, in one StiText component it is impossible. Please use RichText component for this task instead.

Thank you.

Set font on part of an text field

Posted: Fri Jun 15, 2007 7:26 am
by Kenneth Jonsson
Thank you for the explanation.

Set font on part of an text field

Posted: Fri Jun 15, 2007 7:42 am
by Edward
Let us know if some help will be necessary for you.

Thank you.

Set font on part of an text field

Posted: Fri Jun 15, 2007 8:11 am
by Kenneth Jonsson
Nice of you to ask. I tried the GetValue event handler:
e.Value = "\b" + ToString(Activity.Component.name) + "\b0" + " : " + ToString(Activity.description);

Now, that did not work. Do you have an alternative syntax to achive the bolding of the first item?

Cheers!

Set font on part of an text field

Posted: Mon Jun 18, 2007 4:01 am
by Edward
Please use the technique which is described in our documentation:

http://www.stimulsoft.com/Documentation ... tvalue.htm

Thank you.