Hi Darren
Your project is similar to one of mine where the application is an MDI app
presenting users
with several RTF Paradox fields per record and allowing each field to be
edited using RTF
formatting such as bold, underline strikeout, find, replace, font names and
sizes, cut, paste and so on. The editing controls are attached to the main
form grouped in two action lists.
My starting point was the RTF example included with Delphi 4.
The RTF control in the D4 example does not register formatting changes with
database controls.
To achieve this you can use the TdbRichEdit controls OnChange and
OnSelectionChange events to handle this.
In your OnChange event handler put the table into Edit mode.
In your OnSelectionChange event handler call a procedure to update the RTF
formatting button states,
similar to the D4 example procedure, modified of course to the formatting
controls
you use.
When closing the form containing the TDBRichEdit control, disable these
OnChange.. calls.
Modify this rule according to the way you close your table relative to the
form closing.
My app is working in development but not finised so I suggest you
treat these comments with a "trust but verify" rule.
Best wishes
Russell
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Darren J Gilbertson
Sent: Friday, 19 November 1999 16:43
To: Multiple recipients of list database
Subject: [DUG-DB]: dbrichedit
I have developed an app that edits richtext within a database but have found
that if I modify the text attributes only the modified attributes are not
saved within the database.
It works fine if I modify the attributes and text data together.
How can I fix this?
Darren
---------------------------------------------------------------------------
New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Database List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz