Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
This page was last modified 09:35, 9 April 2008.

CEikSecretEditor Size

From Forum Nokia Wiki

If there is a need for a custom password/secret editor, a custom control derived from CEikSecretEditor is required. Now CEikSecretEditor is the only editor that has not been derived from CEikEdwin. So it does not have ConstructL variants to set size in pixels/characters. If a custom secret editor is required be sure to set its correct size using SetPosition and SetSize functions.

Also the password/secret control can never be created without a resource. So always have a dummy resource file for a Secret editor

RESOURCE SECRETED r_my_secret_editor
{
	num_letters = 10;
}

The num_letters can always be modified using the SetMaxLength function.

Also whenever the controls MinimumSize is called the default values will be returned. i.e. the size of the editor reported wont be the one you set using SetSize. It will be the size when the editor was created using

TResourceReader reader;
CCoeEnv::Static()->CreateResourceReaderLC(reader, R_MY_SECRET_EDITOR);
ConstructFromResourceL(reader);
CleanupStack::PopAndDestroy();

So always return the Rect what is set using SetSize function.

Related Discussions
Thread Thread Starter Forum Replies Last Post
How to change size of CAknForm? codeshu Symbian Networking & Messaging 1 2007-01-19 08:00
[Update] Unity 1.10 (game) JOM Python 14 2008-10-20 03:39
Bluetooth series 60 and Java amartey Bluetooth Technology 23 2003-12-03 18:05
size of encodede data rkmohanty General Symbian C++ 4 2008-09-12 12:36
Is the Cache Problem? fanstar Browsing and Mark-ups 1 2003-07-21 10:21
 
Powered by MediaWiki
RDF Facets: qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX