Example of Srvcontrols

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
pgkammath
Posts: 30
Joined: Fri Nov 24, 2017 6:16 am

Example of Srvcontrols

Post by pgkammath »

Hi,
I am creating fillable forms for commonly used forms. I saw the example C:\delphi-7-components\Trichview\SRVControls\Demos\SRVControls\Example2 which uses an .rvf to generate the form. But not able to understand the steps required to create the form from a document. like how to name the textbox, how to insert the text box , dropdown box at a required coordinate, like that. Any step by step help is avaible ?

Regards,
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Example of Srvcontrols

Post by Sergey Tkachenko »

To generate document with controls, use AddControl method, like in "ScaleRichView\Demos\Delphi\RVDemos\Tutorial\2 Items-Checkpoints-Tags-Hypertext\1 Info about Items\" demo.
To insert a control in the caret position, use InsertControl method, like in SRVControls\Demos\Delphi\InsertControls\ demo.

You cannot insert a control in the specified coordinates (unless you insert it in a floating text box). Controls are inserted in a text flow, like pictures. I believe it's enough to build 99% of forms. But you can insert controls (such as panels or frames) containing other controls.
pgkammath
Posts: 30
Joined: Fri Nov 24, 2017 6:16 am

Re: Example of Srvcontrols

Post by pgkammath »

Thanks for the help

Regards.
Post Reply