Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Color Themes and Icon Sets

Reply
 
Thread Tools Display Modes
Old 04-25-2013, 07:51 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
Default Tip: Keeping buttons in same relative positions

Often, in the TCP and MCP layouts, I want to keep a set of buttons in the same relative positions while being able to move all of them around.

I define an anchor-point and tie the buttons to that position. As in:
Code:
set mcp_buttons_anchor [54 105]

set mcp.phase + mcp_buttons_anchor h>257 [0 -19 20 20 0 0 0 0] [0]
set mcp.env    + mcp_buttons_anchor h>257 [0 01 20 20 0 0 0 0] h>210 [0 -19 20 20 0 0 0 0] [0]
set mcp.fx       + mcp_buttons_anchor h>257 [0 18 20 20 0 0 0 0] h>210 [0 -2 20 20 0 0 0 0] [0]
set mcp.fxbyp  + mcp_buttons_anchor h>257 [0 38 20 12 0 0 0 0] h>210 [0 18 20 12 0 0 0 0] [0]
This can be improved to:

Code:
set top_left [0 0 0 0 0 0 0 0]
set mcp_buttons_anchor + top_left [54 105] 

set mcp.phase + mcp_buttons_anchor h>257 [0 -19 20 20] [0]
set mcp.env    + mcp_buttons_anchor h>257 [0 01 20 20] h>210 [0 -19 20 20] [0]
set mcp.fx       + mcp_buttons_anchor h>257 [0 18 20 20] h>210 [0 -2 20 20] [0]
set mcp.fxbyp  + mcp_buttons_anchor h>257 [0 38 20 12] h>210 [0 18 20 12] [0]
Then all I need to do is change the anchor-point
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.