Hi all,
I've created a red notification icon, a bit like what you'd have on a smartphone using a Button.
The number populates from counting rows of incomplete data in the table (therefore needing attention by the user). This part works fine.
The width of the button should be variable and autoresizes to fit the number it displays by using:
45+Len(Button3.Text)
This works, but is causing me a bit of an issue...
When the number gets longer, the left edge of the button stays fixed in place, and the button gets bigger by expanding to the right. When it does this, it overspills onto other content which I wish to avoid - (it's an extreme example to demonstrate the issue) but it looks like this:
This (below is what I need), working the opposite way around, so that the right side of the red button stays in a fixed position and grows in size, but to the left.
Any ideas how this might be achieved? 🙂
Thank you
Solved! Go to Solution.
@Anonymous
Use Len(Button3.Text) to also set the X property of your icon. Formula could look like:
icon.X = currentXvalue - Len(Button3.Text) + someOtherValue (maybe 5?)
You would just need to play around to get it where you want
@Anonymous
Use Len(Button3.Text) to also set the X property of your icon. Formula could look like:
icon.X = currentXvalue - Len(Button3.Text) + someOtherValue (maybe 5?)
You would just need to play around to get it where you want
Worked like a charm - thank you @Anonymous 🙂