You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to render a VCL component over the THtmlViewer component in order to
match its position to the position of na specific html object (text). Is there
a way to do that?
Keep up the good work!
Best regards,
- Gabriel
Original issue reported on code.google.com by [email protected] on 28 May 2014 at 12:54
The text was updated successfully, but these errors were encountered:
Hi Gabriel,
because of the internal representation of text in THtmlViewer you cannot find a
specific text. But you can find block elements by ID in THtmlViewer.NameList.
Currently the resulting TIDObject gives you the YOffset only.
The upcoming version 11.5 will also provide a DrawRect, if the resulting
TIDObject is a TSectionBase. TSectionBase is one descendant of TIDObject and
there might be others in THtmlViewer.NameList as well.
Version 11.5 is developed at https://github.com/BerndGabriel/HtmlViewer.git and
will be released in July 2014.
OrphanCat
Original comment by OrphanCat on 28 May 2014 at 9:14
If you want to place VCL controls onto a HTML document you can use <panel> or
<object> and handle events OnPanel* resp. OnObject*.
Placing form controls is done internally. For <input> VCL controls are wrapped
by classes derived from TFormControlObj.
If you are interested in registering your own <input> controls, I could
implement a method
RegisterFormControl(const InputType: String; ControlClass:
TFormControlObjClass);
E.g. calling RegisterFormControl('datetime', TDateTimePickerFormControlObj)
would allow
<input type="datetime" value="2014-05-29 18:23:45">
which would display the control wrapped by TDateTimePickerFormControlObj.
Original comment by OrphanCat on 29 May 2014 at 4:34
Original issue reported on code.google.com by
[email protected]
on 28 May 2014 at 12:54The text was updated successfully, but these errors were encountered: