Files
milsko/example.c
NishiOwO 1e9aeb50e6 hmm
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@48 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-09-29 04:48:59 +00:00

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);
}