AdvancedHMI Software

General Category => Open Discussion => Topic started by: brady on August 08, 2016, 12:03:10 PM

Title: Keypad not modal? Issue on raspberry pi + mono
Post by: brady on August 08, 2016, 12:03:10 PM
I'm using the keypad control with some basiclabels to enter values, works fine on PC, but when we run it on the raspberry pi with mono, the keypad doesnt stay in the foreground if you click back on the form behind it. it goes to the background and you have to exit the app to find it and close it out. I see in the source that the keypad is set to topmost window, but is it possible to load it as a modal/dialog?

Also, is the source avialable for this control? Or are there others available I can hack at to make work on the Pi?

thanks!
Title: Re: Keypad not modal? Issue on raspberry pi + mono
Post by: Archie on August 08, 2016, 09:34:41 PM
You can possibly make it modal, by changing the last line of code in the BasicLabel from KeypadPop.Visible=True to KeypadPopUp.ShowModal.

I have tested this, so I'm not sure what effects it will have. If you look in the Additional Components section of this forum, there is an Alphanumeric keypad with full source
Title: Re: Keypad not modal? Issue on raspberry pi + mono
Post by: DanieLoche on August 09, 2016, 06:39:55 AM
Personally I made a more neutral keypad from the Alphanumeric one, so the problem is solve more easily. :)