The MindFusion Forums
Virtual Keyboard Components >> Java Swing >> Can I add a small close (x) icon to my keyboard that acts like a normal key?
https://mindfusion.eu/Forum/YaBB.pl?num=1570978020

Message started by MFusion Swing KBoard on Oct 13th, 2019 at 2:47pm

Title: Can I add a small close (x) icon to my keyboard that acts like a normal key?
Post by MFusion Swing KBoard on Oct 13th, 2019 at 2:47pm
Can I iconify a keyboard using a small x in the upper right hand corner of a keyboard?

Title: Re: Can I add a small close (x) icon to my keyboard that acts like a normal key?
Post by Slavcho on Oct 14th, 2019 at 6:08am
You should be able to show your platform's standard minimize or close button in the taskbar of frame / window containing the keyboard component. Otherwise add an overlapped button or image on top-right of the keyboard and handle its click events. If you prefer it as an actual keyboard key, it might be possible to inherit from the Key class, override its send method with code to minimize when pressed, and add an instance to your custom keyboard layout.

Regards,
Slavcho
Mindfusion

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.