void SoftKeyPad::PopUpKeypad(HTMLBrowser *pBrowser, DISPLAY_INT numlines, void *pEl, WEBC_CHAR *pValue, void (*pcloseFn)(void *El, WEBC_CHAR *p)) { HTMLElement *pTextWin; if (FocusElement) // Already popped return; // Store the focus elements when we get key touches FocusBrowser = pBrowser; FocusElement = pEl; // Copy the contents of the application window to the softkey input window pTextWin=(HTMLElement *)pTextWinObj; pTextWin->SetValue(pValue); closeFn = pcloseFn; if ((numlines*TEXTFONTHEIGHT) != KeypadOffsetY) { ReSizeTextWindow(numlines*TEXTFONTHEIGHT, wcTRUE); } // Set the focus, to the soft keypad window wcWinBringToTop(&WindowCtx); // wcWinSetFocus(&WindowCtx,pTextWinObj); wcWinClaimFocus(&WindowCtx); }