1. Gregory Rusak
  2. PowerBuilder
  3. Wednesday, 15 May 2024 20:36 PM UTC

Hello,

Looking at the help file and the events that are exposed on the RichTExtEdit control in PowerBuilder 2022 R3 Build 2256, We really don't see any way of setting the zoom magnification using a PowerScript method or a Property of the Rich Text:

We understand that the actual text control from (TX Text Control Documentation) does in fact have a "ZoomFactor" property. So is it that Appeon has not exposed this property in their wrapper? And if so, does anyone know a way of accessing the control property so that we can change the Zoom factor on instantiation?

Any feedback is much appreciated.

Kind Regards,

Greg

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 May 2024 20:43 PM UTC
  2. PowerBuilder
  3. # 1

Hi Greg;

  Unfortunately, you need the "professional" version of the TX Control to gain access to that feature.  However for this reason alone, I often use the Rich Text DataWindow. The DWO still uses the TX Control "under the hood" but it's Zoom-able!  ;-)

HTH

Regards .. Chris

Comment
  1. Gregory Rusak
  2. Wednesday, 15 May 2024 20:49 PM UTC
Chris,

That's interesting. But from what I read in the Help File, there's this Limitation:

The zoom property is not supported for the Graph, RichText, and OLE DataWindow styles.



So what am I missing? If we decide to try and go that route.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 May 2024 23:34 PM UTC
  2. PowerBuilder
  3. # 2

Hi Greg;

  FYI ... 

Graph: 

RT DW:

OR .. <DW Control Name>.Modify("DataWindow.Zoom='170'")

 

OLE:

 HTH

Regards .. Chris

 

Comment
There are no comments made yet.
Gregory Rusak Accepted Answer Pending Moderation
  1. Thursday, 16 May 2024 00:17 AM UTC
  2. PowerBuilder
  3. # 3

Thanks for providing those examples Chris. I suppose this is one case where the documentation doesn't reflect the actual case.

The only other issue we'll have going to a RichText DataWindow is the fact that then we'll have to write out our Blob data from the database to a File on Disk, then perform an InsertDocument method as there doesn't appear to be any other way to do an "In Memory" load of an RTF document. Also means we'll have to clean up any temporary files.

With the RichTExtEdit Control, the RTF data stored in a Long Varchar database column can be used to insert a document using the CopyRTF() function directly.

Kind Regards,

Greg

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 16 May 2024 13:57 PM UTC
Yes, there are always some +'s and -'s to using the DWO vs a native control. In the end though, I have found that the App User Experience is what counts.
  1. Helpful
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.