Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1388:8fe15c1648c9 | 1389:0512fbb08abf |
---|---|
8156 { | 8156 { |
8157 DWGroupBox *groupbox = handle; | 8157 DWGroupBox *groupbox = handle; |
8158 [groupbox setTitle:[NSString stringWithUTF8String:text]]; | 8158 [groupbox setTitle:[NSString stringWithUTF8String:text]]; |
8159 } | 8159 } |
8160 DW_MUTEX_UNLOCK; | 8160 DW_MUTEX_UNLOCK; |
8161 } | |
8162 | |
8163 /* | |
8164 * Sets the text used for a given window's floating bubble help. | |
8165 * Parameters: | |
8166 * handle: Handle to the window (widget). | |
8167 * bubbletext: The text in the floating bubble tooltip. | |
8168 */ | |
8169 void API dw_window_set_tooltip(HWND handle, char *bubbletext) | |
8170 { | |
8171 id object = handle; | |
8172 [object setToolTip:[NSString stringWithUTF8String:bubbletext]]; | |
8161 } | 8173 } |
8162 | 8174 |
8163 /* | 8175 /* |
8164 * Disables given window (widget). | 8176 * Disables given window (widget). |
8165 * Parameters: | 8177 * Parameters: |