summaryrefslogtreecommitdiff
path: root/vcl/source/window/window.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r--vcl/source/window/window.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 1e951c5e6d15..161c18ae946b 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: window.cxx,v $
*
- * $Revision: 1.172 $
+ * $Revision: 1.173 $
*
- * last change: $Author: vg $ $Date: 2003-05-28 12:32:58 $
+ * last change: $Author: vg $ $Date: 2003-05-28 12:44:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -8448,6 +8448,18 @@ String Window::GetAccessibleName() const
aAccessibleName = GetText();
}
break;
+
+ case WINDOW_IMAGEBUTTON:
+ case WINDOW_PUSHBUTTON:
+ aAccessibleName = GetText();
+ if ( !aAccessibleName.Len() )
+ {
+ aAccessibleName = GetQuickHelpText();
+ if ( !aAccessibleName.Len() )
+ aAccessibleName = GetHelpText();
+ }
+ break;
+
default:
aAccessibleName = GetText();
break;