Page 1 of 1

VLC Skinnable Interface : Panel Z-Order ?

Posted: 08 Sep 2010 01:54
by voodoomonkey
Hi everybody. I got my own skin pretty much set. It displays the title of the currently playing item in the toppanel as shown on the image. The toppanel consists of a bitmap which has "move" and "double click to maximize" flags and a text item with $T. The text item however removes the flags so I cant move the window. I tried to overlay the whole text with a transparent png which again has "move" flags, but this had no effect. Can I somehow have the text and move on the toppanel ?

Image

Thanks for help

Re: VLC Skinnable Interface : Panel Z-Order ?

Posted: 08 Sep 2010 12:15
by erwan10
Can I somehow have the text and move on the toppanel ?
Only image controls can be used to move or resize a window. Text control cannot.

If you want some text, you can hardcode it in a png image. Only problem is that it can't be dynamic ( no $T :( )

Re: VLC Skinnable Interface : Panel Z-Order ?

Posted: 23 Sep 2010 23:15
by Spyme
Hope i understand the problem right.

Try to put a empty control over it with the move action. this works well on resize actions too, so you can put an empty 1-2px height control on every border.

Re: VLC Skinnable Interface : Panel Z-Order ?

Posted: 27 Sep 2010 12:39
by 3breadt
But the problem with empty controls is that VLC ignores clicks on transparent areas of controls afaik.

Re: VLC Skinnable Interface : Panel Z-Order ?

Posted: 11 Dec 2010 15:34
by erwan10
The problem described in this thread was indeed a bit annoying and actually not very difficult to remedy.

Starting with vlc1.2 (dev branch), a new attribute 'focus' has just been added to a text control.

It goes like this :

- Default value is focus="true", which means that skins still behave as they used to.
As a reminder, for a text control, focus allows user to scroll a text which happens to be longer than the control size.

- Skins developers can now explicitly set focus="false".
In this case, focus is passed to the underlying controls ignoring the text control.
When a skins developer knows that a text control won't need scrolling, focus="false" is strongly encouraged for
the following reasons :
- it doesn't meddle with the move control (problem described in this thread)
- it doesn't meddle with mouse right-click (popupmenu better availability, and less puzzlement)

I hope this helps !