Mercurial > projects > dwt-win
diff dwt/widgets/Label.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | bcdc37794717 |
children | 36f5cb12e1a2 |
line wrap: on
line diff
--- a/dwt/widgets/Label.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/widgets/Label.d Mon May 05 00:12:38 2008 +0200 @@ -56,7 +56,7 @@ alias Control.computeSize computeSize; alias Control.windowProc windowProc; - char[] text = ""; + String text = ""; Image image; static const int MARGIN = 4; static const bool IMAGE_AND_TEXT = false; @@ -249,7 +249,7 @@ return image; } -override char[] getNameText () { +override String getNameText () { return getText (); } @@ -265,7 +265,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public char[] getText () { +public String getText () { checkWidget (); if ((style & DWT.SEPARATOR) !is 0) return ""; return text; @@ -392,7 +392,7 @@ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ -public void setText (char[] string) { +public void setText (String string) { checkWidget (); if (string is null) error (DWT.ERROR_NULL_ARGUMENT); // DWT extensions allow null argument @@ -453,7 +453,7 @@ return bits | OS.SS_LEFTNOWORDWRAP; } -override char[] windowClass () { +override String windowClass () { return TCHARsToStr( LabelClass ); }