Page 1 of 1

RTF : Fully functional

PostPosted: Thu May 11, 2023 5:40 pm
by TimStone
For a long time I have seen the advantage of RTF ( Rich Text Format ), especially when creating invoices for customers. Although the ability to create, and save, RTF has been available to us, printing longer text across pages, using the tPrinter class, was not supported. NOW IT IS.

In my application, I have "disclaimer" text that prints on invoices. It has always been in the same font, color, size as the detail ( parts, labor, prices, etc ) on the invoice. Using MemoEdit, my clients could change the content but not the style. Now, that same text can be read, modified as RTF, saved, then printed on the customer's final copy. It displays properly in the preview, and works perfectly in PDF's generated in the rPreview program. It is a great solution.

Thanks to the FWH developers who contributed to this. It is really appreciated.

If it will be helpful, I could certainly add a comment with the code I use to get this done.

I do, however, have one request. When using the RichEdit5 control, there is a button bar. It displays when the cursor goes to the top of the control. I really would like the ability to lock that bar in place. It is especially problematic when trying to format the top line of text in the edit box. Since I know this may not be a universal desire, perhaps we could have a flag for the control that allows us to make this occur.

Thanks to all who have contributed to these conversations.

Re: RTF : Fully functional

PostPosted: Fri May 12, 2023 1:45 am
by cnavarro
Sorry, when you say "lock" the button bar, do you mean to make it always visible?

Re: RTF : Fully functional

PostPosted: Fri May 12, 2023 2:29 am
by TimStone
Yes. It is an edit screen so it would make it easier for my clients to access it

I use button bars throughout the program and they are always displayed. This would make it "consistent".