779 views
in Embedded Wizard Studio by

Hello team,

    if i want to make a diagram,The content is :

     

  The picture have three curves.

  My purpose:

  When I press the plus key ,This curve will add one ,when i press the minus,this curve will reduce one.

in the embedded wizard,How can I achieve?

Thank you very much for your help.

Best regards,

Tonny.

1 Answer

0 votes
by

Hi Tonny,

the easiest way to show a speaker symbol with several volume levels is the usage of a bitmap stripe containing all necessary icons:

You can store all icons in one multi-frame bitmap resource and show the actual icon within an Image View by selecting the frame number of a multi-frame bitmap resource.

The above example has a size of 250x50 pixel - each icon has the size 50x50 pixel. This size has to be used in the parameter FrameSize of the bitmap resource.

If you use such a bitmap as ALPHA8 bitmap, you can colorize it dynamically during runtime.

I hope this answers your question.

Best regard,

Manfred.

by

Hello Manfred,

     

In the onPressKey and onReleaseKey ,

What kind of code should I use?

Best regards,
Tonny

by

Hi Tonny,

you can add one KeyHandler for 'Plus' and send a signal by using OnPress to a slot method to increase the volume. A separate key handler and slot method can be used to decrease the volume.

Best regards,

Manfred.

by
Hello Manfred,

     OK ,Thank you very much. I've solved the problem.

Best regards,

Tonny

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

...