PDA

View Full Version : scrollbar for textbox in script?


kc85/3
2008-09-16, 16:16
Hi,
I'm trying to learn about XBMC scripting, but it's hard because of the distributed portions of information and the different concepts ("plain" xbmcgui or guibuilder.py or windowxml) for the gui... However, what would be the best way to have a textbox with a scrollbar whithin a script?

regards KC85/3

Gamester17
2008-09-16, 16:30
Maybe if you explain what exactly you plan on archiving, the big picture.

...like are you making a plugin or a script, what will be its purpose? ???

kc85/3
2008-09-16, 21:51
to learn I'd like to create a script to display text files loaded from the web. In general I know what to do but I'm unsure which gui concept (guibuilder, windowxml,...) to use and I don't like the spin buttons for textboxes;) so I'd prefere a scrollbar whithin the script...

regards

jmarshall
2008-09-17, 00:05
If you want a scrollbar, then winxml is the only way to do it, so that solves your dilemma :)

Cheers,
Jonathan

BigBellyBilly
2008-10-01, 12:19
You really need to be aiming for your script to be skin based, using WindowXML.

If you look at 'T3CH Upgrader' script you will find a 'text displayer' skin that's now been adapted for over a dozen xbmc skins, called 'script-bbb-textbox.xml' (with scrollbars).

An alternative ready made XML that comes with all skins is 'DialogScriptInfo.xml', which displays text from script output. Unfortunately it always shows its own hardcoded title ($LOCALIZE[262] meaning 'Script Info') - If there's a way of overridding that xbmc language string (then restoring it) then it would be perfect for the job?

BBB

Nuka1195
2008-10-01, 16:13
if that label has a unique id, just set it inside the script after you load it.

BigBellyBilly
2008-10-01, 16:54
unfortunately, the control doesn't have an ID :(( so I was wondering if theres a builtin that allows you to change a string ID ?