# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1081331771 0 # Node ID b744c2b86df88ed72fd526af601073d59fa1f4e8 # Parent 0369176130afa507d6200b2dfc18ab6caaff5e6d Argh, MacOS was using increments... let's see if we can work around it, and avoid the problem entirely. diff -r 0369176130af -r b744c2b86df8 mac/dw.c --- a/mac/dw.c Sun Apr 04 18:47:21 2004 +0000 +++ b/mac/dw.c Wed Apr 07 09:56:11 2004 +0000 @@ -965,7 +965,10 @@ */ HWND API dw_box_new(int type, int pad) { - return 0; + ControlRef hwnd = NewControl(CreationWindow, NULL, "\p", + true, kControlSupportsEmbedding | kControlHasSpecialBackground, + 0, 1, kControlUserPaneProc, (SInt32) 0); + return (HWND)hwnd; } /* @@ -1148,7 +1151,7 @@ HWND hwnd = 0; CFStringRef cftext = CFStringCreateWithCString(NULL, text, kCFStringEncodingDOSLatinUS); CreateStaticTextControl (CreationWindow, &CreationRect, cftext, NULL, &hwnd); - CFRelease(cftext); + CFRelease(cftext); return hwnd; } @@ -1313,7 +1316,7 @@ HWND API dw_scrollbar_new(int vertical, ULONG id) { HWND hwnd; - CreateScrollBarControl(CreationWindow, &CreationRect, 0, 0, increments, increments, FALSE, 0, &hwnd); + CreateScrollBarControl(CreationWindow, &CreationRect, 0, 0, 100, 100, FALSE, 0, &hwnd); return hwnd; }