View Single Post
Old 20th September 2016, 16:27   #16
Quinto Black CT Developer
Join Date: Sep 2016
Posts: 580
Originally Posted by ariszlo View Post
I wonder how you are going to do that. Will it be an invisible layer partially covering the list area that will become visible when you hover the mouse over it and grab it?
Hello Ariszló,

It will be a pleasure to answer your question.

Let's take the Playlist Editor for this demonstration.

Generally speaking every container window has three layers. Each one of them is placed within a <groupdef>. As you can see on that screenshot, we have ...

1) standard background layer
2) frame layer (in this case - NoFrame)
3) component layer (here Playlist plus AlbumCover)

In order to be able to switch between three frame layer groups (NoFrame -> Frame -> PlaybackFrame) you need a script, in which you specify which group should be hidden/shown AND (very important!) which size the component layer should have.

Hence you will need a different size while showing the PlaybackFrame and you will need another one, when NoFrame group is active. The trick here is not to make a 1-pixel-bitmap-file (which would be our frame) but to manage to align both layers (frame and component) so just 1 pixel is left on the left, bottom and right side.

Is this clear?

You also cannot get rid completely of the frame layer (=cover it to 100% with component layer) because you would lose the ability of resizing your container window. You still need at least 1 pixel so the standard mouse pointer can change into the "double-headed-resize-arrow" while hovering over the bottom right corner.

And this is where it could get a little bit tricky, as I already mentioned.


Is it O.K. like this?

Attached Thumbnails
Click image for larger version

Name:	Layers.PNG
Views:	21438
Size:	439.7 KB
ID:	52641   Click image for larger version

Name:	MediaLibrary.bmp
Views:	21715
Size:	1.17 MB
ID:	52643  
PeterK. is offline   Reply With Quote