Page 1 of 1

Slider.min is always 0 on Android

Posted: Tue May 27, 2025 4:35 pm
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?

Re: Slider.min is always 0 on Android

Posted: Tue May 27, 2025 5:02 pm
by plouf
there is a newer version 2023 at least, have you download it form hollywood-mal.com downloads section ?

Re: Slider.min is always 0 on Android

Posted: Tue May 27, 2025 5:22 pm
by bitRocky
yes, I re-download it to be sure.

Re: Slider.min is always 0 on Android

Posted: Tue May 27, 2025 5:38 pm
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 ?

Re: Slider.min is always 0 on Android

Posted: Tue May 27, 2025 8:33 pm
by bitRocky
Ok, the Hollywood Player says 2023 but in my applet when I open About RapaGUI it says 2022!?

Why is that?

Re: Slider.min is always 0 on Android

Posted: Wed May 28, 2025 6:05 pm
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

Re: Slider.min is always 0 on Android

Posted: Wed May 28, 2025 11:53 pm
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 ?

Re: Slider.min is always 0 on Android

Posted: Thu May 29, 2025 11:31 am
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.

Re: Slider.min is always 0 on Android

Posted: Thu Jun 05, 2025 7:33 pm
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.