Terminal Type Window????
-
Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)
-
Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)
Tryhard wrote: I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? Nope! You can not show a flashing cursor on the list box. Using editbox will be simpler than using a richedit. But using rich edit allows you to do more complex operations, such as changing font, color, ...etc. Kind regards Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix
-
Hi all, I am fairly new to VC++ and am looking for some advice before I start a new program. I want to write a program that looks like a terminal session. i.e. one window - it will present a prompt i.e. # and flashing cursor you then type your command and press enter. The results then appear on the next line followed by a new prompt and flashing cursor on the next line. (I think you get what I am after) I have played with using edit box, rich edit box and list box all seem to be able to acheive this sort of program one way or another, but which one should I really be using?? All advice greatly appreciated, Thanks all, Tryhard :-)
Check out the VCTERM sample in MSDN. I am currently writing a terminal app, and I have chosen the edit box since it seems to be the easiest control to play with. You will need to derive your own edit box class to be able to do what you want, but that is shown in the sample. Cheers,
/FredrikSonork ID: 100.11430:PhatBoy