Skip to content

Commit

Permalink
add some helpful text
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed Jul 23, 2017
1 parent 323f4c1 commit 3354333
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions asioconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ static int doubleclick_handler(Ihandle *ih, int item, char *text) {
IupMessageError(dlg,errormsg);
free(errormsg);
}

ASIOInit(&my_info);
ASIOControlPanel();
else {
ASIOInit(&my_info);
ASIOControlPanel();
}
return 0;
}

Expand All @@ -45,9 +46,11 @@ int main(int argc, char **argv) {

my_info.asioVersion = 2;

Ihandle *list;
Ihandle *list, *lbl;
IupOpen(&argc, &argv);

lbl = IupLabel("Double-click to load control panel");

list = IupList(0);

devices = drivers->asioGetNumDev();
Expand All @@ -66,9 +69,11 @@ int main(int argc, char **argv) {
}
}
IupSetCallback(list,"DBLCLICK_CB",(Icallback)doubleclick_handler);
IupSetAttribute(list, "EXPAND", "YES");

dlg = IupDialog(IupVbox(list,NULL));
IupSetAttribute(dlg, "TITLE", "Hello world");
dlg = IupDialog(IupVbox(lbl,list,NULL));
IupSetAttribute(dlg, "TITLE", "asioconfig");
IupSetAttribute(dlg, "MINSIZE", "300x300");

IupShowXY(dlg, IUP_CENTER, IUP_CENTER);

Expand Down

0 comments on commit 3354333

Please # to comment.