473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

UI Text Spacing

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
Nov 21 '05 #1
3 994
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" <dm********@indesign-llc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2
Brad,

You are not the first one who does this. However seldom someone really
succeed. Why don't you use one of the standard encrypting classes from .Net.

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps,

Cor
Nov 21 '05 #3
"Bradley" <dm********@indesign-llc.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: shoo | last post by:
Any one know how to do this? thank Write a simple text-formatting program that produces neatly printed output from input text containing embedded command lines that determine how to format the...
4
by: anatushi | last post by:
Hi, im looking for help on how to add a text fader to my website, usually i'm working with css but in this case i need to add java script to make it work, that wasn't the problem but somehow it...
7
by: brigitte | last post by:
Hi, I'm having trouble with a specific e-mail text format attachment ... The requirement is for the attachment to be .txt type and in this format: Label=FieldValue Label=FieldValue...
1
by: David Gibson | last post by:
Hi, Is there a function to remove double spacing between some names in a text field. I have a text field with names where the name can be 1, 2, 3 or rarely 4 words & there is dounle spacing...
6
by: shoo | last post by:
Any one know how to do this? thank Write a simple text-formatting program that produces neatly printed output from input text containing embedded command lines that determine how to format the...
2
by: Graeme | last post by:
Hi there Yet another daft question. Can I fill a css defined box with a text character such that the box can be set to say, 85% page width, and the text character fills the bos to that width,...
20
by: Jukka K. Korpela | last post by:
I recently noticed, once again, how the common implementation of italics can really disturb. I'm referring to the common phenomenon that there is by default too little spacing after italics text,...
0
by: emojoy | last post by:
So I have a project where there are 5 dynamic text fields, and I thought it would be quite simple. Create a dynamic text field, and then load in the .xml content, and I had it complete. However, it...
14
by: David C. Stone | last post by:
Is there a way in CSS to adjust the baseline position of text marked up with either <sup></supor <sub></sub>, relative to the surrounding text? Reason for asking is that the default rendering in...
4
by: MC | last post by:
Is there a string function in .NET that will remove the accent marks from letters? I know that's a slightly vague request... and that I could implement it by table lookup (and will do so unless...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.