Arno:
A common problem that programmer's have with the LabWindows/CVI Custom Toolbar Control is that, if the panel is set to scale contents on resize, then the toolbar can grow to a huge size when the window is maximized. Commonly a programmer will want this behavior for the controls on this panel, but he'll want his toolbar to keep it's original size, like the menu bars do.
You can achieve this by setting an attribute (TOOLBAR_ATTR_AUTO_SCALING) in the Toolbar Instrument Driver with the Toolbar_SetAttribute() function. Incidentally, there's a number of other attributes, like, TOOLBAR_ATTR_STYLE, TOOLBAR_ATTR_SCALING_FACTOR, TOOLBAR_ATTR_LOCK_TOP_WHEN_SCALING, TOOLBAR_ATTR_LOCK_LEFT_WHEN_SCALING, TOOLBAR_ATTR_MIN_HEIGHT, and TOOLBAR_ATTR_MAX_HEIGHT that you might b
e interested in. You can read about what each of these attributes do by right-clicking on the "Toolbar Attribute" argument in the Toolbar_SetAttribute() function panel.
Good Luck,
Chris Wood
Applications Engineer
National Instruments