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?
KapustaAsked:
Who is Participating?
 
kjtengConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.