IonicWind Software

IWBasic => GUI Central => Topic started by: Bruce Peaslee on April 22, 2012, 05:25:07 PM

Title: Deleting Toolbar Button
Post by: Bruce Peaslee on April 22, 2012, 05:25:07 PM
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.
Title: Re: Deleting Toolbar Button
Post by: LarryMc on April 22, 2012, 06:13:10 PM
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
Title: Re: Deleting Toolbar Button
Post by: Bruce Peaslee on April 22, 2012, 06:36:07 PM
I'll check it out.

Plug: I used the Toolbar Painter in the new IDE to solve the problem. Nice piece of work.