Navigation: Developer's Guide >
Place a TUniButton on your MainForm.
Place a TUniButton on MainForm
In Object Inspector, choose the ExtEvents property which is a sub-property of the ClientEvents property. Double click on ExtEvents which will open a new window.
In Object Inspector double click on ExtEvents
To access UniButton1, you must use a special syntax. Any uniGUI object is accessible using the owner's name and its name (<owner name>.<object name>). The names must be the same defined in Delphi (but case sensitive). In our example, we have the object UniButton1 owned by MainForm; the correct syntax to access it client-side is MainForm.UniButton1.
Once you have access to your object, you can use all Ext JS methods available for the Ext.button.Button component. So, while UniButton1 is an instance of the server-side TUniButton class, MainForm.UniButton1 is an instance of the client-side Ext.button.Button Ext JS component.
setText() method of Ext.button.Button class
Run the application and click on the button