According to the PB9 documentation the toolbar parameter may be placed in one of the following four locations:
%CCS_TOP
The ToolBar is placed at the top of the dialog.
%CCS_BOTTOM
The ToolBar is placed at the bottom of the dialog.
%CCS_LEFT
The ToolBar is placed on the left side of the dialog.
%CCS_RIGHT
The ToolBar is placed on the right side of the dialog.
I tried each of the position parameters with the following results:
%CCS_TOP = Worked correctly.
%CCS_BOTTOM = Toolbar disappeared.
Expected: Toolbar to move to the bottom of the dialog.
%CCS_LEFT = All icons save the home icon vanished.
Expected: Toolbar icons to be presented vertically on the left side of the dialog.
%CCS_RIGHT = The home icon moved to the upper right corner, all other icons vanished.
Expected: Toolbar icons to be presented vertically on the right side of the dialog.
I changed only the default %CCS_TOP parameter. Are there additional parameters that have to be changed in order to relocate the toolbar?
%CCS_TOP
The ToolBar is placed at the top of the dialog.
%CCS_BOTTOM
The ToolBar is placed at the bottom of the dialog.
%CCS_LEFT
The ToolBar is placed on the left side of the dialog.
%CCS_RIGHT
The ToolBar is placed on the right side of the dialog.
Code:
CONTROL ADD TOOLBAR, hDlg, %ID_TOOLBAR, "", 0, 0, 0, 0, %WS_VISIBLE OR %WS_TABSTOP OR [B]%CCS_TOP [/B]OR %TBSTYLE_FLAT OR %CCS_NODIVIDER, 0
%CCS_TOP = Worked correctly.
%CCS_BOTTOM = Toolbar disappeared.

Expected: Toolbar to move to the bottom of the dialog.
%CCS_LEFT = All icons save the home icon vanished.

Expected: Toolbar icons to be presented vertically on the left side of the dialog.
%CCS_RIGHT = The home icon moved to the upper right corner, all other icons vanished.

Expected: Toolbar icons to be presented vertically on the right side of the dialog.
I changed only the default %CCS_TOP parameter. Are there additional parameters that have to be changed in order to relocate the toolbar?
Comment