最近在研究这个工具,感觉挺好用的,做一些调试控件挺好,可是不知道写控件的规则是什么,btn0=CreateComponentEx(p,"button","caption","关闭","left",230,"top",70,"width",100,"height",30,"onclick",OnClose,NULL); btn0=CreateComponentEx(p,"button","caption","关闭", "left",230,"top",70,"width",100,"height",30,"onclick",OnClose,NULL);//创建按钮
btn1=CreateComponentEx(p,"button","caption","开始发送", "left",10,"top",70,"width",100,"height",30,"onclick",OnStart,NULL);//创建按钮
btn2=CreateComponentEx(p,"button","caption","停止发送", "left",120,"top",70,"width",100,"height",30,"onclick",OnStop,NULL);//创建按钮
int lbl1=CreateComponentEx(p,"label", "caption","发送内容:","left",10,"top",8,"width",90,"height",20,NULL);//创建按钮
edt1=CreateComponentEx(p,"edit", "text", "123456", "left",70,"top",5,"width",260,"height",20,NULL);//创建按钮
cbHex=CreateComponentEx(p,"checkbox","caption","十六进制发送","left",10,"top",35,"width",100,"height",20,NULL);//创建按钮
int lbl2=CreateComponentEx(p,"label", "caption","发送间隔:","left",145,"top",37,"width",70,"height",20,NULL);//创建按钮
cbx1=CreateComponentEx(p,"combobox","text","200","left",203,"top",35,"width",60,"height",20,NULL);//创建按钮
int lbl3=CreateComponentEx(p,"label", "caption","毫秒","left",270,"top",37,"width",70,"height",20,NULL);//创建按钮
tmr1=CreateComponentEx(p,"timer","interval",500,"enabled",0,"ontimer",OnTimer,NULL);//创建按钮
//创建按钮;这个按钮还有那些属性可以添加,是用的那个语言的控件风格,希望楼主解答一下。@bhj2020 |