Using components and packages |
Overview |
Using predefined Qt properties |
|
Calling predefined QT methods |
|
Connecting to predefined QT events |
|
Calling a method of a component |
|
Overloaded component method |
|
Read and write properties |
|
GUI component property |
' Use property in gui component |
Catching events from a component |
We already used the event clicked of the button widget within several HBasic examples. If a subroutine should be called if a component a throws the event evt you have to define this subroutine with the name a_evt. If you created a component button1 which throws an event clicked you have to define a subroutine with name button1_clicked to catch the event.
Sub button1_clicked()
Print "Button1 has been clicked"
End Sub