Hello,

I have a to create a dialog based application.
The dialog resource looks like:

RESOURCE DIALOG r_sabico_main_form_sabico_main_form
{
flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagCbaButtons | EEikDialogFlagFillAppClientRect | EEikDialogFlagNotifyEsc | EEikDialogFlagModeless;
buttons = R_AVKON_SOFTKEYS_BACK;
form = r_sabico_main_form_sabico_main_form_form;
}

I use Carbide 2 UIDesigner to create the form dialog.
In the resource file, I define my own CBA resouces:

RESOURCE CBA r_sabico_softkeys_siguiente
{
flags = 0;
buttons =
{
CBA_BUTTON {id = EAknSoftkeyExit; txt = STR_SabicoMainFormView_30;},
CBA_BUTTON {id = EAppCommandNext; txt = STR_SabicoMainFormView_29;}
};
}
RESOURCE CBA r_sabico_softkeys_enviar
{
flags = 0;
buttons =
{
CBA_BUTTON {id = EAppCommandBack; txt = STR_SabicoMainFormView_32;},
CBA_BUTTON {id = EAppCommandSend; txt = STR_SabicoMainFormView_31;}
};
}

Since UIDesign does not allow me to select a custom CBA for the dialog but only a few of the predefined CBA's in avkon, what I do is to let the application create this dialog and then change the CBA programatically in the constructor:

CSabicoMainForm* CSabicoMainForm::NewL( MEikCommandObserver* aCommandObserver )
{
CSabicoMainForm* self = CSabicoMainForm::NewLC( aCommandObserver );
CleanupStack::Pop( self );
CEikButtonGroupContainer* cba = CEikButtonGroupContainer::Current();
CleanupStack::PushL( cba );
cba->SetCommandSetL(R_SABICO_SOFTKEYS_SIGUIENTE);
cba->MakeVisible( ETrue );
cba->DrawNow();
CleanupStack::Pop();
return self;
}

following what is mentioned in http://wiki.forum.nokia.com/index.ph...ng_them_in_S60 and in the CarbideC++ help.

However, this does not work. When I run the application, I still get the "Back" button on the right. I.e. the my cba does not come out.

Obviously I am doing it wrong. What is the best way to do what I want?

Thanks in advance,
Juan