Mobile Support Functions with RapaGUI

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

Mobile Support Functions with RapaGUI

Post by PEB »

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: 4246
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair »

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: 523
Joined: Sun Feb 21, 2010 1:28 am

Re: Mobile Support Functions with RapaGUI

Post by PEB »

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

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

Re: Mobile Support Functions with RapaGUI

Post by PEB »

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

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

Re: Mobile Support Functions with RapaGUI

Post by PEB »

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: 4246
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair »

Have you tried listening to Window.Orientation?

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

Re: Mobile Support Functions with RapaGUI

Post by PEB »

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

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

Re: Mobile Support Functions with RapaGUI

Post by airsoftsoftwair »

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

Post Reply