930 views
in GUI Development by
i am currently using  extended virtual keyboard

i need to resize the related character and preview button , how we able to resize the same and preview button.

1 Answer

0 votes
by

Hi mvg,

you can resize the ButtonPreview directly inside the composer inside ExtendedVirtualKeyboard::Keyboard.

The related characters can be resized inside ExtendedVirtualKeyboard::RelatedCharacters.generateButtons() there set the size after the creation of the button like:

btn.Bounds.size = <40,50>; // width and height in pixel

also adopt how the related characters component is positioned inside ExtendedVirtualKeyboard::RelatedCharacters.onButtonsChange e.g.:

  // Check if there is a second row of characters. If true then position the related 
  // characters preview one row above
  if ( String.length > buttonPerRow )
    Bounds.origin.y = SourceButton.Bounds.y1 - 2 * /*height of button*/50 + KeyboardOriginY - Padding;
  else
    Bounds.origin.y = SourceButton.Bounds.y1 - /*height of button*/50 + KeyboardOriginY - Padding;

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

...