mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@48 b9cfdab3-6d41-4d17-bbe4-086880011989
25 lines
510 B
C
25 lines
510 B
C
/* $Id$ */
|
|
|
|
#include <Mw/Milsko.h>
|
|
|
|
void handler(MwWidget handle, void* user_data, void* call_data){
|
|
printf("hello world!\n");
|
|
}
|
|
|
|
int main(){
|
|
int i;
|
|
MwWidget window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 400,
|
|
MwNtitle, "hello world",
|
|
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);
|
|
}
|