diff mac/dw.m @ 1389:0512fbb08abf

Added dw_window_set_tooltip() for adding bubble help to most controls. Mac, Windows and GTK should be supported... OS/2 coming soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 26 Nov 2011 21:00:14 +0000
parents fc20ad815428
children 117cc38a3799
line wrap: on
line diff
--- a/mac/dw.m	Sat Nov 26 20:20:41 2011 +0000
+++ b/mac/dw.m	Sat Nov 26 21:00:14 2011 +0000
@@ -8161,6 +8161,18 @@
 }
 
 /*
+ * Sets the text used for a given window's floating bubble help.
+ * Parameters:
+ *       handle: Handle to the window (widget).
+ *       bubbletext: The text in the floating bubble tooltip.
+ */
+void API dw_window_set_tooltip(HWND handle, char *bubbletext)
+{
+    id object = handle;
+    [object setToolTip:[NSString stringWithUTF8String:bubbletext]];
+}
+
+/*
  * Disables given window (widget).
  * Parameters:
  *       handle: Handle to the window.