need help with offerkeyevent
Login to reply to this topic.
Sat, 2005-07-16 09:21
Anonymous
Forum posts: 2037
when "*"  is pressed a symbol selection dlg is opened, how can i open same dialog from my app menu?

can i use "OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)" for this purpose?

if yes how to call it for  "*"

Mon, 2005-07-18 03:13
Joined: 2003-04-01
Forum posts: 142
the "*" is handled by the system FEP, I ones asked this same question on nokia, and didn't get any answers on opening the special character screen, so I quess at least you can not open the special  characters screen from your app. Anyway, have you tried on sending the "*" to your app. Was wondering if the FEP would catch it and open the dialog as usual.

yucca
Mon, 2005-07-18 05:57
chishti_hameed (not verified)
Forum posts: 2037
Quote from: yucca
the "*" is handled by the system FEP, I ones asked this same question on nokia, and didn't get any answers on opening the special character screen, so I quess at least you can not open the special  characters screen from your app. Anyway, have you tried on sending the "*" to your app. Was wondering if the FEP would catch it and open the dialog as usual.
yucca

i dont know how to can i send "*" to my app . I guess it can be done using OfferKeyEventL method. But i have no idea how
to properly call it for  "*" Smiley

Thanks for reply, u always helping Smiley
Mon, 2005-07-18 07:00
Joined: 2003-04-01
Forum posts: 142
just send it as keyevent. I remember having written a sample code somewhere in forum nokia, so maybe you could do a bit of seaching there.

yucca
Mon, 2005-07-18 07:06
chishti_hameed (not verified)
Forum posts: 2037
Quote from: yucca
just send it as keyevent. I remember having written a sample code somewhere in forum nokia, so maybe you could do a bit of seaching there.

yucca

Searching forum nokia for example .....Smiley
can i open that dlg using method "RunCharMapDlgLD(this);" Huh

I'm trying to use it in different way but getting different errors :

when try this :    iEikonEnv::CDlgDialogFactory()::RunCharMapDlgLD(this);

errors :

error C2039: 'CDlgDialogFactory' : is not a member of '`global namespace''
error C2146: syntax error : missing ';' before identifier 'CDlgDialogFactory'
error C2065: 'CDlgDialogFactory' : undeclared identifier
error C2039: 'RunCharMapDlgLD' : is not a member of '`global namespace''
error C2146: syntax error : missing ';' before identifier 'RunCharMapDlgLD'

when trying :

iEikonEnv->CDlgDialogFactory()->RunCharMapDlgLD(this);
or
iRichTextEditor->CDlgDialogFactory()->RunCharMapDlgLD(this);

a message box is displayed in app "Feature not supported" Sad


Mon, 2005-07-18 07:57
chishti_hameed (not verified)
Forum posts: 2037

HandleCommandL(EEikCmdInsertSymbol); //should open "Special Char Selection" dlg but nothing is happening Sad
Sat, 2007-01-06 09:01
Joined: 2006-06-14
Forum posts: 10
Quote from: chishti_hameed
when "*"  is pressed a symbol selection dlg is opened, how can i open same dialog from my app menu?

can i use "OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)" for this purpose?

if yes how to call it for  "*"

You can use SimulateKeyEventsL() inside OfferKeyEventL() function.

copyright 2003-2009 NewLC SARL