Reset textbox to the top
#1
Hi all, please can you tell me the way to reset text box to the top on reload in dialog window?
The textbox is controlled by scrollbar and autoscroll, the problem is that it does not reset to the top on dialog close and re-open.
I believe that it's something easy that I just missed.
Below the code:
PHP Code:
<control type="textbox" id="401">
                    <
description>Plot value</description>
                    <
left>46</left>
                    <
top>370</top>
                    <
width>1390</width>
                    <
height>342</height>
                    <
font>font14_textbox</font>
                    <
align>justify</align>
                    <
textcolor>grey</textcolor>
                    <
shadowcolor>shadow</shadowcolor>
                    <
pagecontrol>62</pagecontrol>
                    <
autoscroll time="3000" delay="4000" repeat="5000">Skin.HasSetting(Enable.AutoScroll)</autoscroll>
                    <
label fallback="161">$INFO[VideoPlayer.NextPlot]</label>
                </
control>
                <
control type="scrollbar" id="62">
                    <
showonepage>true</showonepage>
                    <
left>1450</left>
                    <
top>370</top>
                    <
height>340</height>
                    <
width>8</width>
                    <
onup>PageUp(401)</onup>
                    <
ondown>PageUp(401)</ondown>
                    <
onleft>Skin.ToggleSetting(ToggleLiveTVNext)</onleft>
                    <
onright>Skin.ToggleSetting(ToggleLiveTVNext)</onright>
                    <
onleft>Control.SetFocus(61)</onleft>
                    <
onright>Control.SetFocus(61)</onright>
                    <
texturesliderbackground />
                    <
texturesliderbar colordiffuse="55ffffff" border="1">scrollbar/texturesliderbar2.png</texturesliderbar>
                    <
texturesliderbarfocus border="1">scrollbar/texturesliderbar2.png</texturesliderbarfocus>
                    <
orientation>vertical</orientation>
                </
control

Thanks for help.
Reply
#2
Any one please? Is there any more info that I need to provide?
Reply
#3
I've got the same problem here... I'd like to reset a scrolling textbox when unloading the window or dialog. Once I open the same dialog or window again, it'll continue scrolling right where it left off. Only if the same dialog is opened again for a different container/list item, the scrolling is reset. How to solve this?
Reply
#4
Afaik there is only one workaround. Try adding this to the window header:

Code:

<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
<onload>PageUp(401)</onload>
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#5
I've tried this, but without a scrollbar present, it doesn't seem to work. My plot texts don't have scrollbars and therefore this is quite frustrating... Why would textboxes scroll, even if they're not visible or focused? And why don't they reset to the top automatically when closing the dialog or window they're part of? No Seems to be absolutely logical to me that they should to exactly that.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Reset textbox to the top00