Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 2:29
professionalphil.o3-Oct-19 2:29 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 2:37
mveRichard MacCutchan3-Oct-19 2:37 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 2:46
professionalphil.o3-Oct-19 2:46 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
Richard MacCutchan3-Oct-19 2:53
mveRichard MacCutchan3-Oct-19 2:53 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
phil.o3-Oct-19 2:27
professionalphil.o3-Oct-19 2:27 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer3-Oct-19 6:38
leon de boer3-Oct-19 6:38 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 6:41
arnold_w3-Oct-19 6:41 
GeneralRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
leon de boer4-Oct-19 3:52
leon de boer4-Oct-19 3: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 5:44
arnold_w4-Oct-19 5:44 
AnswerRe: Tool to replace tabs with VARIABLE NUMBER OF SPACES and preserve column alignment? Pin
arnold_w3-Oct-19 7:37
arnold_w3-Oct-19 7:37 
QuestionError C2059 C2143 Pin
_Flaviu2-Oct-19 7:59
_Flaviu2-Oct-19 7:59 
AnswerRe: Error C2059 C2143 Pin
David Crow2-Oct-19 9:22
David Crow2-Oct-19 9:22 
AnswerRe: Error C2059 C2143 Pin
CPallini2-Oct-19 9:52
mveCPallini2-Oct-19 9:52 
AnswerRe: Error C2059 C2143 Pin
Richard MacCutchan2-Oct-19 21:45
mveRichard MacCutchan2-Oct-19 21:45 
QuestionDisplays the image in Picture Control. Pin
Member 126614642-Oct-19 7:07
Member 126614642-Oct-19 7:07 
AnswerRe: Displays the image in Picture Control. Pin
Gerry Schmitz2-Oct-19 7:19
mveGerry Schmitz2-Oct-19 7:19 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 7:41
Member 126614642-Oct-19 7:41 
QuestionRe: Displays the image in Picture Control. Pin
David Crow2-Oct-19 9:19
David Crow2-Oct-19 9:19 
AnswerRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 9:41
Victor Nijegorodov2-Oct-19 9:41 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 10:37
Member 126614642-Oct-19 10:37 
GeneralRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 10:49
Victor Nijegorodov2-Oct-19 10:49 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614642-Oct-19 11:04
Member 126614642-Oct-19 11:04 
GeneralRe: Displays the image in Picture Control. Pin
Victor Nijegorodov2-Oct-19 19:46
Victor Nijegorodov2-Oct-19 19:46 
AnswerRe: Displays the image in Picture Control. Pin
Richard MacCutchan2-Oct-19 21:49
mveRichard MacCutchan2-Oct-19 21:49 
GeneralRe: Displays the image in Picture Control. Pin
Member 126614643-Oct-19 6:15
Member 126614643-Oct-19 6: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.