PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Toolbar Query  (Read 568 times)

Anonymous

  • Guest
Toolbar Query
« on: April 07, 2004, 08:10:03 PM »

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
Logged

TechSupport

  • Guest
Re: Toolbar Query
« Reply #1 on: April 07, 2004, 09:35:59 PM »

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.
Logged

Anonymous

  • Guest
Re: Toolbar Query
« Reply #2 on: April 08, 2004, 12:32:19 PM »

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
Logged