Page 1 of 1

Example of Srvcontrols

Posted: Mon Jun 15, 2020 3:59 am
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,

Re: Example of Srvcontrols

Posted: Mon Jun 15, 2020 10:14 pm
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.

Re: Example of Srvcontrols

Posted: Tue Jun 16, 2020 4:52 am
by pgkammath
Thanks for the help

Regards.