mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-02 23:50:50 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@83 b9cfdab3-6d41-4d17-bbe4-086880011989
19 lines
439 B
C
19 lines
439 B
C
/* $Id$ */
|
|
#include <Mw/Milsko.h>
|
|
|
|
int main() {
|
|
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
|
|
MwNtitle, "image button",
|
|
NULL);
|
|
MwWidget button = MwCreateWidget(MwButtonClass, "button", window, 50, 50, 400, 400);
|
|
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
|
|
|
|
MwVaApply(button,
|
|
MwNpixmap, px,
|
|
NULL);
|
|
|
|
MwWindowSetIcon(window, px);
|
|
|
|
MwLoop(window);
|
|
}
|