How to change FORM'S Softkey Font | developer.brewmp.com How to change FORM'S Softkey Font | developer.brewmp.com

Developer

How to change FORM'S Softkey Font

Hi,
I need to change the font of the sofkey of the Form I am using. I tried the code given below but it has no effect:

IWidget * softkeywid;
ISHELL_CreateInstance(me->pIShell, AEECLSID_SOFTKEYWIDGET, (void**)&(softkeywid));

// This following selg defined function "ISHELL_CreateFont" creates Valid font pointer which when used with static widget works fine:
nErr = ISHELL_CreateFont(AEE_GetShell(), AEECLSID_FONTSYSLARGE, &piFont);

IFORM_GetWidget(me->piForm, WID_SOFTKEYS, &softkeywid);
if (nErr == 0)
{
IWIDGET_SetFont(softkeywid, piFont);
}
IFORM_SetWidget(me->piForm, WID_SOFTKEYS, softkeywid);
nErr = IROOTFORM_PushForm(me->piRootForm, me->piForm);

The result is that My softkeys remain in same font. but if use this method for any other Static widget then it works fine.

Even changing the whole display font and using IROOTFORM_SetDisplay also did not work.
Please throw some light on this issue..

Regards
Manish

Hello ,
Get the SoftKey Widget using the RootForm i.e.
//Get Softkey widget
IFORM_GetWidget(IROOTFORM_TO_IFORM(pRootForm),WID_SOFTKEYS,&pSoftKeywidget);
// Then Set font here
:
:
:
//
// Set the soft key widget to root form
//Get Softkey widget
IFORM_SetWidget(IROOTFORM_TO_IFORM(pRootForm),WID_SOFTKEYS,pSoftKeywidget);
Just try this
I hope this will definately work if you are successful in changing the fon of the static widget
:)

Hello ,
Get the SoftKey Widget using the RootForm i.e.
//Get Softkey widget
IFORM_GetWidget(IROOTFORM_TO_IFORM(pRootForm),WID_SOFTKEYS,&pSoftKeywidget);
// Then Set font here
:
:
:
//
// Set the soft key widget to root form
//Get Softkey widget
IFORM_SetWidget(IROOTFORM_TO_IFORM(pRootForm),WID_SOFTKEYS,pSoftKeywidget);
Just try this
I hope this will definately work if you are successful in changing the fon of the static widget
:)

simple way is to use the THEME file
with that i think you will be able to change all fonts n everything u want..check the Calculator example

simple way is to use the THEME file
with that i think you will be able to change all fonts n everything u want..check the Calculator example

ya its working fine with taking rootform softkey widget. I was doing the mistake of taking individual form's softkey widget and pushing it then into rootform.
thnx and I also checked the Calculator example.

ya its working fine with taking rootform softkey widget. I was doing the mistake of taking individual form's softkey widget and pushing it then into rootform.
thnx and I also checked the Calculator example.

Thats gr8
Did you tried it with theme file also ?

Thats gr8
Did you tried it with theme file also ?