git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@48 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-29 04:48:59 +00:00
parent 90ffa94f44
commit 1e9aeb50e6
4 changed files with 35 additions and 29 deletions

View File

@@ -7,14 +7,18 @@ void handler(MwWidget handle, void* user_data, void* call_data){
}
int main(){
int i;
MwWidget window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 400,
MwNtitle, "hello world",
NULL);
MwWidget button = MwVaCreateWidget(MwButtonClass, "button", window, 50, 50, 300, 300,
MwNtext, "lorem ipsum",
NULL);
MwAddUserHandler(button, MwNactivateHandler, handler, NULL);
for(i = 0; i < 6; i++){
MwWidget button = MwVaCreateWidget(MwButtonClass, "button", window, 5, 5 + 55 * i, 390, 50,
MwNtext, "lorem ipsum",
NULL);
MwAddUserHandler(button, MwNactivateHandler, handler, NULL);
}
MwLoop(window);
}