I can create a working ToolBar, but I can't seem to delete any of the buttons.
I am using:
ControlCMD (d1,D1_TOOLBAR,TB_HIDEBUTTON,0)
for button zero, the first one, but nothing happens.
sendmessage(getcontrolhandle(d1,D1_TOOLBAR),TB_HIDEBUTTON,8,1)
The '8' identifies the 8th button(zero based)
The following '1' says hide it.
The ControlCMD function only works for a small predefined set of toolbar messages.
Obviously TB_HIDEBUTTON wasn't one of them.
LarryMc
I'll check it out.
Plug: I used the Toolbar Painter in the new IDE to solve the problem. Nice piece of work.