ControlTextBox - how to allow page browsing
#1
Question 
Hello,

I'm trying to fix a little bug in XBMCScripts 1.7, that
prevents the browsing of multiple pages in the description
of an item.

From what I understood, reading the code, when you
create a text box via

self.textbox = xbmcgui.ControlTextBox(....),

it displays automatically the two little buttons (up/down)
inside the created control, and to navigate to these
buttons, you just need to set focus to the textbox:

self.setFocus(self.textbox)


==> Am I correct ?



Problem is when you are on either of those two buttons, and
try to push them (when the text is more than one page), the
text jumps to next page and goes back in a fraction of second,
as if there was a conflict with an onAction or onControl
instruction.



==> My question, is how can I allow those two buttons to
act normally ? Is there a necessary instruction to put
in the onControl method ?



Thank you in advance for your help !
(I hope my message is not too confusing)


Best regards
J.B.
Reply
#2
Smile 
Just found the solution.

There were two little errors: an unsufficient conditional test, and the reset() call that doesn't seem to work for
a controltextbox object.

For who may be interested, here is the fixed file "xbmcscripts_main.py" for version 1.7 (it goes in the
"lib" subfolder of xbmcscripts).

download link

Changes are lines 237-242


Best regards
JB.
Reply

Logout Mark Read Team Forum Stats Members Help
ControlTextBox - how to allow page browsing0