CAknInputFrame
| Mon, 2005-12-05 19:00 | |
|
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 ![]() No help from SDK's help nor from examples. And internet does not reveal anything too... best regards, Ahti. |
|







Forum posts: 47
Ahti.