changeset 549:b744c2b86df8

Argh, MacOS was using increments... let's see if we can work around it, and avoid the problem entirely.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 07 Apr 2004 09:56:11 +0000
parents 0369176130af
children ebb26cb6bfb2
files mac/dw.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }