mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-10 03:13:28 +00:00
add
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@374 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
22
src/filechooser.c
Normal file
22
src/filechooser.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user