mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-16 22:24:07 +00:00
hmm
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@48 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
12
example.c
12
example.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user