 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joey Guest
|
Posted: Thu Jul 20, 2006 8:11 am Post subject: speedbutton's glyph question |
|
|
Hello everybody
I use D7 Pro and need to create a speedbutton with the glyph filling the
whole button area (so that the glyph is also stretched when resizing the
speedbutton): does anybody know how to get this result?
In the help i read:
"Tip: To create a speed button with a client-aligned glyph that covers the
button's edges, add a 1-pixel margin around the button's top and left edges
and a 3-pixel margin around its bottom and right edges. Do this by manually
editing the bitmap specified by the Glyph property."
How to add those "1-pixel margin and 3-pixel margin"? I simply tried drawing
a 1-px and 3-px in the glyph's corners (L,T and R,B) by means of the Delphi
Image Editor but it doesn't seem to work as i expected.
Thanks in advance for any help about the above
Joey |
|
| Back to top |
|
 |
Peter Below (TeamB) Guest
|
Posted: Thu Jul 20, 2006 11:09 pm Post subject: Re: speedbutton's glyph question |
|
|
Joey wrote:
| Quote: | Hello everybody
I use D7 Pro and need to create a speedbutton with the glyph filling
the whole button area (so that the glyph is also stretched when
resizing the speedbutton): does anybody know how to get this result?
In the help i read:
"Tip: To create a speed button with a client-aligned glyph that
covers the button's edges, add a 1-pixel margin around the button's
top and left edges and a 3-pixel margin around its bottom and right
edges. Do this by manually editing the bitmap specified by the Glyph
property."
|
This is probably not what you want, actually. If I understand it
correctly you are supposed to use this to create a bitmap that
*includes* the borders the speedbutton usually draws around itself. You
can as well create a bitmap that is a 4 pixels smaller than the buttons
clientRect and let the button draw the borders as usual.
The problem is that the button has no provision to stretching its
glyph, you would have to make a descendent to implement that, and that
may be more work than faking a button with your requirements using a
TImage or TPaintbox. Both do have OnClick events.
--
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
|
|