BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBitBtn.Glyph and Imagelist

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Rafal Z
Guest





PostPosted: Thu Sep 28, 2006 6:17 pm    Post subject: TBitBtn.Glyph and Imagelist Reply with 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!

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





PostPosted: Thu Sep 28, 2006 10:50 pm    Post subject: Re: TBitBtn.Glyph and Imagelist Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.