CODE:int pos_size_button0[1][4];
string text_button0[1];
int flag_button0[1];
pos_size_button0[0][0]=100; pos_size_button0[0][1]=26; pos_size_button0[0][2]=100; pos_size_button0[0][3]=20;
text_button0[0]="Привязать";
//////////
int pos_size_static0[1][4];
string text_static0[1];
pos_size_static0[0][0]=20; pos_size_static0[0][1]=29; pos_size_static0[0][2]=75; pos_size_static0[0][3]=76;
text_static0[0]="3";
//////////
createdialog(0, BUTTON, #pos_size_button0[0][0], #text_button0[0], #flag_button0[0] |
STATIC, #pos_size_static0[0][0], #text_static0[0]);
//////////
showdialog(0, "ДиалогЫ", 558, 408, 220, 98, 1, 1);
//////////
activate(window("ДиалогЫ"));
int x,y;
while(flag_button0[0]==0) sleep(10);
pause(1000);
text_static0[0]="2";
pause(1000);
text_static0[0]="1";
pause(1000);
text_static0[0]="Привязано!";
getmouse(x, y);
win w=getwindow(1, x, y);
destroydialog(0);
messagebox("Привязано к "+w.name);
pause(1000);
//тут основной код |