Board index » delphi » reposition Bands in TCoolBar

reposition Bands in TCoolBar

Hi,
i have the problem that i need to give the position of a Band in a TCoolBar.
Im dynamically creating Bands and the new bands always appear in a new
row...
but i dont want so because it looks very ugly.
Ive tried everything, but the bands dont have a window handle and arent
windows at
all. i think, they are simply drawn around the children, but dont change
the position if the
childrens does. (they only move out of the draw region, so that they arent
completely visible any more)

However, does anybody know how to position TCoolBands?

thanks in advance, Daniel

 

Re:reposition Bands in TCoolBar


Exactly the same way you do at design time. If you open CoolBands editor,
select one of coolbands, you will see all relevant properties (Break,
Width,....).

--
Robert
---------
"There are only 10 kinds of people in the world --
   Those who understand binary, and those who don't."

Quote
Daniel Albuschat wrote in message ...
>Hi,
>i have the problem that i need to give the position of a Band in a
TCoolBar.
>Im dynamically creating Bands and the new bands always appear in a new
>row...
>but i dont want so because it looks very ugly.
>Ive tried everything, but the bands dont have a window handle and arent
>windows at
>all. i think, they are simply drawn around the children, but dont change
>the position if the
>childrens does. (they only move out of the draw region, so that they
arent
>completely visible any more)

>However, does anybody know how to position TCoolBands?

>thanks in advance, Daniel

Re:reposition Bands in TCoolBar


Exactly the same way you do at design time. If you open CoolBands editor,
select one of coolbands, you will see all relevant properties (Break,
Width,....).

--
Robert
---------
"There are only 10 kinds of people in the world --
   Those who understand binary, and those who don't."

Quote
Daniel Albuschat wrote in message ...
>Hi,
>i have the problem that i need to give the position of a Band in a
TCoolBar.
>Im dynamically creating Bands and the new bands always appear in a new
>row...
>but i dont want so because it looks very ugly.
>Ive tried everything, but the bands dont have a window handle and arent
>windows at
>all. i think, they are simply drawn around the children, but dont change
>the position if the
>childrens does. (they only move out of the draw region, so that they
arent
>completely visible any more)

>However, does anybody know how to position TCoolBands?

>thanks in advance, Daniel

Re:reposition Bands in TCoolBar


First of all: Thanks! that is, what i was looking for.
But it does not work, as i had expected:
if i add the ToolBar (and by this, create a new band), the band is
lokated at the very right. i mean, i only see the 2 lines for re-positioning
it
by hand.
but what i want to, is that it is next to the band that already exists.

here, what i am exactly doing:

i have a TCoolBar with a TToolBar in it at design time.
now i have a mdi child dialog that puts it own TToolBar into
this TCoolBar ( by TToolBarInMDI-Child.Parent := TCoolBar ).
and now, the ToolBar is not visible. :(
playing around with the fixed-size property didnt solve the problem.

"Robert Cerny" <robert.qwe.ce...@neosys.xrs.qwe.si> schrieb im Newsbeitrag
news:aofgmt.38o.1@neosys.xrs.si...

Quote
> Exactly the same way you do at design time. If you open CoolBands editor,
> select one of coolbands, you will see all relevant properties (Break,
> Width,....).

> --
> Robert
> ---------
> "There are only 10 kinds of people in the world --
>    Those who understand binary, and those who don't."

> Daniel Albuschat wrote in message ...
> >Hi,
> >i have the problem that i need to give the position of a Band in a
> TCoolBar.
> >Im dynamically creating Bands and the new bands always appear in a new
> >row...
> >but i dont want so because it looks very ugly.
> >Ive tried everything, but the bands dont have a window handle and
arent
> >windows at
> >all. i think, they are simply drawn around the children, but dont change
> >the position if the
> >childrens does. (they only move out of the draw region, so that they
> arent
> >completely visible any more)

> >However, does anybody know how to position TCoolBands?

> >thanks in advance, Daniel

Re:reposition Bands in TCoolBar


Hi,

so.. I have set the minwidth property.
Now, if i put the toolbar into the coolbar, it is fully visible, but
right-aligned.
if i resize the dialog (by hand), it sets itself next to the
other toolbar as i want it to do... is there another way to
"refresh" the position, like it is done on resizing?

thanks, Daniel

"Daniel Albuschat" <dan...@brot.t0c.de> schrieb im Newsbeitrag
news:aogf2p$k17$07$1@news.t-online.com...

Quote
> First of all: Thanks! that is, what i was looking for.
> But it does not work, as i had expected:
> if i add the ToolBar (and by this, create a new band), the band is
> lokated at the very right. i mean, i only see the 2 lines for
re-positioning
> it
> by hand.
> but what i want to, is that it is next to the band that already exists.

> here, what i am exactly doing:

> i have a TCoolBar with a TToolBar in it at design time.
> now i have a mdi child dialog that puts it own TToolBar into
> this TCoolBar ( by TToolBarInMDI-Child.Parent := TCoolBar ).
> and now, the ToolBar is not visible. :(
> playing around with the fixed-size property didnt solve the problem.

> "Robert Cerny" <robert.qwe.ce...@neosys.xrs.qwe.si> schrieb im Newsbeitrag
> news:aofgmt.38o.1@neosys.xrs.si...
> > Exactly the same way you do at design time. If you open CoolBands
editor,
> > select one of coolbands, you will see all relevant properties (Break,
> > Width,....).

> > --
> > Robert
> > ---------
> > "There are only 10 kinds of people in the world --
> >    Those who understand binary, and those who don't."

> > Daniel Albuschat wrote in message ...
> > >Hi,
> > >i have the problem that i need to give the position of a Band in a
> > TCoolBar.
> > >Im dynamically creating Bands and the new bands always appear in a new
> > >row...
> > >but i dont want so because it looks very ugly.
> > >Ive tried everything, but the bands dont have a window handle and
> arent
> > >windows at
> > >all. i think, they are simply drawn around the children, but dont
change
> > >the position if the
> > >childrens does. (they only move out of the draw region, so that they
> > arent
> > >completely visible any more)

> > >However, does anybody know how to position TCoolBands?

> > >thanks in advance, Daniel

Other Threads