Skip to main content

Multi Text Box

Overview

Multi Text Box is to store and display text information which can not be edited by users. The control supports multi-line editing and a part of HTML syntax.

The HTML code of the picture above is shown below:

<font color="#994767">123</font>
<br/>
<font color="#666666">456</font>
<br/>
<img src=".\\pic2.png" />

Properties

PropertyDescription
TextContent displayed by the current Editor.
Font ColorSet the font color for the control.
Hint TextDisplay hint text when the mouse hovers over the control.
HTML TextContent parsed and displayed by the control.

Events

Callback NameCallback Function
on_click_imageThe callback when an image is clicked.
on_lost_captureThe callback when losing capture.
on_get_captureThe callback when getting capture.
on_click_hyperlinkThe callback when a hyperlink is clicked.

Lua Script Example

self.Text = "MultiTextBox"
self.AlwaysVScroll = true

--The callback will be executed when an image is clicked.
function on_click_image(self)
local str=nx_string(self.HtmlText)
nx_msgbox(str)
end