Solved

Turning TBitBtn.Glpyh off at runtime

Posted on 1998-06-24
3
542 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now