Mobile Support Functions with RapaGUI

Discuss GUI programming with the RapaGUI plugin here
Post Reply
PEB
Posts: 227
Joined: Sun Feb 21, 2010 1:28 am

Mobile Support Functions with RapaGUI

Post by PEB » Sat Mar 02, 2019 8:38 pm

Now that RapaGUI is available for Android, there are a few mobile support functions that would be handy to have when using a RapaGUI display, such as:
Showkeyboard(), Hidekeyboard(), and ChangeOrientation()

User avatar
airsoftsoftwair
Posts: 2968
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair » Sun Mar 03, 2019 12:51 pm

Hmm, AFAIR ShowKeyboard() and HideKeyboard() should work already. Have you tested them?

For orientation, RapaGUI 2.0 has a new Window.Orientation [ISG] tag which you can set to "Device", "Portrait", or "Landscape". "Device" is the default orientation. This should do the trick...

PEB
Posts: 227
Joined: Sun Feb 21, 2010 1:28 am

Re: Mobile Support Functions with RapaGUI

Post by PEB » Mon Mar 04, 2019 2:57 am

I just ran some tests, and confirmed that ShowKeyboard() and HideKeyboard() do already work with RapaGUI.

PEB
Posts: 227
Joined: Sun Feb 21, 2010 1:28 am

Re: Mobile Support Functions with RapaGUI

Post by PEB » Mon Mar 04, 2019 3:03 am

(Window.Orientation also works just as you described.)

PEB
Posts: 227
Joined: Sun Feb 21, 2010 1:28 am

Re: Mobile Support Functions with RapaGUI

Post by PEB » Sun Apr 21, 2019 2:32 am

Is there a way to detect when the user changes the orientation?

Trygin to catch the OrientationChange through InstallEventHandler() doesn't seem to work with RapaGUI on Android.

User avatar
airsoftsoftwair
Posts: 2968
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair » Sun Apr 21, 2019 4:11 am

Have you tried listening to Window.Orientation?

PEB
Posts: 227
Joined: Sun Feb 21, 2010 1:28 am

Re: Mobile Support Functions with RapaGUI

Post by PEB » Sun Apr 21, 2019 5:13 am

Just tried it, and it works.
Thanks!
(I really should have thought to try that myself.)

User avatar
airsoftsoftwair
Posts: 2968
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair » Thu Apr 25, 2019 3:49 am

Off topic: Please check your PMs Paul. It's urgent :)

Post Reply