I've created simple RESOURCE DIALOG which contains control = LABEL with horiz_align = EEikLabelAlignHCenter; but unfortunately on s60 SDK rel. 2.1 beta the label is not displayed centered on a dialog but left aligned. I tried then in both places - MyDialog::PreLayoutDynInitL() and MyDialog:PostLayoutDynInitL() such a code :

CEikLabel* label = (CEikLabel*)ControlOrNull(ENetFront3DlgSplash);
if (label)
label->SetLabelAlignment(ELayoutAlignCenter); //either one of these lines

but still couldn't achieve the label's text to be displayed centered. Any idea what is wrong? Could anyone help me?
Thank you in advance.