VLC Skinnable Interface : Panel Z-Order ?

About usage, announcement and development of skins for VLC
voodoomonkey
New Cone
New Cone
Posts: 4
Joined: 08 Sep 2010 01:41

VLC Skinnable Interface : Panel Z-Order ?

Postby voodoomonkey » 08 Sep 2010 01:54

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

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: VLC Skinnable Interface : Panel Z-Order ?

Postby erwan10 » 08 Sep 2010 12:15

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 :( )

Spyme
Blank Cone
Blank Cone
Posts: 60
Joined: 13 Jan 2009 16:59
VLC version: 1.1.7 Win32 / 1.2.0
Operating System: Win7 64

Re: VLC Skinnable Interface : Panel Z-Order ?

Postby Spyme » 23 Sep 2010 23:15

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.
Try the Advantage.VLC:Sky Skin.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: VLC Skinnable Interface : Panel Z-Order ?

Postby 3breadt » 27 Sep 2010 12:39

But the problem with empty controls is that VLC ignores clicks on transparent areas of controls afaik.
-- 3breadt (aka altglass)

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: VLC Skinnable Interface : Panel Z-Order ?

Postby erwan10 » 11 Dec 2010 15:34

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 !


Return to “Skins”

Who is online

Users browsing this forum: No registered users and 16 guests