equal
deleted
inserted
replaced
223 |
223 |
224 // Multistate buttons change state automatically when pressed. |
224 // Multistate buttons change state automatically when pressed. |
225 // Revert this change as we do not want to use states |
225 // Revert this change as we do not want to use states |
226 // for "toggle button" type of functionality but to give one button |
226 // for "toggle button" type of functionality but to give one button |
227 // different functions depending on the situation. |
227 // different functions depending on the situation. |
|
228 // Must initiate button redraw so that the state change done here |
|
229 // is drawn too; the automatically changed state is drawn within |
|
230 // AknButton just before EEventStateChanged is reported |
|
231 // (in emulator button icon flashing can be seen). |
228 UpdateButtonStates(); |
232 UpdateButtonStates(); |
|
233 aControl->DrawNow(); |
229 |
234 |
230 // Handle the command attached to the button |
235 // Handle the command attached to the button |
231 CAknButton* button = static_cast<CAknButton*>( aControl ); |
236 CAknButton* button = static_cast<CAknButton*>( aControl ); |
232 TInt commandId = ButtonCommand( *button ); |
237 TInt commandId = ButtonCommand( *button ); |
233 |
238 |