Solved

Turning TBitBtn.Glpyh off at runtime

Posted on 1998-06-24
3
547 Views
Last Modified: 2010-05-18
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
Comment
Question by:Kapusta
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
kjteng earned 30 total points
ID: 1355569
bitbtn1.glyph.width:=0;
or
bitbtn1.glyph.height:=0;
0
 

Author Comment

by:Kapusta
ID: 1355570
Thanks.

But how about bitbtn.glyph := nil; ?


0
 
LVL 2

Expert Comment

by:kjteng
ID: 1355571
it's better to use
  bitBtn1.glyph.assign( nil)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, MySQL Query 4 164
Can Viruses spread while transferring Binary data with Winsock 2 86
Base1 Encode/Decode 3 81
Delphi: making a BW image transparent 10 59
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question