 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rafal Z Guest
|
Posted: Thu Sep 28, 2006 6:17 pm Post subject: TBitBtn.Glyph and Imagelist |
|
|
Hallo,
I want to set the Glyph property of TBitBtn with an Imege from a
ImageList. I use the Imagelist1.getBimap method:
Imaglist1.getbitmap(0,BitBtn1.Glyph);
At the first execution of this method it makes the job. But if I try to
change this Glyph to another Bitmap from Imagelist, then nothing happens!
I have another qustion: after the BitBtn is placed on a form, its Glyph
property displays in Object Inspector the value 'None'. What does it
mean? How can I come back to this state after assigning a bitmap?
Sincerely
Rafal Z |
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Thu Sep 28, 2006 10:50 pm Post subject: Re: TBitBtn.Glyph and Imagelist |
|
|
Rafal Z wrote:
| Quote: | Hallo,
I want to set the Glyph property of TBitBtn with an Imege from a
ImageList. I use the Imagelist1.getBimap method:
Imaglist1.getbitmap(0,BitBtn1.Glyph); At the first execution of this
method it makes the job. But if I try to change this Glyph to another
Bitmap from Imagelist, then nothing happens!
|
If you change the glyph this way the button does not become aware of it.
| Quote: |
I have another qustion: after the BitBtn is placed on a form, its
Glyph property displays in Object Inspector the value 'None'. What
does it mean? How can I come back to this state after assigning a
bitmap?
|
BitBtn1.Glyph := Nil;
Imagelist1.GetBitmap(Findex, BitBtn1.Glyph);
This sequence seems to do the trick.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|