1. John Michael Tejano
  2. PowerBuilder
  3. Tuesday, 3 October 2023 07:53 AM UTC

Good day!

I am working on an app that will be deployed to a 1024 x 768 resolution monitor. I have this name and address fields in the datawindow, some of the details fit in the field but majority does not. How to change the font size in real time if for example: the length of the text is <= 28 then the font size is 16 else font size is 10.

Thank you.

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 3 October 2023 08:15 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

You can create an expression for each column in your datawindow. Right-click on your column, choose properties, go to font tab, and in size property fill an expression.

if(len(<your_column>) > 28, 80, 60)

Andreas.

Comment
There are no comments made yet.
John Michael Tejano Accepted Answer Pending Moderation
  1. Tuesday, 3 October 2023 08:28 AM UTC
  2. PowerBuilder
  3. # 1

Thank you so much, sir!

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.