CAknInputFrame

Login to reply to this topic.
Mon, 2005-12-05 19:00
Joined: 2005-02-21
Forum posts: 47

Have any of you out there used the CAknInputFrame class?

Basically I'm trying to do a view with two controls: one for content and another for user input. Like findbox for listboxes does but my own implementation. I want just a simple textinput ...

Now, what I'm doing, I'm creating an instance of CEikEdwin and feed it to the FrameBox. Something like this:

container's construct:
   TResourceReader rr;
   iCoeEnv->CreateResourceReaderLC(rr, R_INPUTBOX);
   iInputBox = new (ELeave) CEikGlobalTextEditor();
   iInputBox->SetContainerWindowL(*this);
   iInputBox->ConstructFromResourceL(rr);
   CleanupStack::Pop(); // rr
   TSize sz = iInputBox->MinimumSize();
   iInputBox->SetExtent(TPoint(0, 120), iInputBox->MinimumSize());

   iFrameBox = CAknInputFrame::NewL(
      iInputBox,
      ETrue,
      KMbmSomeIcon, 0, 1,
      CAknInputFrame::EShowIndicators|CAknInputFrame::EOwnsField
   );
   iFrameBox->SetContainerWindowL(*this);

container's countcomponents:
TInt CMyContainer::CountComponentControls() const
{
   return 2;
}

and respective ComponentControl() which I skip to paste here Smiley

No help from SDK's help nor from examples. And internet does not reveal anything too...

best regards,
  Ahti.

Mon, 2005-12-05 19:03
Joined: 2005-02-21
Forum posts: 47
Re: CAknInputFrame
forgot to mention that emulator of course does not give any hint where the error is - emulator is closed immediately without any panic or whatever code Sad

Ahti.
  • Login to reply to this topic.