Resizing window/panel on tab

Hi all,

I have a control panel with multiple tabs, and would like the panel to resize based on the active tab. Is there a 'resizePanel' or equivalent command that I could use in the tab function?

Arun
You can use the Resize Controls package that ships with Igor (since 6.1). For more information, execute the following command in Igor:
DisplayHelpTopic "Resize Controls Panel"


I recommend that you use the latest version of Igor (6.22A) since there have been bug fixes for this since it was first introduced. You can get the latest official version of Igor by selecting the Help->Updates menu item.

You might also check out my ACL_TabControl package on IgorExchange (http://www.igorexchange.com/project/ACL_tabcontrol). It makes using tab controls in Igor much easier (IMHO).
Adam has given you a suggestion to achieve what you want.

I would like to comment that it will probably be very jarring visually to have the panel resize when you select a new tab. It would probably be better to make the panel large enough for the largest tab and leave it at that size. Sometimes that makes a very sparsely populated tab, but I think that's better than a very jumpy window.

Perhaps I have misunderstood your design.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com