equal
deleted
inserted
replaced
292 CCoeControl::HandlePointerEventL(aPointerEvent); |
292 CCoeControl::HandlePointerEventL(aPointerEvent); |
293 } |
293 } |
294 |
294 |
295 if (pressed != iPressed) |
295 if (pressed != iPressed) |
296 { |
296 { |
297 Redraw(); |
297 GetShell().UpdateHighlight(ETrue); // draw now |
298 } |
298 } |
299 |
299 |
300 PostMouseEventL(aPointerEvent); |
300 PostMouseEventL(aPointerEvent); |
301 } |
301 } |
302 #endif //RD_SCALABLE_UI_V2 |
302 #endif //RD_SCALABLE_UI_V2 |
466 { |
466 { |
467 if (aKeyEvent.iCode == EKeyEnter || aKeyEvent.iCode == EKeyOK) |
467 if (aKeyEvent.iCode == EKeyEnter || aKeyEvent.iCode == EKeyOK) |
468 { |
468 { |
469 if (!iOpen) |
469 if (!iOpen) |
470 { |
470 { |
|
471 Invalidate(Rect()); |
471 DoOpenL(); |
472 DoOpenL(); |
472 iDisplay.PostDefaultSelectionEventL(iPeer); |
473 iDisplay.PostDefaultSelectionEventL(iPeer); |
473 } |
474 } |
474 } |
475 } |
475 } |
476 } |
515 // --------------------------------------------------------------------------- |
516 // --------------------------------------------------------------------------- |
516 // |
517 // |
517 HBufC* CSwtCombo::MSKLabelL() const |
518 HBufC* CSwtCombo::MSKLabelL() const |
518 { |
519 { |
519 return iEikonEnv->AllocReadResourceL(R_QTN_MSK_OPEN); |
520 return iEikonEnv->AllocReadResourceL(R_QTN_MSK_OPEN); |
|
521 } |
|
522 |
|
523 // --------------------------------------------------------------------------- |
|
524 // CSwtCombo::PressBackgroundPolicy |
|
525 // From MSwtControl |
|
526 // --------------------------------------------------------------------------- |
|
527 // |
|
528 TInt CSwtCombo::PressBackgroundPolicy() const |
|
529 { |
|
530 return EEmbeddedPressBackground; |
520 } |
531 } |
521 |
532 |
522 // --------------------------------------------------------------------------- |
533 // --------------------------------------------------------------------------- |
523 // CSwtCombo::ComputeTrim |
534 // CSwtCombo::ComputeTrim |
524 // From MSwtScrollable |
535 // From MSwtScrollable |
1344 iDisplay.PostSelectionEventL(iPeer); |
1355 iDisplay.PostSelectionEventL(iPeer); |
1345 } |
1356 } |
1346 |
1357 |
1347 // Get new selection |
1358 // Get new selection |
1348 iPrevSelIdx = iCombo->SelectedIndex(); |
1359 iPrevSelIdx = iCombo->SelectedIndex(); |
1349 Redraw(); |
1360 |
|
1361 // Remove the pressed down highlight |
|
1362 GetShell().UpdateHighlight(ETrue); |
1350 } |
1363 } |
1351 } |
1364 } |
1352 |
1365 |
1353 // --------------------------------------------------------------------------- |
1366 // --------------------------------------------------------------------------- |
1354 // CSwtCombo::DoOpenL() |
1367 // CSwtCombo::DoOpenL() |