setVisible(True) not working if visible set to false in window xml
#1
Hi,

I have a window xml definition where I have an image control that has the visible property set to false. However, if in the code of my script I call setVisible(True) on that control, it doesn't get visible on the screen...

Any idea why this behavior?

Thanks
Reply
#2
Anyone on this?
Reply
#3
Yeah, I've got the same issue as well. My work around is to set it to true in the xml and in the constructor, I set it to false.
I think it's a bug. (Maybe what is set to false in the xml isn't added to the parent control render list)
Reply
#4
...i ve got the same issue here,...Confused

i can set to false but not to true,...

is it a "bug",...??

any news about it,....?

fordo 12 rc 3
Reply
#5
No, this is not a bug. Setting things hidden has priority. So if skin sets it hidden, not much you can do about it from the code side.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
you're using the windowXML class?
If so set your default visibility for the control in the onInit() function.
Reply
#7
(2013-01-26, 01:36)Kr0nZ Wrote: you're using the windowXML class?
If so set your default visibility for the control in the onInit() function.

thx for your intervention,... Wink

it s works perfectly,...
Reply

Logout Mark Read Team Forum Stats Members Help
setVisible(True) not working if visible set to false in window xml0