How can I set the TWebChatBox to always scroll to the bottom?
and Is there a way to put an image or video file in TWebChatBox?
-
You can get the DIV element that holds the chat messages via
WebChatBox.ElementHandle.firstChild. With TJSHTMLElement(WebChatBox.ElementHandle.firstChild).scrollTop , you can get & set the vertical scroll position. -
You can insert HTML tags in the chat message and make this HTML contain IMG tags referencing images (or VIDEO elements)
Thanks a lot~!