- Miguel Leeuwe
- PowerBuilder
- Friday, 11 August 2023 06:47 PM UTC
Hi,
I discovered that when using V.28.0 of the TEXT Richtext control, our papersizewidth setting was no longer working correctly, but only when using PFCs.
I made a sample PFC application and discovered that I ONLY have the problem with the V28.0, when I do a POST opensheet(....) from the open event of the mdi frame window. (our real application opens the rte containing window from a menu, this is just a quick test app). So that made me wonder WHAT is not initialized in the PFC classes when I don't use POST?
I finally figured out what was wrong: - We have a little rtf formatted text saved in the database and assign that in the richtext's constructor. - It serves the goal of being able to set a default font and fontsize, since none of the supposed functions / properties work for rich text. (at least sofar). - that text was last saved using the V.15.x text control. - Commenting out the assignment of the default font in the constructor has made everything work fine now. - I'll try to see if by recording the new default font using v.28.0 things will work again for v.28's default font assignment.
So if anyone is doing something similar to set a default font for the default font of rich text controls ... Beware you have to record the rtf text newly, using the v.28.0 version of rich text.
enjoy your weekends
MiguelL
(keep reading, this is not the only problem with v28.0)
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.