WideStudio/MWT Logo
WideStudio/MWT
Application Builder User's Guide
WideStudio/MWT Index
Table of contents


事件过程

事件过程是用于辅助由C++语言记述的项目动作的程序。通过使用事件过程, 不仅能实现项目难已达到的高度运动画面,项目功能追加,数据投入等功能, 还可完成更为复杂的动作。

对于事件过程,只要具备C++语言的基本知识,就可自由记述定义。 关于程序的记述方法,请参照程序编辑部分。

事件过程有下面的要素。



[事件过程]



事件过程函数

事件过程的函数将通过引数中调用的项目来实现。

以下是Application Builder生成的活动过程函数的范例。

#include <WScom.h>
#include <WSCfunctionList.h>
#include <WSCbase.h>

//----------------------------------------------------------
//Function for the event procedure
//----------------------------------------------------------
void sample(WSCbase* object){
object->setProperty(WSNlabelString,"Hello.”);//A


}static WSCfunctionRegister op(”sample”,(void*)sample);

//A ,将项目的字符串属性WSNlabelSgtring设定为Hello.。

Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005


WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005