Files
milsko/example.c
NishiOwO 90ffa94f44 add MwNtext
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@47 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-09-29 04:33:53 +00:00

21 lines
463 B
C

/* $Id$ */
#include <Mw/Milsko.h>
void handler(MwWidget handle, void* user_data, void* call_data){
printf("hello world!\n");
}
int main(){
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);
MwLoop(window);
}