Hey,

I'm having problems getting this dialog to work. (Code included below). When I run ExecuteLD with the dialog it crashes. However if I dont include the horizontal option button control and insted add a button it works OK.
Do you havew any ideas what could be wrong?

Regards, Aljaz

This way it crashes:

RESOURCE ARRAY my_buttons
{
items=
{
OPBUT { text="+"; id=myButtonAdd; },
OPBUT { text="-"; id=myButtonSubtract; },
OPBUT { text="*"; id=myButtonMultiply; },
OPBUT { text="/"; id=myButtonDivide; },
OPBUT { text="="; id=myButtonEquals; }
};
}

RESOURCE DIALOG R_CALCULATOR_DIALOG
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{

DLG_LINE
{
//prompt= "Enter number:";
id = myNumericEdwin;
type = EEikCtEdwin;
control = EDWIN
{
width=10;
maxlength=10;
default_input_mode=EAknEditorNumericInputMode;
//allowed_input_modes= EAknEditorNumericInputMode;
base_line_delta = 21;
};
},

DLG_LINE
{
type=EEikCtHorOptionButList;
id=myButtonBar;
control=HOROPBUT {buttonSpacing=15; array_id=my_buttons;};
}

};

}


This way it works:

RESOURCE DIALOG R_CALCULATOR_DIALOG
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{

DLG_LINE
{
//prompt= "Enter number:";
id = myNumericEdwin;
type = EEikCtEdwin;
control = EDWIN
{
width=10;
maxlength=10;
default_input_mode=EAknEditorNumericInputMode;
//allowed_input_modes= EAknEditorNumericInputMode;
base_line_delta = 21;
};
},

DLG_LINE
{
id=myButtonAdd;
type=EEikCtCommandButton;
//hotkey="d";
control=CMBUT
{
txt="+";
behavior=EEikButtonLatches;
};
}
};

}