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

Flat-style buttons in Delphi

1,289 views
Skip to first unread message

KejDee

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
Hi,

I was wondering how to make the buttons look flat. I've seen such thing be
done by Delphi by I don't have a clue... Anyone?

I was also thinking that maybe it would be nice to make the text on the
buttons change color when the user moves the mouse over them.

If there's anyone that's familiar with this, please teach me how to!

-KD-

Andreas Nickel

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
There is a component name tExplorerButton which deals most the things you
need - just search for it. I think you will easyly find it.


Kai Inge Buseth

unread,
Jan 26, 2000, 3:00:00 AM1/26/00
to
Hello,
just to make buttons look flat - use speedbuttons and set flat-property
True.
If you meant a ordinary button with special design, you can use a panel as a
button and add the code yourself.
Then you can also change the caption colour on mouseover event.

--
Kind regards
Kai Inge

{The limit of my Delphi
is my lack of knowledge}
KejDee wrote in message <86n6s8$7oj$1...@zingo.tninet.se>...

digitalp...@my-deja.com

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
From at least Delphi3 there is you have a TToolBar component. You can
set its property to Flat. I don't think it supports highlighted
captions when the mouse moves over them though.

In article <86nm37$2lb4$1...@bnews.gigabell.net>,

--
DIGITAL PROSPERITY PTY LTD phone: +61 3 9761-3885
P.O. Box 557 fax: +61 3 9761-3811
Boronia, Victoria 3155
http://www.luck-e-lotto.com.au


Sent via Deja.com http://www.deja.com/
Before you buy.

Koen Van Baelen

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
Hi,

I think I've got just what you are looking for! Go to my website (address
below) and download CoolControls 2.0 from the "Components" section. It
contains a button flat button that raises and changes the text color when the
cursor is moved over it. The full source code of the components is included.

KejDee schreef:

> Hi,
>
> I was wondering how to make the buttons look flat. I've seen such thing be
> done by Delphi by I don't have a clue... Anyone?
>
> I was also thinking that maybe it would be nice to make the text on the
> buttons change color when the user moves the mouse over them.
>
> If there's anyone that's familiar with this, please teach me how to!
>
> -KD-

--
Koen Van Baelen
koen.va...@pandora.be
http://users.pandora.be/koen.van.baelen
--

Udo Nesshoever

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to
=== Followup to usenet message ===
=== From: "KejDee" <om...@algonet.se>
=== Date: Wed, 26 Jan 2000 16:51:17 +0100

> I was wondering how to make the buttons look flat. I've seen such thing be
> done by Delphi by I don't have a clue... Anyone?

Use a TSpeedButton

> I was also thinking that maybe it would be nice to make the text on the
> buttons change color when the user moves the mouse over them.

Use the CM_MOUSEENTER and CM_MOUSELEAVE messages (undocumented)


Bye, Udo

KejDee

unread,
Jan 31, 2000, 3:00:00 AM1/31/00
to
Didn't get much of it to be honest.
(Maybe you should include some documentation with it...)

-KD-

0 new messages