OnMouseDown position matches not the control geometrie

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

OnMouseDown position matches not the control geometrie

Post by Andreas Weichert » Thu May 09, 2013 4:38 am

If I make a panel with f.e. Panel.Common.Width=100 and I click near the right edge of the panel I get not the position 100.
In my case it is smaller near 80. But I need the exact position.
The reason is, I think, the custom size scaling of the GUI (skins etc.). If found a scaling factor so that it works for the current skin.

Because I want to make a genearal plugin that work ever (for others user) I need this factor.

Can I get this factor from a SDB object ?
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.