• Welcome to PlanetSquires Forums.
 

Toolbar Query

Started by Anonymous, April 07, 2004, 08:10:03 PM

Previous topic - Next topic

Anonymous

This is probably a question where I will receive the dumb-ass award of the evening, but as I don't know the answer I'd better ask :)

I've placed a toolbar on a dialog. And figured out how to add a couple of buttons. I've even managed to define a response in the WM_COMMAND code to respond to the toolbar buttons (oo-err missus!).

But I'm confused about the checkbox marked "Generate code for this Toolbar" which is on the Toolbar and Buttons tab of the Toolbar editor dialog. What exactly does this checkbox do, because for the life of me I can't see any code being generated.....

Andrew

TechSupport

Quote from: "kazmax"But I'm confused about the checkbox marked "Generate code for this Toolbar" which is on the Toolbar and Buttons tab of the Toolbar editor dialog. What exactly does this checkbox do, because for the life of me I can't see any code being generated.....

FireFly can handle up to 10 toolbars per rebar. That checkbox simply tells FireFly which of the 10 toolbars to actually generate code for when the EXE is produced. If you don't check the box then the toolbar will not be created when you generate the EXE.

Anonymous

Quote from: "TechSupport"FireFly can handle up to 10 toolbars per rebar. That checkbox simply tells FireFly which of the 10 toolbars to actually generate code for when the EXE is produced. If you don't check the box then the toolbar will not be created when you generate the EXE.

Okay - the point I'm probably missing then is that this code generation isn't the event model which the toolbar uses, but is the creation code to put the toolbar on the form.

I hope I explained that well enough!

Andrew