264 views
in GUI Development by
Hi,

  I am working Virtual keyboard.when i click long press accented char window displayed in virtualkeyboard but i am not release button the background color is automatically changed.

i want to change button background color whn i release the button.

please guide me to resolve this.

With regards,

Ramesh.G

1 Answer

0 votes
by

Hi Ramesh,

you can do the following to change the button color after release of the finger on the related characters preview and not already on wipping to the related characters:

1. Go inside ExtendVirtualKeyboard::KeyboardQWERTZ and create a copy of the brick keyView. Lets name it prevKeyView

2. Inside UpdateViewState() replace:

// and release if needed a previous pressed key
if ( keyView != null )
  keyView.Pressed = false;

with

// store the previous pressed key
if ( keyView != null )
  prevKeyView = keyView;

3. Append inside onRelatedCharactersRelease

if ( prevKeyView != null )
  prevKeyView.Pressed = false;

 

Regards,

Julian

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...