Picture
Overview
Picture control is to save images. Assign the image's path to the control and it will show the corresponding image.
Properties
| Property | Description | 
|---|---|
| Image | Display the corresponding image after filling its path. | 
| Auto Size | Display the image in its original resolution without scaling. | 
| Hint Text | Display the hint text when the mouse is hovering over the control. | 
Events
| Callback Name | Callback Function | 
|---|---|
| on_left_down | The callback when the left mouse button is pressed. | 
| on_left_up | The callback when the left mouse button is released. | 
| on_double_click | The callback when the left mouse button is double-clicked. | 
Lua Script Example
self.Text = "Edit"
self.Image = nx_widestr(".\\picture.png")
function on_double_click(self)
    local str=nx_string(self.Image)
    nx_msgbox(str) 
end