Page up/down command
#1
I'm editing a skin, to be used for a touch screen. I have put a down arrow, when there's files below screen, and up arrow when there's files above screen.
I'd like to attach code to those arrows, so it makes a page up/down. Tried to find what the code would be for that, but no luck.
Could someone help out with that?
Reply
#2
It should just be pageup and pagedown action IDs (wiki).
Reply
#3
I am not particulary great at coding, I just need a few functions for this to work.. but it seemed more difficult to solve than I thought :p

Here's the code for the up and down buttons. I have been trying to figure out how everything works.
They appear as they should, but are not clickable.
Like, control type. Should that be "button", insterad of image? When I changed that to button, the images dissapears.

-----

<control type="group">
<control type="image">
<left>938</left>
<top>18</top>
<height>44</height>
<width>44</width>
<texture>buttons/moveup3.png</texture>
<visible>Container(52).HasPrevious</visible>
<onclick>PageUp(52)</onclick>
</control>
<control type="image">
<description>Down</description>
<left>938</left>
<top>1030</top>
<height>44</height>
<width>44</width>
<texture>buttons/movedown2.png</texture>
<visible>Container(52).HasNext</visible>
<onclick>PageDown(52)</onclick>
</control>
</control>
Reply
#4
I changed PageUp/Down to Control.Move(id,offset), that seems to work at least.
Reply
#5
It does work somewhat, but not perfect. Can anyone tell me.. why 50% of the times, if I press the down-button, it gets selected but will not move down (or up) unless I press it like 10 times?

For up:
<visible>Container(52).HasPrevious</visible>
<onclick>Control.Move(52,1)</onclick>

For down:
<visible>Container(52).HasNext</visible>
<onclick>Control.Move(52,1)</onclick>
Reply

Logout Mark Read Team Forum Stats Members Help
Page up/down command0