Entra:     


Forum: VirtualDJ Skins

Topic: Can element be made immovable?
I'm making a skin which spans three monitors, one touchscreen either side of my laptop. I've created two windows for left and right decks so they can go on each touchscreen. All is working as expected but its frustrating when you touch the window where it has no element as it drags the window across the screen.
Is there a way of fixing the window so it doesn't move once opened?
Thanks :)
 

Inviato 6 days ago @ 5:15 pm
you can define a <grabzone> to a very small 1x1 pixel area.
But if those are <window>s then how will the user be able to move and place them to the correct position ?
One way i can think of is 2 x <grabzone> with visibility based on a LOCK button, one large when LOCK is disabled and one 1x1 pixel when enabled.
 

Hi DJdad thank you for your reply! Unfortunately I didn't see your solution in time...

I have managed to sort this issue by creating a visual element for the window background overlaid with a large (no action) button covering all but the top 20 px of the window. This gives me an invisible grab zone, and a window which doesn't move.

Im really excited about my new skin idea, and will keep you updated on its progress! :)