Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

WebHTMLContainer rendering HTML

 Post Reply Post Reply
Author
Mitchell Hilary View Drop Down
New Member
New Member
Avatar

Joined: 23 Feb 2018
Posts: 16
Post Options Post Options   Quote Mitchell Hilary Quote  Post ReplyReply Direct Link To This Post Topic: WebHTMLContainer rendering HTML
    Posted: 24 Jul 2018 at 6:58am
Is it possible to make the WebHTMLContainer render the code put in the property HTML during design time?
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7779
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 9:20am
At this moment there is no design-time rendering. True design-time rendering is not trivial. We'll investigate deeper for a solution or workaround.
Back to Top
Mitchell Hilary View Drop Down
New Member
New Member
Avatar

Joined: 23 Feb 2018
Posts: 16
Post Options Post Options   Quote Mitchell Hilary Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 9:58am
Yes that's true. I guess drawing a dotted border around the control, like you do around TMSFNCHTMLText, and perhaps just displaying the name of the control would make it more friendly.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7779
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 10:06am
That is a good idea and that will be the case in the next update.
Back to Top
Mitchell Hilary View Drop Down
New Member
New Member
Avatar

Joined: 23 Feb 2018
Posts: 16
Post Options Post Options   Quote Mitchell Hilary Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 11:56am
I have one more question regarding this component. Most visual components have ElementID and ElementClassName which is very helpful for CSS styling. But This component, TWebHTMLContainer, for some reason does not have it, even though <div></div> is being produced.
Is there a reason for this?
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7779
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 12:31pm
It was thought that the DIV was just a placeholder, but indeed, it could also be used to apply CSS to for example, and as such, we have exposed the ElementID, ElementClassName, ElementPosition properties.
Back to Top
Mitchell Hilary View Drop Down
New Member
New Member
Avatar

Joined: 23 Feb 2018
Posts: 16
Post Options Post Options   Quote Mitchell Hilary Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jul 2018 at 12:55pm
That's great news. Thank you.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down