REVO2700Proportional Card Layout@}O 4aProportional Card Layout  UTahoma cREVGeneralbreakpointconditions breakpointsbreakpointstatesstackfileversion2.7AlreadyHiddenfalse Pon layoutCard put the width of this stack into tWidth put the height of this stack into tHeight repeat with x = 1 to the number of controls of this card put the name of control x of this card into tControl put the cWidth of tControl into tWidthPercentage put the cHeight of tControl into tHeightPercentage put the cTopMargin of tControl into tTopMargin put the cLeftMargin of tControl into tLeftMargin put the cBottomMargin of tControl into tBottomMargin put the cRightMargin of tControl into tRightMargin if tWidthPercentage is not empty then set the width of tControl to (tWidthPercentage * tWidth) end if if tHeightPercentage is not empty then set the height of tControl to (tHeightPercentage * tHeight) end if if tTopMargin is not empty then set the top of tControl to (tTopMargin * tHeight) end if if tLeftMargin is not empty then set the left of tControl to (tLeftMargin * tWidth) end if if tBottomMargin is not empty then set the bottom of tControl to ((1 - tBottomMargin) * tHeight) end if if tRightMargin is not empty then set the right of tControl to ((1 - tRightMargin) * tWidth) end if end repeat end layoutCard on resizeStack layoutCard end resizeStack O cREVGeneralscripteditorvscroll0scripteditorselection0 Button A`R cLeftMargin0.02 cTopMargin0.022 cREVGeneral revUniqueID 1304954213653 Field)`(ADcWidth0.96cHeight cLeftMargin0.02 cTopMargin0.1 cREVGeneral revUniqueID 1304954217553  /You can set up to 6 properties on each control T- cWidthPercentage (width of the control as a percentage of the width of the stack) V- cHeightPercentage (height of the control as a percentage of the width of the stack) E- cTopMargin (top margin as a percentage of the height of the stack) F- cLeftMargin (left margin as a percentage of the width of the stack) K- cBottomMargin (bottom margin as a percentage of the height of the stack) H- cRightMargin (right margin as a percentage of the width of the stack) Once these properties are set resize the stack and the controls will be automatically laid out as per the custom properties. The code is in the card script and these 3 controls are in the stack as examples.  `@6)B Button B`qRcBottomMargin0.02 cRightMargin0.024 cREVGeneral revUniqueID 1304954238352 revOnline | RunRev