Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: TToolbar button borders



Permlink Replies: 1 - Last Post: Mar 17, 2017 11:20 AM Last Post By: Peter Below Threads: [ Previous | Next ]
Pier Nardin

Posts: 97
Registered: 12/23/06
TToolbar button borders
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 17, 2017 1:53 AM
I am using a TToolbar in Delphi 10 but I can't seem to get borders to draw around the buttons. The TToolbar Flat property has no effect and the OnAdvancedCustomDrawButton event does not fire. What am I doing wrong?

Pier
Peter Below

Posts: 1,147
Registered: 12/16/99
Re: TToolbar button borders
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 17, 2017 11:20 AM   in response to: Pier Nardin in response to: Pier Nardin
Pier Nardin wrote:

I am using a TToolbar in Delphi 10 but I can't seem to get borders to
draw around the buttons. The TToolbar Flat property has no effect and
the OnAdvancedCustomDrawButton event does not fire. What am I doing
wrong?

The toolbar (a windows common control in fact) supports different
button styles, and those influence how the buttons are drawn.

For me a standard TToolbutton with the tbsButton Style (VCL app,
default Windows theme) has a 3D border.


--
Peter Below
TeamB

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02