Posts: 1,769
Threads: 410
Joined: Feb 2003
is there a way to make the mov property use fractional coordinates?
i have a toolbar that i would love to have it sit right next to the minimize button on the window tittle no matter how much i change the window size.
Posts: 12,142
Threads: 143
Joined: Dec 2002
If you drag the toolbar to the top-right window corner, its coordinates become relative to that corner. You can also uncheck "Auto select" in toolbar right click menu.
To set fractional coordinates, use a function or {code} with /mov. Example:
;/mov {GetWinXY val(_command) 0 0 _i; ret 0.1*_i} 0
Posts: 1,769
Threads: 410
Joined: Feb 2003
wow...that's nice code there!
the best way to set the position so it moves with the min/max/close buttons is set the flag '0x100' and drag it over there then restart the window (for triggering purposes)....that'll make a blog post somewhere :wink:
thanks!