Tia
You have to duplicate your bitmap, for instance open any of the delphi
standard bitmaps in Delphi's image editor you will see that their size is
32x64 or 12x32, the width is always the double of the height, in the first
half you have the normal image and in the second part you have the image
that will be displayed when the button is in disabled state. Just make sure
you have both sides a normal image and on your TBitBtn, modify the NumGlyphs
property to 2...
Vahan
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf
Of shridhargune
Sent: Saturday, May 14, 2005 2:13 PM
To: [email protected]
Subject: [delphi-en] Show bitmap when bitbtn is disabled?
Hi,
A query regarding BitBtn:
How can I show bitmap when bitbtn is disabled(enabled:=false;)?
Details:
when enabled:=true, it shows the image correctly.
when enabled:=false, it does not show any bitmap.
I do not want to use two seprate images i.e one for enabled and other
for disabled state.
This happens with specific images i.e images having more than 256
colors.
Any pointers?
TIA
Shridhar
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
----------------------------------------------------------------------------
----
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/