The MindFusion Forums
Virtual Keyboard Components >> Java Swing >> Custom Keyboard Templates
https://mindfusion.eu/Forum/YaBB.pl?num=1556111886

Message started by MFusion Swing KBoard on Apr 24th, 2019 at 1:18pm

Title: Custom Keyboard Templates
Post by MFusion Swing KBoard on Apr 24th, 2019 at 1:18pm
I cannot load a custom template, and I see no error during my attempt. 

Is it necessary to purchase a license before I can kick the tires on the custom templates feature?

Title: Re: Custom Keyboard Templates
Post by Slavcho on Apr 24th, 2019 at 2:04pm
Please attach the template file.

Title: Re: Custom Keyboard Templates
Post by MFusion Swing KBoard on Apr 24th, 2019 at 2:13pm
XML file attached (renamed for upload)
https://mindfusion.eu/Forum/YaBB.pl?action=downloadfile;file=BrowserKeyboard.txt ( 17 KB | 211 Downloads )

Title: Re: Custom Keyboard Templates
Post by Slavcho on Apr 24th, 2019 at 4:38pm
Try loading like this -
[code]
KeyboardLayout kl = KeyboardLayout.create("D:\\BrowserKeyboard.txt");
vkb.setTemplateLayout(kl);
vkb.setMode(KeyboardMode.Custom);[/code]

Usually setTemplateLayout should be enough, but we are missing some mode update calls from our ported .NET code.

Regards,
Slavcho

Title: Re: Custom Keyboard Templates
Post by MFusion Swing KBoard on Apr 24th, 2019 at 7:20pm
setMode solved my problem.  Thank you!

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