Some user from the german forums like to have different sets of toolbars, depending on which style or layout he is using. As far as i know, there is only one general layout, when changing the styles. Maybe the best approach would be to have a basic layout plus different enhanced ones, containing extra tool bars like photo programs, that would be turned on or off, depending on which style is currently used (In this case that would be the image viewer style)? I ask, because i don´t use more than one style, except for toggling view modes per buttons. Any ideas?
You can make buttons which change to a style and open/close local toolbars, like this:
Prefs STYLE="Dual Horizontal"
Toolbar NAME="Image Editing" STATE=right LOCAL
Toolbar NAME="Some other toolbar" LOCAL CLOSE
Unless you only ever use one window at a time, you would only want them to open and close local toolbars (i.e. ones that only appear in one window). If you close a global toolbar then you will affect every window that it is in, which is rarely desirable.
(Whether a toolbar is global or local just depends on how it was opened. If you include the LOCAL argument in the Toolbar command then it opens a local version of the specified toolbar.)
Leo, thx, i forwarded that to the other thread.