Set the ceikedwin and ceiksecreteditor Fonts
Class attribution: Symbian notes-Gio @ pm
1. The ceikedwin class does not have the setfont () function. You can use the followingCodeFont setting
Related header files: GDI. H, txtglobl. h
Related library files: GDI. Lib, etext. Lib
Code:
Const cfont * iedwinfont = ceikonenv: static ()-> normalfont ();
Cglobaltext * globaltext = (cglobaltext *) iedwin-> text ();
Tcharformat charformat;
Mem: fillz (& charformat, sizeof (tcharformat ));
Tcharformatmask charmask;
Mem: fillz (& charmask, sizeof (tcharformatmask ));
Tfontspec sfontspec = iedwinfont-> fontspecintwips ();
Charformat. ifontspec. itypeface = sfontspec. itypeface;
Charmask. setattrib (eattfonttypeface );
Charformat. ifontspec. iheight = sfontspec. iheight;
Charmask. setattrib (eattfontheight );
Charformat. ifontpresentation. itextcolor = krgbblack;
Charmask. setattrib (eattcolor );
Globaltext-> applycharformatl (charformat, charmask, 0, iedwin-> textlength ());
2. You can use the aknsetfont () function to set the ceiksecreteditor Password box control.