Creating settings list item that allows an empty string
Article Metadata
By default CAknSettingItem and its derived classes expect to have some text in the editor before they will allow the field to be saved (by enabling the OK button).
To disable this behaviour and allow an empty string, after creating the Settings item, call SetSettingPageFlags(CAknTextSettingPage::EZeroLengthAllowed).
#include <AknTextSettingPage.h>
...
CAknSettingItem* item = NULL;
...
case EMySettingsItem:
item = new CAknTextSettingItem(aId, iMyString);
item->SetSettingPageFlags(CAknTextSettingPage::EZeroLengthAllowed);
break;
...
return item;


(no comments yet)