572 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...