1. Masood Hussain
  2. PowerBuilder
  3. Tuesday, 26 October 2021 18:10 PM UTC

I was wondering if there is anyway to set font name and size dynamically?

Masood Hussain Accepted Answer Pending Moderation
  1. Wednesday, 27 October 2021 12:59 PM UTC
  2. PowerBuilder
  3. # 1

Thank you Migueil for your answer and a work around as well but I was looking for something dynamic.

Regards,

Comment
  1. Miguel Leeuwe
  2. Wednesday, 27 October 2021 14:17 PM UTC
You're welcome. The use of "pasteRtf()" is done from Code. What's not dynamic about it?

regards.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 27 October 2021 10:41 AM UTC
  2. PowerBuilder
  3. # 2

Hi,

The rte has some functions and attributes that would suggest being able to set the font. However, I've never seen them work in the later versions of PB.

What you could do is manually set the font you need in an empty rte and then maybe write a single space.

Then you call copyRTF() to get the rtf syntax.

That will give you the code (take out the space character) to paste with pasteRtf() and in that way you can set the font.

See also: https://www.appeon.com/standardsupport/search/view?id=177

and: https://www.appeon.com/standardsupport/search/view?id=246

regards,

MiguelL

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.