equal
deleted
inserted
replaced
66 { |
66 { |
67 iDisplayable = static_cast< CMIDDisplayable* >(aDisplayable); |
67 iDisplayable = static_cast< CMIDDisplayable* >(aDisplayable); |
68 iTextContent.CreateL(KNullDesC, aMaxSize); |
68 iTextContent.CreateL(KNullDesC, aMaxSize); |
69 |
69 |
70 CreateTextBoxQueryDialogL(iDialog, aConstraints, aMaxSize, aText); |
70 CreateTextBoxQueryDialogL(iDialog, aConstraints, aMaxSize, aText); |
|
71 SetTextL(aText); |
71 |
72 |
72 iDisplayable->SetPopupTextBox(ETrue); |
73 iDisplayable->SetPopupTextBox(ETrue); |
73 SetRect(iDisplayable->Rect()); |
74 SetRect(iDisplayable->Rect()); |
74 iDisplayable->SetComponentL(*this); |
75 iDisplayable->SetComponentL(*this); |
75 |
76 |
76 SetTextL(aText); |
77 |
77 SetContainerWindowL(*iDisplayable); |
78 SetContainerWindowL(*iDisplayable); |
78 |
79 |
79 iCurrentText = GetTextL(); |
80 iCurrentText = GetTextL(); |
80 |
81 |
81 if (iCurrentText) |
82 if (iCurrentText) |
173 // Set dialog cursor to zero and back again after it returns from |
174 // Set dialog cursor to zero and back again after it returns from |
174 // iDialog->ShowL. |
175 // iDialog->ShowL. |
175 |
176 |
176 TInt curPosition = iCursorPosition; |
177 TInt curPosition = iCursorPosition; |
177 iCursorPosition = 0; |
178 iCursorPosition = 0; |
178 iDialog->SetCursorPositionL(0); |
179 iDialog->SetCursorPositionL(iCursorPosition); |
|
180 |
179 iDialog->ShowL(ETrue); |
181 iDialog->ShowL(ETrue); |
180 |
182 |
181 if (iCurrentText) |
|
182 { |
|
183 SetTextL(*iCurrentText); |
|
184 } |
|
185 iCursorPosition = curPosition; |
183 iCursorPosition = curPosition; |
186 // Set cursor position back to original value. |
184 // Set cursor position back to original value. |
187 iDialog->SetCursorPositionL(iCursorPosition); |
185 iDialog->SetCursorPositionL(iCursorPosition); |
188 } |
186 } |
189 else |
187 else |