Languages

Menu
Sites
Language
Disable highlighting around checkbutton when pressed

When I press a checkbutton in my app I see a big highlighting all around it.

Does anyone know how to disable this highlighting when pressing a checkbutton?

The only thing that should happen is the checkmark appears or disappears when pressing the checkbutton.

Thank you.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 Replies
Alex Dem
Hi, You could configure highlight color of checkButton this way: pCheckbutton1->SetColor(CHECK_BUTTON_STATUS_PRESSED,Color::GetColor(COLOR_ID_GREY)); or via Native UI Builder (if button was created there): in 'Properties' window set Properties->Pressed Color value for checkButton. Alexey.
Vandersteene
Hello, Thank you for the information. This method works but unfortunately not when the background style of the check button is 'none'. From the SDK documentation for SetColor: 'The operation is not supported if the background style is BACKGROUND_STYLE_NONE'. Would it be possible to somehow capture touch events for the check button and then prevent the button from being drawn in the pressed state? Any other ideas to solve this problem? Now I always get a big colored rectangle around the check button whenever it is pressed and that really is very disturbing to the user.
Zoltan Puski
How about putting a same size, transparent Label on top of the CheckButton? This is not really nice, but works. Maybe there is a simper solution btw...
Vandersteene
Thank you for your help. I tried it and it works. The only drawback of this solution is that you lose the animation when the check mark is being drawn but that is not a big problem.