| Last Published: April, 2011 | |||||||||||||||||
![]() |
msgbox Documentation OpenLaszlo Version Compatibility: 4.2 |
source code: msgbox.lzx | |||||||||||||||
| Summary | |||||||||||||||||
Tag name: <msgbox/> This component is used to display system messages to the user. |
|||||||||||||||||
| Sample code | |||||||||||||||||
<canvas> <msgbox name="msgCenter" x="10" y="10" width="350"/> <button x="10" y="60" text="OK msg" >
<handler name="onclick"><![CDATA[
parent.centerMsg.setMessage("The information is ok","dataok");
]]>
</handler>
</button>
<button x="100" y="60" text="Error msg" >
<handler name="onclick"><![CDATA[
parent.centerMsg.setMessage("Erro in the system.","error");
]]>
</handler>
</button>
</canvas>
_______________________________________________________________________ |
|||||||||||||||||
| Example | |||||||||||||||||
|
|||||||||||||||||
Attribute Summary |
|||||||||||||||||
type |
default |
Description |
|||||||||||||||
Name |
|||||||||||||||||
| width | size | 250 | The width of the msgbox. | ||||||||||||||
| Method Summary | |||||||||||||||||
type |
Name |
Description |
|||||||||||||||
| void | setMessage(String message, String type) | Sets the message. | |||||||||||||||