uifw/ganes/src/HgVgScrollBar.cpp
branchRCL_3
changeset 5 aabf2c525e0f
parent 0 2f259fa3e83a
child 6 9f56a4e1b8ab
--- 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();