nxButton
Started by didiergm, Dec 30 2010 04:58 PM
6 replies to this topic
#1
Posted 30 December 2010 - 04:58 PM
Hello,
Is there a way to change the distance between the glyph and the button caption. Currently, when the glyph position is set to left, the glyph tends to be very close to the caption and when enlarging the button, the glyph & the caption are centered. it would be nice to have that option
Is there a way to change the distance between the glyph and the button caption. Currently, when the glyph position is set to left, the glyph tends to be very close to the caption and when enlarging the button, the glyph & the caption are centered. it would be nice to have that option
#2
Posted 30 December 2010 - 08:39 PM
Hello Didier,
Use GlyphSpacing property.
Best regards
Use GlyphSpacing property.
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 30 December 2010 - 09:27 PM
Boki,
Although this works this does not work well as the glyph is way too indented so if you have a fairly long caption and use glyphspacing, the text is pushed to the right but the icon stays where it was .... so there is way too much space on the left. , at least with a 16x16 glyph.
Although this works this does not work well as the glyph is way too indented so if you have a fairly long caption and use glyphspacing, the text is pushed to the right but the icon stays where it was .... so there is way too much space on the left. , at least with a 16x16 glyph.
#4
Posted 31 December 2010 - 12:20 AM
Hello Didier,
Unfortunately, this is how is designed. But, if you resize button you will notice that glyph and text are both centered.
Best regards
Unfortunately, this is how is designed. But, if you resize button you will notice that glyph and text are both centered.
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#5
Posted 31 December 2010 - 12:40 AM
QUOTE (Boki (Berg) @ Dec 31 2010, 12:20 AM) <{POST_SNAPBACK}>
Hello Didier,
Unfortunately, this is how is designed. But, if you resize button you will notice that glyph and text are both centered.
Best regards
Unfortunately, this is how is designed. But, if you resize button you will notice that glyph and text are both centered.
Best regards
Ok, I understand, I still think that there is something slightly wrong with the glyphspacing; especially when you add the arrow. when I get a chance, I'll have a play with the paint procedure and may be submit a patch for your approval.
#6
Posted 31 December 2010 - 12:48 AM
Hello Didier,
Arrow is always located on right side of button (fixed).
Best regards
Arrow is always located on right side of button (fixed).
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#7
Posted 06 March 2012 - 01:13 AM
Ok, I understand, I still think that there is something slightly wrong with the glyphspacing; especially when you add the arrow. when I get a chance, I'll have a play with the paint procedure and may be submit a patch for your approval.
for a "quick and dirty" solution just add some spaces to the caption
and it moves to the left subsequently leaving more space for the arrow...
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users