Kodi Community Forum

Full Version: ControlTextBox Stage beavior
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
This Code Cant be Inserted into the Forum, it seems to think this Python is an Attack.
So i Post a Link to the Code

https://l0re.com/default.py

The First Part (ControlLabel Does what it sould doe show "text" above
https://l0re.com/kodi1.png

The Second Part (The ControlTextBox) done Same Coordinates But a TextBox, do somthing very Stange Happens

All Text from All Plugin get Exchange with Text .instead a new Textbox on top
https://l0re.com/kodi2.png

What am i doing wrong?
It's a known bug (at least for me Laugh): if you try to set Control's properties before you add it to a Window container, a lot of strange things happen, including screwing all text labels in the current skin.
Thanks alot . That helped
2 L0RE

I really don't like being pestered via PMs with questions that are not "personal" per se but are of general technical nature that can be interesting to general audience (even to a small part of it). We are on a technical forum, after all.

As for your question in the PM, for new Window and WindowDialog instances the coordinate grid resolution is always 1280x720 regardless of your display resolution or skin resolution. So you need to size/position your controls accordingly.
For existing Window instances (those that are instantiated by providing a window ID to the class constructor) there is absolutely no way to obtain the current actual or "skin" resolution which means that there is no way to precisely position your Controls if you are attaching them to existing Kodi windows. The only more or less reliable variant is the top left corner of the screen but it has its limitations.