diff options
-rw-r--r-- | vcl/inc/svids.hrc | 2 | ||||
-rw-r--r-- | vcl/source/control/edit.cxx | 4 | ||||
-rw-r--r-- | vcl/source/src/stdtext.src | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc index b1f3ff41ee77..83d7ae7ae96b 100644 --- a/vcl/inc/svids.hrc +++ b/vcl/inc/svids.hrc @@ -173,7 +173,7 @@ #define SV_PRINT_INVALID_TXT 10616 #define SV_PRINT_CUSTOM_TXT 10617 -#define SV_EDIT_WARNING_BOX 10650 +#define SV_EDIT_WARNING_STR 10650 #define SV_FUNIT_STRINGS 10700 diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index ac5c57b7bdd2..287339c33b65 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -24,8 +24,8 @@ #include <vcl/virdev.hxx> #include <vcl/menu.hxx> #include <vcl/edit.hxx> +#include <vcl/layout.hxx> #include <vcl/svapp.hxx> -#include <vcl/msgbox.hxx> #include <vcl/settings.hxx> #include <window.h> @@ -791,7 +791,7 @@ void Edit::ShowTruncationWarning( Window* pParent ) ResMgr* pResMgr = ImplGetResMgr(); if( pResMgr ) { - WarningBox aBox( pParent, ResId( SV_EDIT_WARNING_BOX, *pResMgr ) ); + MessageDialog aBox(pParent, ResId(SV_EDIT_WARNING_STR, *pResMgr), VCL_MESSAGE_WARNING); aBox.Execute(); } } diff --git a/vcl/source/src/stdtext.src b/vcl/source/src/stdtext.src index 1a33cfa6b9bb..7e488593092b 100644 --- a/vcl/source/src/stdtext.src +++ b/vcl/source/src/stdtext.src @@ -49,9 +49,9 @@ String SV_STDTEXT_PREFERENCES Text [ en-US ] = "Preferences..."; }; -WarningBox SV_EDIT_WARNING_BOX +String SV_EDIT_WARNING_STR { - Message [en-US] = "The inserted text exceeded the maximum length of this text field. The text was truncated."; + Text [en-US] = "The inserted text exceeded the maximum length of this text field. The text was truncated."; }; String SV_MAC_SCREENNNAME |