UI Text Spacing

  • Thread starter Thread starter Bradley
  • Start date Start date
B

Bradley

I'm developing an application where I'm representing ASCII encrypted Hex
values as a string displayed by the UI. In the line above each of the data
strings, I want to have a string that contains the name of the data content
and I'd like it to be in alignment. The problems I'm having is that the
name is associated with a grouping of data items (i.e. several bytes
represented as 2 chars.) and alignment is difficult because spaces may not
carry the same physical dimension as a zero (0). Any suggestions as to how
I can get these members to line up?

TIA

Brad
 
I changed to font on the UI to be non-proportional and the problem went
away. Interesting that questions always seem stupid when you know the
answer.

Brad
 
Bradley said:
I changed to font on the UI to be non-proportional and the problem went
away. Interesting that questions always seem stupid when you know the
answer.

Alternatively you may want to use 'Graphics.MeasureString' to measure a
certain string and draw it on an according position.
 
Back
Top