- void Creat_Button1()
- {
- ObjectCreate(0, "Button1", OBJ_BUTTON, 0, 0, 0.0);
- ObjectSetInteger(0, "Button1", OBJPROP_CORNER, 3);
- ObjectSetInteger(0, "Button1", OBJPROP_COLOR, 16777215);
- ObjectSetInteger(0, "Button1", OBJPROP_BGCOLOR, 6908265);
- ObjectSetInteger(0, "Button1", OBJPROP_BORDER_COLOR, 16777215);
- ObjectSetInteger(0, "Button1", OBJPROP_XDISTANCE, 60);
- ObjectSetInteger(0, "Button1", OBJPROP_YDISTANCE, 30);
- ObjectSetInteger(0, "Button1", OBJPROP_XSIZE, 55);
- ObjectSetInteger(0, "Button1", OBJPROP_YSIZE, 30);
- ObjectSetString(0, "Button1", OBJPROP_FONT, "黑体");
- ObjectSetString(0, "Button1", OBJPROP_TEXT, "平多");
- ObjectSetInteger(0, "Button1", OBJPROP_FONTSIZE, 15);
- ObjectSetInteger(0, "Button1", OBJPROP_SELECTABLE, 1);
- ObjectSetInteger(0, "Button1", OBJPROP_SELECTED, 0);
- }
复制代码
|