Creating Custom Fields and Managers is Easier than You Think!

Page 77

TwoColumnField.layoutLeft() • Make sure we deduct the space required by the left field’s margins • Simply call layoutChild() • Return the desired width of the entire left column width = width - marginLeft - marginRight; height = height - marginTop - marginBottom;

layoutChild( _leftField, width, height );

return marginLeft + _leftField.getWidth() + marginRight;


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.