Refer to the code below for an example for how to calculate the dimensions of a panel's title box:
>> drawnow
>> width = app.ExamplePanel.Position(3);
>> height = app.ExamplePanel.Position(4) - app.ExamplePanel.InnerPosition(4);
Be aware that the view must be updated with a call to 'drawnow' prior to accessing a panel's 'InnerPosition' property. Otherwise, the value of 'InnerPosition' may be incorrect.
Best Answer