Slider.min is always 0 on Android

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

Slider.min is always 0 on Android

Post by bitRocky »

Setting Slider.min doesn't seem to work on Android (Hollywood Player 10.0).

It also complains about MouseLeft notifications.
The History says MouseLeft/Right/Middle/Move was added in v2.2 of RapaGUI on 24-Aug-24.
Hollywood Player says RapaGUI (which is built in Androids HollywoodPlayer) is v2.2 but Buid Date is 22.01.22
Is v2.2 an older v2.2 than on Amiga systems?
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Slider.min is always 0 on Android

Post by plouf »

there is a newer version 2023 at least, have you download it form hollywood-mal.com downloads section ?
Christos
bitRocky
Posts: 148
Joined: Fri Nov 14, 2014 6:01 pm

Re: Slider.min is always 0 on Android

Post by bitRocky »

yes, I re-download it to be sure.
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Slider.min is always 0 on Android

Post by plouf »

where do you this date, in player top right three dot "about ?
mine says 25.02.23, is this -> https://www.hollywood-mal.com/download/ ... -arm64.apk , what you download?

do you a test applet to try ?
Christos
bitRocky
Posts: 148
Joined: Fri Nov 14, 2014 6:01 pm

Re: Slider.min is always 0 on Android

Post by bitRocky »

Ok, the Hollywood Player says 2023 but in my applet when I open About RapaGUI it says 2022!?

Why is that?
bitRocky
Posts: 148
Joined: Fri Nov 14, 2014 6:01 pm

Re: Slider.min is always 0 on Android

Post by bitRocky »

Here is a example code:

Code: Select all

@REQUIRE "RapaGUI"

@APPTITLE "RapaSlider"

/* Handles all incoming events */
Function p_EventFunc(msg)
	Switch msg.action
	Case "RapaGUI":
		Switch msg.id
		Case "winMain":
			Switch msg.attribute
				Case "CloseRequest":
					moai.set("winMain", "open", false);
					End(0)
			EndSwitch
		Case "sliMaxCols":
			moai.set("txt", "Text", "MaxCols = "..msg.TriggerValue..", min/max = "..moai.get(msg.id, "min").."/"..moai.get(msg.id, "max"))
		Case "sliMaxRecent":
			moai.set("txt", "Text", "MaxRecent = "..msg.TriggerValue..", min/max = "..moai.get(msg.id, "min").."/"..moai.get(msg.id, "max"))
		EndSwitch
	EndSwitch
EndFunction

InstallEventHandler({RapaGUI = p_EventFunc})

moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
	<Window id="winMain" title="RapaTest" notify="closeRequest">
		<VGroup id="grpMain">
			<VGroup Frame="True" FrameTitle="GUI">
				<ColGroup Columns="2" Frame="True">
					<Label>Columns in _VideoList:</Label>
					<Slider id="sliMaxCols" min="3" max="10" level="5" notify="level"/>
					<Label>Ma_x. recent searches:</Label>
					<Slider id="sliMaxRecent" min="3" max="20" level="10" notify="level"/>
				</ColGroup>
				<Text id="txt"/>
			</VGroup>
		</VGroup>
	</Window>
</application>
]])

EscapeQuit(true)

Repeat WaitEvent() Forever
Compiled as Applet with this command:

Code: Select all

h:System/Hollywood -compile RapaSlider.hwa -exetype "Applet" -compress RapaSlider.hws
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Slider.min is always 0 on Android

Post by plouf »

works here, i slide slider and number in slider changes , also number in textfield "maxcols" etc react following
is something else i miss ?
i create this applet (vai windows thought) -> https://limewire.com/d/RbiVz#rQC2Wqx8XF

you can try also "-exectype android" ..

do you have hollywood 10 or older ?
Christos
bitRocky
Posts: 148
Joined: Fri Nov 14, 2014 6:01 pm

Re: Slider.min is always 0 on Android

Post by bitRocky »

The problem is that I set "min" attribute of the sliders to 3 when creating the GUI.

But when changing the current value of the slider it allows me to change it 0!

Could you only change the min value to 3?
Also getting the min attribute says 0.

I have Hollywood v9.

With your slider.hwa I also can change the min value to 0 on my android phone with HollywoodPlayer v10 although I have set it to 3 in the XML Definition.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Slider.min is always 0 on Android

Post by airsoftsoftwair »

Looks like this is currently unimplemented on Android. Actually, the code is there but it's commented out because setting and getting minimum slider levels is a feature that was introduced in Android 8 and RapaGUI is designed to also work on older Android versions. I'll try to activate it for newer Android versions in the next release.
Post Reply