I rarely find the need to change a label after it's already established, but I do have one issue on an application requirements at a "global" level.
In the attempt to keep all my users happy, on a global level, geographic boundaries are not all called the same thing. For example, in the US a major boundary is called a "State", in Japan, they are called "Prefectures", in Australia, they may be either a "State" or a "Territory". The UK uses "County" in many cases (Not to confuse US county boundaries as well, but they are typically not "postally significant".
So I have created the ability to change the label dynamically based on the city (which auto populates, State, country and region as well as contains the "Boundary Label Tag".
It all works fine... except for one weird behavior on the label.
I have set as the default for the label to align to the right (with space at left to hold larger labels than the default "Prefecture", as it's the largest label, but it gets changed immediately to whatever the Boundary Tag is set to, and it's "Visible" property is set to off, until an address record actually has a value for State (as many don't, like Singapore, Hong Kong, Saudi Arabia, etc.)
The problem is, it seems to be "centering" the label entry, despite forcing a This.lblStateTag.Alignment = 1 just before changing the tag. It continues to (at least appear) to center them.
Is there some trick I need to employ to keep the right edge of the label in place? This keeps them exactly 6 pixels from the text box that's next to it, and if it doesn't align, then it looks very wonky (that's an Australian term for "out of whack".)
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
In the attempt to keep all my users happy, on a global level, geographic boundaries are not all called the same thing. For example, in the US a major boundary is called a "State", in Japan, they are called "Prefectures", in Australia, they may be either a "State" or a "Territory". The UK uses "County" in many cases (Not to confuse US county boundaries as well, but they are typically not "postally significant".
So I have created the ability to change the label dynamically based on the city (which auto populates, State, country and region as well as contains the "Boundary Label Tag".
It all works fine... except for one weird behavior on the label.
I have set as the default for the label to align to the right (with space at left to hold larger labels than the default "Prefecture", as it's the largest label, but it gets changed immediately to whatever the Boundary Tag is set to, and it's "Visible" property is set to off, until an address record actually has a value for State (as many don't, like Singapore, Hong Kong, Saudi Arabia, etc.)
The problem is, it seems to be "centering" the label entry, despite forcing a This.lblStateTag.Alignment = 1 just before changing the tag. It continues to (at least appear) to center them.
Is there some trick I need to employ to keep the right edge of the label in place? This keeps them exactly 6 pixels from the text box that's next to it, and if it doesn't align, then it looks very wonky (that's an Australian term for "out of whack".)
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."