• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 557
  • Last Modified:

Turning TBitBtn.Glpyh off at runtime

Using Delphi 1...

At design time, I have a TBitBtn component on my main form and I have assigned a .Glyph property (BMP) image to the button.  However, I would like to be able to (if necessary) turn the Glyph off permanently at run time.

How do I make the glyph disappear at runtime?
0
Kapusta
Asked:
Kapusta
  • 2
1 Solution
 
kjtengCommented:
bitbtn1.glyph.width:=0;
or
bitbtn1.glyph.height:=0;
0
 
KapustaAuthor Commented:
Thanks.

But how about bitbtn.glyph := nil; ?


0
 
kjtengCommented:
it's better to use
  bitBtn1.glyph.assign( nil)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now