git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@374 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 17:41:42 +00:00
parent 7c8bd88df9
commit c63bc52363
4 changed files with 46 additions and 1 deletions

22
src/filechooser.c Normal file
View File

@@ -0,0 +1,22 @@
/* $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;
}