Centering a window
#1
Hi,

Firstly apologies if this is a stupid question, did some searching but couldn't find anyhing.

Ok, in my mod the context menu appears wherever on the screen dependant on where focus is I guess. I would like to center it in the screen. Is there a simple way in the window to center it regardless where it is called from, it currently has left and top as 0 if that helps?

Thanks

Mike.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
Read the wiki: Window Structure (wiki)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply

Logout Mark Read Team Forum Stats Members Help
Centering a window0