Author Topic: Keypad not modal? Issue on raspberry pi + mono  (Read 901 times)

brady

  • Newbie
  • *
  • Posts: 2
    • View Profile
Keypad not modal? Issue on raspberry pi + mono
« 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!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Keypad not modal? Issue on raspberry pi + mono
« Reply #1 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

DanieLoche

  • Guest
Re: Keypad not modal? Issue on raspberry pi + mono
« Reply #2 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. :)