Re: Error during pinEdit.EditPaste call
pinEdit WP
Error during pinEdit.EditPaste call
sinspin
11-12-2008, 3:14
Hello, i use pinEdit eval, version 7.1.1106. ActiveX with Delphi7.
Since the pinEdit 7 versions produce many calls an error in this form:
---------------------------
Fehler
---------------------------
'ContainerHwnd' property is read-only
---------------------------
OK
---------------------------
Generally all function calls that results in an OleVariant (in my imported ActiveX interface) produce this error.
although it is not relevant if the component is embedded at designtime or create at runtime.
Background:
I select a HTML text template via LookupCombobox and would like it to paste to the last cursor postion in the editor.
The insert of HTML text into clipboard works fine,
but not the paste via pinEdit.EditPaste.
Re: Error during pinEdit.EditPaste call
Pintexx Support
11-12-2008, 3:31
Hello,
does the editor has the focus when you paste ?
Can you set the focus before pasting ?
Regards,
Hans-Peter
Re: Error during pinEdit.EditPaste call
sinspin
11-12-2008, 4:39
Hello,
this was a good idea, but the result is the same as before.
I set the focus and call the window's message processor
to ensure
the focus is set.
The cursor is shown in the editor, then appears the same error.
I can create a sample application and send as email to you, maybe it is a way to find a solution and eliminate this problem.
Regards
Stefan.
Re: Error during pinEdit.EditPaste call
Pintexx Support
11-13-2008, 8:50
Hello,
a sample application does not help because we are not familiar with Deplhi and don't have this system.
Setting focus could be a problem.
Could you please try
editor.execute("editSetFocus()") ?
Instead of using EditPaset could you please try
EditInsertHtml(html)
Regards,
Hans-Peter
Re: Error during pinEdit.EditPaste call
sinspin
11-13-2008, 12:18
Hello,
it is very difficult.
After this changes the error is shown after the Editor.Execute('editSetFocus()') call.
---------------------------
Fehler
---------------------------
'EditAtDesignTime' property cannot be set at run time
---------------------------
OK
---------------------------
Regards
Stefan
Re: Error during pinEdit.EditPaste call
sinspin
11-13-2008, 2:59
Hello,
ich have the ActiveX import again generated and all new tests are positive!
The previous errors result potentially from diffrent versions of the generated interface and the ActiceX.
With the new interface have i no problems more.
PinEdit is a very powerful component. An integration in Delphi is although a bit difficult, but i use it.
Thanks for you help
Stefan.