I add a toolbar with some standard Delphi components to my application. Unfortunately, the stupid arrow is first glyph (does anyone even know what it is for?)
I would like to destroy it totally, or, at least, set itcs icon to blank, so that it blends in with the toolbar.
How can I do this?
I need some code which can be executed twice without causing an exception. Thanks
TToolButtongets its image from combining itsImageIndexproperty with the enclosing toolbar’sImagesproperty, which refers to aTImageList. To make a toolbar button have no image, assignImageIndex := -1.To remove the glyph from a
TSpeedButtonat design time, select the button, and then select theGlyphproperty in the Object Inspector. Press Del to clear the property. To do the same at run time, assignButton.Glyph := nil.If you have a pre-made toolbar, such as
TMediaPlayerorTDBNavigator, then you can’t customize the buttons. They always show the arrow glyphs that are hard-coded in the control. You can choose to hide or show certain buttons, though. If you placed the control just to get a row of buttons and have no intention of using them to play media or navigate a database, then don’t use that control. Just place aTPaneland put standalone buttons on it.