Some features not supported on RapaGUI on Android!?

Discuss GUI programming with the RapaGUI plugin here
Post Reply
bitRocky
Posts: 116
Joined: Fri Nov 14, 2014 6:01 pm

Some features not supported on RapaGUI on Android!?

Post by bitRocky »

Hi,

I noticed that the "frametitle" attribute for a HGroup and ColGroup doesn't work on my Android 10 phone.
The frame is also missing for the ColGroup.

The "accept" attribute for a TextEntry object isn't supported either, I set it to "0123456789,." but all other chars are accepted too.

Is this a bug or a limitation?

On MorphOS this is working like excepted.

Code: Select all

/*
 * RapaGUI Android Test
*/
@VERSION 8,0

/*
** This script requires the RapaGUI plugin
*/
@REQUIRE "RapaGUI"

/*
** Information about this app
*/
@APPTITLE "RapaDroidTest"

@OPTIONS {Encoding = #ENCODING_ISO8859_1}

/* Handles all incoming events */
Function p_EventFunc(msg)
	Switch msg.action
	Case "RapaGUI":
		Switch msg.id
		Case "winMain":
			moai.set("winMain", "open", false);
			End(0)
		EndSwitch
	EndSwitch
EndFunction

InstallEventHandler({RapaGUI = p_EventFunc})

moai.CreateApp(
[[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
	<Window id="winMain" title="Test" notify="closeRequest;">
		<ScrollGroup>
			<VGroup>
				<HGroup>
					<button id="butSave">Save</button>
					<button id="butLoad">Load</button>
				</HGroup>
				<VGroup frame="true" frameTitle="Titel1">
					<HGroup>
						<choice id="choice" notify="active"/>
						<button id="butPlus" fixWidth="true">+</button>
						<button id="butMinus" fixWidth="true">-</button>
					</HGroup>

					<ColGroup columns="2">					
						<Label>Name  :</Label> <textentry id="strName" advanceOnCR="true" notify="text"/>
						<Label>Nummer:</Label> <textentry id="strNum" accept="0123456789,." advanceOnCR="true" notify="text"/>
					</ColGroup>
				</VGroup>
			</VGroup>
			<ColGroup columns="4" frame="true" frametitle="Titel2">
				<Label align="center">Lab1</Label>
				<Label align="center">Lab2</Label>
				<Label align="center">Lab3</Label>
				<Label align="center">Lab4</Label>
				<text align="center" id="txt1" frame="True"/>
				<text align="center" id="txt2" frame="True"/>
				<text align="center" id="txt3" frame="True"/>
				<text align="center" id="txt4" frame="True"/>
			</ColGroup>
		</ScrollGroup>
	</Window>
</application>
]]
)

EscapeQuit(true)

Repeat WaitEvent() Forever
Here is the MorphOS screenshot:
Image

And there the one from Android:
Image

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

Re: Some features not supported on RapaGUI on Android!?

Post by airsoftsoftwair »

Yes, there are some limitations on Android because some stuff is not possible with Android's native widgets (e.g. frame titles).

Textentry.Accept is supported but with some limitations. What is confusing RapaGUI here is that you pass a comma so it doesn't recognize that you want to have a numbers-only text entry widget. If you remove the comma, it should work fine, e.g. use "0123456789." or "0123456789.-" if you also need negative numbers. Then it should work.

Post Reply