Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Speedbutton display order - how to control?

149 views
Skip to first unread message

Jeff Jones

unread,
Sep 23, 1996, 3:00:00 AM9/23/96
to

I have a toolbar on a panel made up of about 20 speedbuttons.
These buttons have been rearranged during design, so now they
no longer display from left to right, but in the order they
were designed (speedbutton1, then speedbutton2, etc). When the
form is displayed, the population of the toolbar looks like a
defrag routine, with buttons popping up in a 'random' order.
I tried making them invisible by default, then setting each
button to visible in the desired order during the formshow routine,
but this did not change the display order.
Any ideas?

Jeff Jones

David R. Michael

unread,
Sep 23, 1996, 3:00:00 AM9/23/96
to

Jeff Jones <TS...@cris.com> wrote:

>Jeff Jones

Right-click on the form and choose "Creation Order."
Arrange to suit.

David R. Michael
dav...@busprod.com
www.busprod.com/davidrm


Ray Lischner

unread,
Sep 23, 1996, 3:00:00 AM9/23/96
to

On Mon, 23 Sep 1996 09:12:21 -0700, Jeff Jones <TS...@cris.com> wrote:

>I have a toolbar on a panel made up of about 20 speedbuttons.
>These buttons have been rearranged during design, so now they
>no longer display from left to right, but in the order they
>were designed (speedbutton1, then speedbutton2, etc). When the
>form is displayed, the population of the toolbar looks like a
>defrag routine, with buttons popping up in a 'random' order.
> I tried making them invisible by default, then setting each
>button to visible in the desired order during the formshow routine,
>but this did not change the display order.

You can change the display order in the form editor by choosing Bring
to Front or Send to Back. When you need to make many changes at once,
it might be easier to edit the form as text, and then rearrange the
speed buttons textually.
--
Ray Lischner, Tempest Software, Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)

t...@iguana.ruralnet.net

unread,
Sep 24, 1996, 3:00:00 AM9/24/96
to

t...@iguana.ruralnet.net (t...@iguana.ruralnet.net) wrote:

>>I have a toolbar on a panel made up of about 20 speedbuttons.
>>These buttons have been rearranged during design, so now they
>>no longer display from left to right, but in the order they
>>were designed (speedbutton1, then speedbutton2, etc). When the
>>form is displayed, the population of the toolbar looks like a
>>defrag routine, with buttons popping up in a 'random' order.
>> I tried making them invisible by default, then setting each
>>button to visible in the desired order during the formshow routine,
>>but this did not change the display order.

>> Any ideas?

>It's much easier than what you were trying above...
>Simply reset the tab property for each button in the object
>inspector. Easy eh? <G>

Ignore the above suggestion. It was late, and I didn't
even come real close to what you needed. If it was the
tab order, yes...Sorry about that.

Your best bet is to probably run convert on your
.DFM file and arrange the buttons manually...

JE McTaggart
t...@iguana.ruralnet.net

Markus Peters

unread,
Sep 27, 1996, 3:00:00 AM9/27/96
to

dmic...@uvsg.com (David R. Michael) meinte am Mon, 23 Sep 1996
16:13:39 GMT zum Thema "Re: Speedbutton display order - how to
control?":

> Jeff Jones <TS...@cris.com> wrote:

> >I have a toolbar on a panel made up of about 20 speedbuttons.
> >These buttons have been rearranged during design, so now they
> >no longer display from left to right, but in the order they
> >were designed (speedbutton1, then speedbutton2, etc). When the
> >form is displayed, the population of the toolbar looks like a
> >defrag routine, with buttons popping up in a 'random' order.
> > I tried making them invisible by default, then setting each
> >button to visible in the desired order during the formshow routine,
> >but this did not change the display order.
> > Any ideas?

> >Jeff Jones

> Right-click on the form and choose "Creation Order."
> Arrange to suit.

I guess this works only for non-visible components (at least in D1).

I'm suffering of the same prob, so any other hints?

Greets, Markus
--------------------------------------------------------------
Markus Peters
m.pe...@koan.de
http://www.koan.de/~m.peters/


Kino

unread,
Oct 1, 1996, 3:00:00 AM10/1/96
to

On Mon, 23 Sep 1996 09:12:21 -0700, Jeff Jones <TS...@cris.com> wrote:

>I have a toolbar on a panel made up of about 20 speedbuttons.
>These buttons have been rearranged during design, so now they
>no longer display from left to right, but in the order they
>were designed (speedbutton1, then speedbutton2, etc). When the
>form is displayed, the population of the toolbar looks like a
>defrag routine, with buttons popping up in a 'random' order.
> I tried making them invisible by default, then setting each
>button to visible in the desired order during the formshow routine,
>but this did not change the display order.
> Any ideas?
>
>Jeff Jones

begin
spButton1.SetBounds(0, 0, spButton1.Width, spButton1.Height);
sbButton1.Visible := TRUE;
spButton3.SetBounds(sbButton1.Left + spButton1.Width, 0, spButton3.Width,
spButton3.Height);
sbButton3.Visible := TRUE;
spButton2.SetBounds(sbButton3.Left + spButton3.Width, 0, spButton2.Width,
spButton2.Height);
sbButton2.Visible := TRUE;
end;


Bye |/ --\ |\/| |\/|
Bye |\ino --/ | |auro | |ariuzzo (ITALY)


Herbert M Sauro

unread,
Oct 6, 1996, 3:00:00 AM10/6/96
to

In article <52s4ll$h...@dns2.IT.net>, Kino <ma...@pc03.ronchiato.it>
writes

Please explain why this will work?
Herb
--
Herbert M Sauro
email: HSa...@fssc.demon.co.uk
Telephone: 01974 282428
-----------------------------------------------------------------------
"He who cannot draw on 3000 years is living from hand to mouth" Goethe

0 new messages