equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Progress bar control |
14 * Description: Progress bar control |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 17 % |
18 // Version : %version: e003sa33#19 % |
19 |
19 |
20 |
20 |
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 #include <eikenv.h> |
22 #include <eikenv.h> |
23 #include <gulicon.h> |
23 #include <gulicon.h> |
217 // |
217 // |
218 // Calculate icon rects |
218 // Calculate icon rects |
219 // |
219 // |
220 |
220 |
221 TRect progressRect = Rect(); |
221 TRect progressRect = Rect(); |
222 TInt topMarginHeight = ( progressRect.iBr.iY - KMPXProgressBarHeight ) / 2; |
222 TInt topMarginHeight = ( progressRect.iBr.iY - KMPXProgressBarHeight ) / 2 - 10; |
223 progressRect.iTl.iY += topMarginHeight; |
223 progressRect.iTl.iY += topMarginHeight; |
224 progressRect.iBr.iY = progressRect.iTl.iY + KMPXProgressBarHeight; |
224 progressRect.iBr.iY = progressRect.iTl.iY + KMPXProgressBarHeight; |
225 |
225 |
226 TAknLayoutRect seekBarFrameRect; |
226 TAknLayoutRect seekBarFrameRect; |
227 seekBarFrameRect.LayoutRect( progressRect, mup_progress_pane_cp04().LayoutLine() ); |
227 seekBarFrameRect.LayoutRect( progressRect, mup_progress_pane_cp04().LayoutLine() ); |
858 { |
858 { |
859 if ( iPointerEventStarted || iDragging ) |
859 if ( iPointerEventStarted || iDragging ) |
860 { |
860 { |
861 TPointerEvent event; |
861 TPointerEvent event; |
862 event.iType = TPointerEvent::EButton1Up; |
862 event.iType = TPointerEvent::EButton1Up; |
863 HandlePointerEventL(event); |
863 MPX_TRAPD( err, HandlePointerEventL(event) ); |
864 } |
864 } |
865 } |
865 } |
866 |
866 |
867 // End of File |
867 // End of File |