Mercurial > dwindows
changeset 284:3431e445d831
Woops, screwed up the splitbar tab direction on Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 17 Mar 2003 15:38:57 +0000 |
parents | 54aafc134652 |
children | ef34ebf8b7cb |
files | dwtest.c win/dw.c |
diffstat | 2 files changed, 15 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtest.c Mon Mar 17 15:33:51 2003 +0000 +++ b/dwtest.c Mon Mar 17 15:38:57 2003 +0000 @@ -135,7 +135,13 @@ int DWSIGNAL keypress_callback(HWND window, char ch, int vk, int state, void *data) { - fprintf(stderr,"got keypress %c %d %d\n", ch, vk, state); + FILE *fp = fopen("log", "a+"); + + if(fp) + { + fprintf(fp,"got keypress %c %d %d\n", ch, vk, state); + fclose(fp); + } return 0; }
--- a/win/dw.c Mon Mar 17 15:33:51 2003 +0000 +++ b/win/dw.c Mon Mar 17 15:38:57 2003 +0000 @@ -548,8 +548,8 @@ if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) { - /* Try the top or left box */ - HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); + /* Then try the bottom or right box */ + HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); if(mybox) { @@ -559,8 +559,8 @@ return 1; } - /* Then try the bottom or right box */ - mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); + /* Try the top or left box */ + mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); if(mybox) { @@ -675,8 +675,8 @@ if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) { - /* Then try the bottom or right box */ - HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); + /* Try the top or left box */ + HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); if(mybox) { @@ -686,8 +686,8 @@ return 1; } - /* Try the top or left box */ - mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); + /* Then try the bottom or right box */ + mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); if(mybox) {