Hi all
I have placed some components in a TDBRichViewEdit.
In the edit mode i need to write some text before and after these components (eg. TGroupBox and TComboBox) and it should be possible to click and edit the components content. But in the view and print mode it should show only the text of the selected group or the text of the edit field.
How can I do that?
Thanks
Print out text only of insertet components
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hi Sergey
Thanks for your answer!
At the moment i have a TDBRichViewEdit for editing the text and placing some Delphi components. At another "corner" of the program the user can view (readonly) or print the content.
I've tried to add the text instead the control in the event OnControlNeeded, but this event does not appear in my DBRichView even the SaveControl option is set or not.
Where can i do this exchange temporarry (without writing back to database)? I need only a hint, not the full code
Thank again
Thanks for your answer!
But how???Sergey Tkachenko wrote:Probably, you can delete these text before viewing/printing?
At the moment i have a TDBRichViewEdit for editing the text and placing some Delphi components. At another "corner" of the program the user can view (readonly) or print the content.
I've tried to add the text instead the control in the event OnControlNeeded, but this event does not appear in my DBRichView even the SaveControl option is set or not.
Where can i do this exchange temporarry (without writing back to database)? I need only a hint, not the full code
Thank again
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Please send 2 screen shots to me by e-mail ( [email protected] ):
1) how it should look like in editing mode
2) how it should look like in viewing mode
1) how it should look like in editing mode
2) how it should look like in viewing mode
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I received your e-mail and created a demo on your request:
http://www.trichview.com/forums/viewtopic.php?p=4053
http://www.trichview.com/forums/viewtopic.php?p=4053
Hi SergeySergey Tkachenko wrote:I received your e-mail and created a demo on your request:
http://www.trichview.com/forums/viewtopic.php?p=4053
Thank you for the demo. If we would like to do that in a inherited TDBRichViewEdit, is there an event? We tried to write a "onControlNeeded"-Event, but this event is never fired.
It is verry important, that the data is not written back into the database!
thanks
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Use OnLoadDocument event.
And better use TDBRichView, not TDBRichViewEdit.
TDBRichView cannot write in DB.
TDBRichViewEdit in read-only mode can be used too.
PS: OnRVFControlNeeded is called only if controls are not stored in RVF. This event occurs when loading RVF for each control "placeholder", you should create control in this event. This event cannot be used to replace controls with text.
And better use TDBRichView, not TDBRichViewEdit.
TDBRichView cannot write in DB.
TDBRichViewEdit in read-only mode can be used too.
PS: OnRVFControlNeeded is called only if controls are not stored in RVF. This event occurs when loading RVF for each control "placeholder", you should create control in this event. This event cannot be used to replace controls with text.