Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_PAINT Pin
Krauze7-Sep-10 18:14
Krauze7-Sep-10 18:14 
GeneralRe: WM_PAINT Pin
Chandrasekharan P7-Sep-10 20:03
Chandrasekharan P7-Sep-10 20:03 
GeneralRe: WM_PAINT Pin
Cedric Moonen7-Sep-10 20:17
Cedric Moonen7-Sep-10 20:17 
GeneralRe: WM_PAINT Pin
Iain Clarke, Warrior Programmer8-Sep-10 2:00
Iain Clarke, Warrior Programmer8-Sep-10 2:00 
GeneralRe: WM_PAINT Pin
Krauze8-Sep-10 4:08
Krauze8-Sep-10 4:08 
GeneralRe: WM_PAINT Pin
Emilio Garavaglia8-Sep-10 2:09
Emilio Garavaglia8-Sep-10 2:09 
GeneralRe: WM_PAINT Pin
Cedric Moonen8-Sep-10 2:32
Cedric Moonen8-Sep-10 2:32 
QuestionHow to align output to text file in vb.net Pin
Andraw Tang7-Sep-10 12:49
Andraw Tang7-Sep-10 12:49 
Hi, dear all

I need to create a text file with each control at a line, in this line, it include control value, control name and description, the output should be as the following:

False Print - XXXXXXXXXXXXXXXXXXXXXXXXXX
2 Contrl 1 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3.6 Control 2 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
23.8 Control 3 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.005 Control 4 - XXXXXXXXXXXXXXXXXXXXXX

The problem is align the column 1, how can I align the decimal point at same position at each line, and prefix the heading as space? and the heading space number is changed according the value?

For example, for contrl 1 and control 2, the heading space is 3, but for control 3, it's 2.

I use something like:
value = Format(Contrl1, " 0")
Writer.WriteLine(value.PadRight(ValueFieldLen) & _
"Contrl 1".PadRight(ContrlFieldLen) & _
"- XXXXXXXXXXXXXXXXXXXXXXXXXX")
value = Format(Contrl3, " 0.0")
Writer.WriteLine(value.PadRight(ValueFieldLen) & _
"Control 3".PadRight(ContrlFieldLen) & _
"- XXXXXXXXXXXXXXXXXXXXXXXXXX")

In this way, the prefix spacing is fixed, this isnot I want.

Thanks!
AnswerRe: How to align output to text file in vb.net Pin
Tim Craig7-Sep-10 17:31
Tim Craig7-Sep-10 17:31 
AnswerRe: How to align output to text file in vb.net Pin
Cedric Moonen7-Sep-10 20:18
Cedric Moonen7-Sep-10 20:18 
Questionsetlocale() doesn't work! Pin
Green Fuze7-Sep-10 8:49
Green Fuze7-Sep-10 8:49 
AnswerRe: setlocale() doesn't work! Pin
Richard MacCutchan7-Sep-10 10:10
mveRichard MacCutchan7-Sep-10 10:10 
GeneralRe: setlocale() doesn't work! Pin
Green Fuze7-Sep-10 10:17
Green Fuze7-Sep-10 10:17 
GeneralRe: setlocale() doesn't work! Pin
Richard MacCutchan7-Sep-10 12:14
mveRichard MacCutchan7-Sep-10 12:14 
GeneralRe: setlocale() doesn't work! Pin
Green Fuze7-Sep-10 20:41
Green Fuze7-Sep-10 20:41 
GeneralRe: setlocale() doesn't work! Pin
Richard MacCutchan8-Sep-10 2:54
mveRichard MacCutchan8-Sep-10 2:54 
AnswerRe: setlocale() doesn't work! Pin
Aescleal7-Sep-10 21:20
Aescleal7-Sep-10 21:20 
Questiontoolbars retain old settings Pin
rayjoslyn7-Sep-10 8:40
rayjoslyn7-Sep-10 8:40 
AnswerRe: toolbars retain old settings Pin
sashoalm8-Sep-10 4:41
sashoalm8-Sep-10 4:41 
GeneralRe: toolbars retain old settings Pin
rayjoslyn8-Sep-10 7:37
rayjoslyn8-Sep-10 7:37 
GeneralRe: toolbars retain old settings Pin
sashoalm8-Sep-10 19:54
sashoalm8-Sep-10 19:54 
GeneralRe: toolbars retain old settings Pin
rayjoslyn9-Sep-10 3:15
rayjoslyn9-Sep-10 3:15 
GeneralRe: toolbars retain old settings Pin
sashoalm9-Sep-10 21:14
sashoalm9-Sep-10 21:14 
Questionprob with coordinates Pin
Krauze7-Sep-10 4:53
Krauze7-Sep-10 4:53 
AnswerRe: prob with coordinates Pin
Maximilien7-Sep-10 5:02
Maximilien7-Sep-10 5:02 

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.