CODE:int pos_size_button0[1][4];
string text_button0[1];
int flag_button0[1];
pos_size_button0[0][0]=72; pos_size_button0[0][1]=46; pos_size_button0[0][2]=100; pos_size_button0[0][3]=20;
text_button0[0]="Кнопка 0";
//////////
int pos_size_edit0[1][4];
string text_edit0[1];
pos_size_edit0[0][0]=18; pos_size_edit0[0][1]=14; pos_size_edit0[0][2]=100; pos_size_edit0[0][3]=20;
text_edit0[0]="5";
//////////
createdialog(0, BUTTON, #pos_size_button0[0][0], #text_button0[0], #flag_button0[0] |
EDIT, #pos_size_edit0[0][0], #text_edit0[0]);
//////////
showdialog(0, "Диалог", 558, 234, 250, 108, 1, 1);
//////////
loop()
{
if (flag_button0[0]==1)
{
flag_button0[0]=0;
if (formatsn(text_edit0[0])>12) messagebox ("более 12");
if (formatsn(text_edit0[0])==-10011001) messagebox ("не число");
}
sleep(10);//Убрать после теста
} |