git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@706 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-14 12:13:31 +00:00
parent 51df555b5a
commit b7fee743dc
12 changed files with 48 additions and 12 deletions

View File

@@ -375,10 +375,10 @@ MwWidget MwColorPicker(MwWidget handle, const char* title) {
MwAddUserHandler(window, MwNtickHandler, color_picker_tick, wheel);
MwAddTickList(window);
MwLLShow(window->lowlevel, 0);
MwLLBeginStateChange(window->lowlevel);
MwLLDetach(window->lowlevel, &p);
MwLLMakePopup(window->lowlevel, handle->lowlevel);
MwLLShow(window->lowlevel, 1);
MwLLEndStateChange(window->lowlevel);
return window;
}

View File

@@ -501,10 +501,10 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
scan(window, path, 1);
free(path);
MwLLShow(handle->lowlevel, 0);
MwLLBeginStateChange(window->lowlevel);
MwLLDetach(window->lowlevel, &p);
MwLLMakePopup(window->lowlevel, handle->lowlevel);
MwLLShow(handle->lowlevel, 1);
MwLLEndStateChange(window->lowlevel);
return window;
}

View File

@@ -99,11 +99,11 @@ MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsi
MwNalignment, MwALIGNMENT_BEGINNING,
NULL);
MwLLShow(window->lowlevel, 0);
MwLLBeginStateChange(window->lowlevel);
MwLLDetach(window->lowlevel, &p);
MwLLSetSizeHints(window->lowlevel, w, h, w, h);
MwLLMakePopup(window->lowlevel, handle->lowlevel);
MwLLShow(window->lowlevel, 1);
MwLLEndStateChange(window->lowlevel);
MwAddUserHandler(window, MwNcloseHandler, messagebox_close, NULL);