Kaydet (Commit) 04ccece7 authored tarafından Eike Rathke's avatar Eike Rathke

feedback color indicator for invalid tags

Change-Id: I235e32587779369c139aedd1961b37d8fcad8f53
üst c2ce981d
......@@ -707,6 +707,7 @@ sal_Int32 SvxLanguageComboBox::ImplGetSavedValue() const
IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ )
{
EditedAndValid eOldState = meEditedAndValid;
OUString aStr( vcl::I18nHelper::filterFormattingChars( GetText()));
if (aStr.isEmpty())
meEditedAndValid = EDITED_INVALID;
......@@ -744,6 +745,24 @@ IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ )
}
}
}
if (eOldState != meEditedAndValid)
{
if (meEditedAndValid == EDITED_INVALID)
{
#if 0
//! Gives white on white!?! instead of white on reddish.
SetControlBackground( ::Color( RGB_COLORDATA( 0xff, 0x65, 0x63)));
SetControlForeground( ::Color( COL_WHITE));
#else
SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0)));
#endif
}
else
{
SetControlForeground();
SetControlBackground();
}
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment