View Single Post
Old 06-18-2017, 06:27 AM   #69
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

Quote:
Originally Posted by EvilDragon View Post
By the way, just reading the ReaScript API... says this for gfx.dock:

"If wx-wh specified, additional values will be returned with the undocked window position/size"

Does this mean that gfx.dock can return the current undocked position of the script window? If so, then perhaps those values can be stored (much like how you said that checkbox for remove redundant events can be remembered), then THAT used for positioning the script GUI via gfx.init?
Wow, thanks! This actually works! I will incorporate it into the next update, and also into some of the other scripts.

Other functions such as gfx.clienttoscreen only return the coordinates of the window interior, ignoring the window decorations/borders, but gfx.dock returns the coordinates of the window *with* its border, which can then be used by gfx.init.
juliansader is offline   Reply With Quote