RTF : Fully functional

RTF : Fully functional

Postby TimStone » Thu May 11, 2023 5:40 pm

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.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: RTF : Fully functional

Postby cnavarro » Fri May 12, 2023 1:45 am

Sorry, when you say "lock" the button bar, do you mean to make it always visible?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: RTF : Fully functional

Postby TimStone » Fri May 12, 2023 2:29 am

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".
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2945
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 24 guests