--- a/uifw/ganes/src/HgVgScrollBar.cpp Fri Feb 19 23:04:46 2010 +0200
+++ b/uifw/ganes/src/HgVgScrollBar.cpp Fri Mar 12 15:43:43 2010 +0200
@@ -70,11 +70,14 @@
//
void CHgVgScrollBar::CreateImagesL()
{
- iScrollbarBg = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarBg());
- iScrollbarBgSelected = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarBgSelected());
- iScrollbarHandle = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarHandle());
- iScrollbarHandleSelected = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarHandleSelected());
- //iScrollbarHandleBg = HgVgHelper::CreateVgImageFromIconL(iScrollbar->ScrollbarHandleBg());
+ if(!iScrollbar->IsStatic())
+ {
+ iScrollbarBg = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarBg());
+ iScrollbarBgSelected = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarBgSelected());
+ iScrollbarHandle = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarHandle());
+ iScrollbarHandleSelected = HgVgHelper::CreateVgImageFromIconL(*iScrollbar->ScrollbarHandleSelected());
+ //iScrollbarHandleBg = HgVgHelper::CreateVgImageFromIconL(iScrollbar->ScrollbarHandleBg());
+ }
}
@@ -122,7 +125,7 @@
void CHgVgScrollBar::Draw(const TRect& aWindowRect, TReal aAlpha) const
{
- if (!iEnabled)
+ if (!iEnabled || iScrollbar->IsStatic())
return;
TRect scrollbarRect = iScrollbar->ScrollbarRect();