Getting the look of a Bold Navigator with TButtons

The Bold Navigator button graphics are available as bitmaps that can be used on regular buttons.

The Bold navigator control is handy, but it doesn't take focus the way regular buttons do, which can make keyboard navigation difficult in some situations. In places where it makes sense to use regular buttons, the graphics used on the navigator can be used for the button glyph for a uniform look:



TForm1 = class( TForm )

    btnAdd: TBitBtn;

    btnDel: TBitBtn;

[...]

end;



implementation



uses BoldCommonBitmaps;



procedure TForm1.FormCreate( Sender: TObject );

begin

   btnAdd.NumGlyphs := 2;

   btnDel.NumGlyphs := 2;

   btnAdd.Glyph := bmpBoldNavigatorInsert;

   btnDel.Glyph := bmpBoldNavigatorDelete;

end;

 

Share this article!

Follow us!

Find more helpful articles: