milsko/src/filechooser.c
NishiOwO c63bc52363 add
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@374 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-16 17:41:42 +00:00

22 lines
477 B
C

/* $Id$ */
#include <Mw/Milsko.h>
MwWidget MwFileChooser(MwWidget handle, const char* title){
MwWidget window;
MwPoint p;
int ww = MwGetInteger(handle, MwNwidth);
int wh = MwGetInteger(handle, MwNheight);
int w, h;
p.x = 0;
p.y = 0;
window = MwVaCreateWidget(MwWindowClass, "filechooser", handle, ww, wh, (w = 640), (h = 300),
MwNtitle, title,
NULL);
MwLLDetach(window->lowlevel, &p);
MwLLMakePopup(window->lowlevel, handle->lowlevel);
return window;
}