![]() |
![]() |
![]() |
![]() |
WideStudio Application Builder User's Guide | ||
---|---|---|
Creating an event procedure.Instances triggers various kinds of events under execution. On WideStudio, it is possible to put some event procedures on the instance so that they will be executed with the event triggered. For example, let's create an event procedure which has the following function.![]() [Creating an event procedure] ![]() [A event procedure] #include <WScom.h> #include <WSCfunctionList.h> #include <WSCbase.h> //----------------------------------------------- //Function for the event procedure //----------------------------------------------- void btn_ep(WSCbase* object){ object->setProperty(WSNlabelString, "Hello!"); //A } static WSCfunctionRegister op("btn_ep",(void*)btn_ep);The WSCbase* pointer "object" denotes the instance in this code. At //A, the string "Hello!" is set to the property "WSNlabelString" of the instance. Then, the instance shows the string "Hello!" when the function executed.
|
||
![]() |
![]() |
![]() |
![]() |
Please feel free to contact us for any questions/bugs after checking the mailing list |
![]() |
Copyright©WideStudio Development Team,1999-2005
|