forked from pyrite-dev/milsko
Compare commits
No commits in common. "749be3762bd34df3ab74ea9ef3c75079e481a1d0" and "37fe636c75528c7c47bef44d507eaf385524430e" have entirely different histories.
749be3762b
...
37fe636c75
5 changed files with 20 additions and 26 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,8 +1,5 @@
|
||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
*.dll
|
|
||||||
examples/*
|
|
||||||
examples/*.exe
|
|
||||||
examples/*/*
|
examples/*/*
|
||||||
!examples/*/*.c
|
!examples/*/*.c
|
||||||
!examples/*/*.spv
|
!examples/*/*.spv
|
||||||
|
|
|
||||||
|
|
@ -45,22 +45,22 @@
|
||||||
#define MwNfont "Vfont"
|
#define MwNfont "Vfont"
|
||||||
#define MwNboldFont "VboldFont"
|
#define MwNboldFont "VboldFont"
|
||||||
|
|
||||||
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
||||||
#define MwNresizeHandler "Cresize" /* NULL */
|
#define MwNresizeHandler "Cresize" /* NULL */
|
||||||
#define MwNtickHandler "Ctick" /* NULL */
|
#define MwNtickHandler "Ctick" /* NULL */
|
||||||
#define MwNmenuHandler "Cmenu" /* MwMenu */
|
#define MwNmenuHandler "Cmenu" /* MwMenu */
|
||||||
#define MwNmouseDownHandler "CmouseDown" /* MwLLMouse* */
|
#define MwNmouseDownHandler "CmouseDown" /* MwLLMouse* */
|
||||||
#define MwNmouseUpHandler "CmouseUp" /* same as MwNmouseDownHandler */
|
#define MwNmouseUpHandler "CmouseUp" /* same as MwNmouseDownHandler */
|
||||||
#define MwNmouseMoveHandler "CmouseMove" /* MwPoint* */
|
#define MwNmouseMoveHandler "CmouseMove" /* MwPoint* */
|
||||||
#define MwNchangedHandler "Cchanged" /* NULL/int* (MwComboBox) */
|
#define MwNchangedHandler "Cchanged" /* NULL/int* (MwComboBox) */
|
||||||
#define MwNkeyHandler "Ckey" /* int* (MwLLKeyEnum or character code) */
|
#define MwNkeyHandler "Ckey" /* int* (MwLLKeyEnum or character code) */
|
||||||
#define MwNkeyReleaseHandler "CkeyRelease" /* same as MwNkeyHandler */
|
#define MwNkeyReleaseHandler "CkeyRelease" /* same as MwNkeyHandler */
|
||||||
#define MwNcloseHandler "Cclose" /* NULL */
|
#define MwNcloseHandler "Cclose" /* NULL */
|
||||||
#define MwNfocusInHandler "CfocusIn" /* NULL */
|
#define MwNfocusInHandler "CfocusIn" /* NULL */
|
||||||
#define MwNfocusOutHandler "CfocusOut" /* NULL */
|
#define MwNfocusOutHandler "CfocusOut" /* NULL */
|
||||||
#define MwNfileChosenHandler "CfileChosen" /* char* */
|
#define MwNfileChosenHandler "CfileChosen" /* char* */
|
||||||
#define MwNdirectoryChosenHandler "CdirectoryChosen" /* char* */
|
#define MwNdirectoryChosenHandler MwNfileChosenHandler
|
||||||
#define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */
|
#define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */
|
||||||
#define MwNdrawHandler "Cdraw" /* NULL */
|
#define MwNdrawHandler "Cdraw" /* NULL */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,6 @@
|
||||||
<handler name="focusIn" />
|
<handler name="focusIn" />
|
||||||
<handler name="focusOut" />
|
<handler name="focusOut" />
|
||||||
<handler name="fileChosen" />
|
<handler name="fileChosen" />
|
||||||
<handler name="directoryChosen" />
|
|
||||||
<handler name="colorChosen" />
|
<handler name="colorChosen" />
|
||||||
<handler name="draw" />
|
<handler name="draw" />
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
||||||
|
|
@ -496,6 +496,7 @@ static void MwLLDrawPixmapImpl(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
||||||
|
|
||||||
static void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) {
|
static void MwLLSetIconImpl(MwLL handle, MwLLPixmap pixmap) {
|
||||||
ICONINFO ii;
|
ICONINFO ii;
|
||||||
|
HICON ico;
|
||||||
|
|
||||||
memset(&ii, 0, sizeof(ii));
|
memset(&ii, 0, sizeof(ii));
|
||||||
ii.fIcon = TRUE;
|
ii.fIcon = TRUE;
|
||||||
|
|
@ -723,9 +724,6 @@ static void MwLLGetCursorCoordImpl(MwLL handle, MwPoint* point) {
|
||||||
|
|
||||||
static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) {
|
static void MwLLGetScreenSizeImpl(MwLL handle, MwRect* rect) {
|
||||||
RECT rc;
|
RECT rc;
|
||||||
|
|
||||||
(void)handle;
|
|
||||||
|
|
||||||
GetClientRect(GetDesktopWindow(), &rc);
|
GetClientRect(GetDesktopWindow(), &rc);
|
||||||
|
|
||||||
rect->x = rect->y = 0;
|
rect->x = rect->y = 0;
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ static void files_activate(MwWidget handle, void* user, void* call) {
|
||||||
char* p;
|
char* p;
|
||||||
|
|
||||||
p = MwDirectoryJoin(fc->path, fc->sorted_entries[MwGetInteger(fc->files, MwNvalue) - 1]->name);
|
p = MwDirectoryJoin(fc->path, fc->sorted_entries[MwGetInteger(fc->files, MwNvalue) - 1]->name);
|
||||||
MwDispatchUserHandler(handle->parent, fc->dir_only ? MwNdirectoryChosenHandler : MwNfileChosenHandler, p);
|
MwDispatchUserHandler(handle->parent, MwNfileChosenHandler, p);
|
||||||
free(p);
|
free(p);
|
||||||
|
|
||||||
okay(fc->okay, NULL, NULL);
|
okay(fc->okay, NULL, NULL);
|
||||||
|
|
@ -130,7 +130,7 @@ static void okay_activate(MwWidget handle, void* user, void* call) {
|
||||||
MwWidget msgbox = MwMessageBox(handle->parent, "File is not permitted here!", "Error", MwMB_ICONERROR | MwMB_BUTTONOK);
|
MwWidget msgbox = MwMessageBox(handle->parent, "File is not permitted here!", "Error", MwMB_ICONERROR | MwMB_BUTTONOK);
|
||||||
MwAddUserHandler(MwMessageBoxGetChild(msgbox, MwMB_BUTTONOK), MwNactivateHandler, msgbox_okay, NULL);
|
MwAddUserHandler(MwMessageBoxGetChild(msgbox, MwMB_BUTTONOK), MwNactivateHandler, msgbox_okay, NULL);
|
||||||
} else {
|
} else {
|
||||||
MwDispatchUserHandler(handle->parent, fc->dir_only ? MwNdirectoryChosenHandler : MwNfileChosenHandler, p);
|
MwDispatchUserHandler(handle->parent, MwNfileChosenHandler, p);
|
||||||
okay(fc->okay, NULL, NULL);
|
okay(fc->okay, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue