CEikEdwin and FEP

Login to reply to this topic.
Thu, 2003-09-18 16:21
Joined: 2003-08-20
Forum posts: 15
Hi,
I'm trying to use CEikEdwin from inside a view class derived from CCoeControl and  MCoeControlObserver.  At the moment, I can't input text - it only shows numbers. Having searched around online it looks as though the FEP isn't being initialized, and the 'Editor' example in the SDK supposedly does it by involving other classes and suchlike.
However, before completely restructuring my whole program (it's quite big), I want to understand (a) why the FEP isn't working at the moment, and (b) if it can be made to work properly the way things stand at the moment, without having to move large sections of code around.
If the worst comes to the worst and there isn't a cheap fix, which bits need to move and which need to stay?
Any advice or insight would be much appreciated - I've been messing around with these example applications and trawling the web trying to find a straightforward fix for this for two days now. :/

Code:
void CMyAppView::ConstructL(const TRect& aRect)
{
 CreateWindowL();
 SetRect(aRect);
 TResourceReader reader;
 iCoeEnv->CreateResourceReaderLC(reader, R_MYPROG_EDWIN);
 iInput = new(ELeave) CEikEdwin;
 iInput->SetContainerWindowL(*this);
 iInput->ConstructFromResourceL(reader);
 CleanupStack::PopAndDestroy();  // Resource reader
//...
}

void CMyAppView::GetInput()
{
iInput->SetExtent(TPoint(64, 88), iInput->MinimumSize());
iInput->SetFocus(ETrue);
//...
}

TKeyResponse CBalleramaAppView::OfferKeyEventL(
const TKeyEvent& aKeyEvent,TEventCode aType)
{
return iInput->OfferKeyEventL(aKeyEvent, aType);
//...
}

Gareth Poulton


Wed, 2003-09-24 11:12
Joined: 2003-08-12
Forum posts: 67
Are you using a nummeric editor?
Hi,

Are you sure you are not using a nummeric editor? Coz if you are using one then, it will only take nummeric data as input.

Regards,
Ashish Bhatia

Wed, 2003-09-24 11:29
Joined: 2003-08-20
Forum posts: 15
CEikEdwin and FEP
I'm using the same code that's taken from the Editor example in the SDK, which does text perfectly. Only difference being I'm not using it within the same framework of classes.

Gareth Poulton

Wed, 2003-09-24 11:41
Joined: 2003-08-12
Forum posts: 67
rss file contents
Could you just specify the contents of the .rss file. That i'll make it easier from me to tell you wots the exact problem.

Regards,
Ashish Bhatia

Wed, 2003-09-24 11:51
Joined: 2003-08-20
Forum posts: 15
CEikEdwin and FEP
Code:
RESOURCE EDWIN r_myprog_edwin
   {
//    flags = EAknEditorFlagDefault;
   width = 3;
   lines = 1;
   maxlength = 3; // 10 in original
default_case = EAknEditorUpperCase;
default_input_mode = EAknEditorTextInputMode;
   }

Gareth Poulton

Fri, 2003-09-26 12:39
Anonymous (not verified)
Forum posts: 2018
Try this
hi,
if your problem still exist,
try typing Alt+F (ie alt key and F key) on your Desktop keyboard which will switch On/Off the FEP.
Try this out and the behaviour will toggle between Numeric and Alpha Numeric.
Fri, 2003-09-26 15:13
Joined: 2003-08-20
Forum posts: 15
CEikEdwin and FEP
The symptoms exist when the program is run on the hardware itself, so it's not that. Thanks anyway.

Gareth Poulton

Mon, 2003-10-20 10:26
Joined: 2003-10-20
Forum posts: 1
CEikEdwin Modes
The CEikEdwin input box operates in 2 modes, numeric, alpha numeric and symbols.

In your case it appears to be that It has strted in numeric mode. In that case you have to press the mode chage button on the device to change the input mode.

Hope it will solve your problem.
Cheers

Amit.

Sr. Software Engineer,
Infozech Software Ltd.
New Delhi.

Wed, 2003-12-10 09:35
Anonymous (not verified)
Forum posts: 2018
CEikEdwin and FEP
I found that the FEP only works correctly if the view derives from CAknView (I played around with the editor and the helloworld sample for hours to find this out). So it seems that the aknview implements something that listenes to the key events and reacts e.g. to the ABC button (which does not work in a CCoeControl-View).

Have you find any way to get around this problem, without making your view an CAknView?
Sat, 2005-01-22 02:01
Joined: 2005-01-22
Forum posts: 2
Any results?
Hi gpoulton (and others) -

 Did you ever get a resolution for this?  I have the identical problem -- in my case, though, I have to derive from a CCoeControl and not involve any of the forms code.   What are the steps to manually load and enable the FEP?  I tried the straightfoward thing of just doing this on my CCoeEnv:

_LIT(KFrontEndProcessor, "z:system\\fep\\t9fep.fep");

...

   // Load the FEP
   iEikonEnv->InstallFepL(KFrontEndProcessor)

   // Check if it's loaded
   CCoeFep* fep = iEikonEnv->Fep();
   TUid fepUid = iEikonEnv->FepUid();

...

but that doesn't seem to do the trick.  I'm assuming that InstallFepL, if it works, also puts the CCoeControl owned by the FEP (for grabbing and converting input) onto the stack.  That's just my guess, though.

Any help would be greatly appreciated -- I'll add the solution to this posting if I come up with it, but I'm hoping someone else out there has already figured it out.
Tue, 2005-06-14 23:27
Joined: 2005-01-22
Forum posts: 2
Re: CEikEdwin and FEP
Any solution to this one?  I'm experiencing the same problem - I'm tempted to just move to a view-based app.
Thu, 2005-10-06 14:53
Joined: 2005-09-22
Forum posts: 2
Re: CEikEdwin and FEP
Hello,

we use a CEikEdwin as a member of our CCoeControl-derived class. After 2 weeks looking for why the FEP is not active with our CEikEdwin, I finally find the problem: the CCoeControl-derived object has to be added to the AppUi control stack and be focused to be able to use the FEP.

I hope this will help every body having problems with this.
Mon, 2007-04-23 11:00
Joined: 2006-06-16
Forum posts: 13
Re: CEikEdwin and FEP
hi, pamplemousse_mk2!
i saw the topic at forum of NewLC.com, in the topic "CEikEdwin and FEP",
you said "the CCoeControl-derived object has to be added to the AppUi
control stack and be focused to be able to use the FEP. ".
but i can not understand which code to write.

i has the same problem when write a control liked CEikEdwin: when i
press # key, but the FEP is not can be switch, so i can input number only.
//
...
m_iEdit = new (ELeave) CEikEdwin;
m_iEdit->SetContainerWindowL(*Owner());
m_iEdit->ConstructL( 0, 15, 15, 1 );
m_iEdit->SetExtent(Rect().iTl, m_iEdit->MinimumSize());
m_iEdit->SetEdwinObserver( this );
m_iEdit->SetFocus(ETrue);
...

thanks!
  • Login to reply to this topic.