Problem with change screen orientation
Hello,
I have nokia E75 phone and when I change screen orientation,
I have problem, because on the right side show white rectangle,
where text is not visible -
[IMG]http://www.volny.cz/svopex/symbian/Screenshot0012.jpg[/IMG]
I use CAknForm as container and this code for screen orientation changing...
[CODE]
void CSmsSend::AdjustControlRect()
{
TSize size;
AknLayoutUtils::LayoutMetricsSize(AknLayoutUtils::EMainPane, size);
iContainer->SetRect(TRect(TPoint(0,0), size));
}
void CSmsSend::HandleResourceChange(TInt aType)
{
if(aType == KEikDynamicLayoutVariantSwitch)
{
AdjustControlRect();
iContainer->Refresh();
}
CAknDialog::HandleResourceChange(aType);
}
[/CODE]
Thanks for help Petr
Re: Problem with change screen orientation
Problem is in HTMLCONTROL and is not in this code.
This code is valid.
See
[URL="http://code.google.com/p/htmlcontrol-for-symbian/wiki/Form_ss"]http://code.google.com/p/htmlcontrol-for-symbian/wiki/Form_ss[/URL]
Re: Problem with change screen orientation
[QUOTE=svopex;670501]Problem is in HTMLCONTROL and is not in this code.
This code is valid.
See
[URL="http://code.google.com/p/htmlcontrol-for-symbian/wiki/Form_ss"]http://code.google.com/p/htmlcontrol-for-symbian/wiki/Form_ss[/URL][/QUOTE]
from what u had shown, the sizechange() function is not working,
u should Retrive the new Rect and redraw the whole new area.