Click here to Skip to main content
14,362,769 members

C / C++ / MFC

 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:29
mvephil.o3-Oct-19 3:29 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 3:37
protectorRichard MacCutchan3-Oct-19 3:37 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:46
mvephil.o3-Oct-19 3:46 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 3:53
protectorRichard MacCutchan3-Oct-19 3:53 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 3:27
mvephil.o3-Oct-19 3:27 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer3-Oct-19 7:38
memberleon de boer3-Oct-19 7:38 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 7:41
memberarnold_w3-Oct-19 7:41 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer4-Oct-19 4:52
memberleon de boer4-Oct-19 4:52 
I know but you aren't really looking at problem. The fonts in the cells are true type proportional not old school fixed pixel fonts so unless you have display formats on them you are dead out luck they wont be fixed character widths.

So the best you can probably do is the pixel width and then divid it by some number so if the font sort of averages 10 pixels width the 100 pixel column = 100/10 = 10 characters and 150 pixel width column gives you 15 characters.

You aren't going to be able to do much better than that at at least it will be somewhat columnized
In vino veritas

GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w4-Oct-19 6:44
memberarnold_w4-Oct-19 6:44 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 8:37
memberarnold_w3-Oct-19 8:37 
QuestionError C2059 C2143 Pin
_Flaviu2-Oct-19 8:59
member_Flaviu2-Oct-19 8:59 
AnswerRe: Error C2059 C2143 Pin
David Crow2-Oct-19 10:22
memberDavid Crow2-Oct-19 10:22 
AnswerRe: Error C2059 C2143 Pin
CPallini2-Oct-19 10:52
mveCPallini2-Oct-19 10:52 
AnswerRe: Error C2059 C2143 Pin
Richard MacCutchan2-Oct-19 22:45
protectorRichard MacCutchan2-Oct-19 22:45 
QuestionDisplays the image in Picture Control. Pin
Member 126614642-Oct-19 8:07
memberMember 126614642-Oct-19 8:07 
AnswerRe: Displays the image in Picture Control. Pin
Gerry Schmitz2-Oct-19 8:19
mveGerry Schmitz2-Oct-19 8:19 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 8:41
memberMember 126614642-Oct-19 8:41 
QuestionRe: Displays the image in Picture Control. Pin
David Crow2-Oct-19 10:19
memberDavid Crow2-Oct-19 10:19 
AnswerRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 10:41
memberVictor Nijegorodov2-Oct-19 10:41 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 11:37
memberMember 126614642-Oct-19 11:37 
GeneralRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 11:49
memberVictor Nijegorodov2-Oct-19 11:49 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 12:04
memberMember 126614642-Oct-19 12:04 
GeneralRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 20:46
memberVictor Nijegorodov2-Oct-19 20:46 
AnswerRe: Displays the image in Picture Control. Pin
Richard MacCutchan2-Oct-19 22:49
protectorRichard MacCutchan2-Oct-19 22:49 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614643-Oct-19 7:15
memberMember 126614643-Oct-19 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.