tags:

views:

252

answers:

3

At the top of the Delphi IDE is a toolbar with buttons grouped together on little movable trays. I'm trying to implement something like that, but not having much success. I've found TToolbar, but I can't figure out how to set up the movable trays. Does anyone know where I could find a simple demo app that shows how it's done?

+2  A: 
RRUZ
I looked at it. Unfortunately, it's GPL-licensed, which isn't compatible with a bunch of other code I'm using, such as the JVCL, which is MPL-licensed.
Mason Wheeler
Toolbar2000 is not free for commercial usage
Hugues Van Landeghem
I'm not even trying to use this for commercial usage. This is for an open-source project. I'm just a little mystified that the author chose for his open-source licensing option a license that's incompatible with almost all the rest of the Delphi open-source code out there. (How many other Delphi GPL libraries do you know of?)
Mason Wheeler
ToolBar2000 is GPL since that is the only component license that requires that your application is also open source. I am sure he licensed it that way so you would be motivated to register. Although it closes out all other types of open source projects.
Jim McKeeth
A: 

You can put your toolbars in a standard VCL TCoolBar or TControlBar. AFAIR this can get a bit messy sometimes. For an example, have a look at the CoolStuff demo, as skamradt suggested.

Ulrich Gerhardt
All right. The problem, though, isn't choosing what control to use so much as figuring out how to set it up. You know where I could find some examples?
Mason Wheeler
+3  A: 

I believe the webbrows.dpr located in the cool stuff demo directory (and included in all installs of Delphi since around Delphi 6 or so) contains just the demo you are looking for. This gives you the effect your looking for using only CodeGear supplied components. You add multiple bands and set the fixed size to false for the bands you want to allow to be movable.

skamradt