-
Another newbie question.
Is there a way that I could use the keyboard to navagate a list of options? For example if this was output on the screen:
1.Start
2.Play
3.exit
Could I possible get a box of gray that highlights the first option and then be able to use the keyboard arrows to move it up and down?
-
Yes and yes. The background colour stuff is covered in part 4 of my tutorial here, and handling keyboard events, (and mouse events incidently), is covered in part 5.
-
Hi adrianxw,
That's an interesting tutorial. I have one question so far. You said:
"By default, Windows places the path of the executable in the window title. "
I don't see that. I use VC++ 6, and I just get the name of the program in the title bar, e.g "test". The full path name to my .exe file is:
C:\Beginning C++\test\Degug\test.exe
I tried running my program from the command prompt(Start->Programs->MSDOS window) and then cd'ing to the relevant directory, but the title bar of that DOS window is MSDOS-Prompt and it doesn't change when I run a "hello world" program, and in that case even when I set the title myself using SetConsoleTitle(), it still says MSDOS-Prompt.
How can I see that default behavior?
-
The link is not working for me :(
-
>>> The link is not working for me
I posted a note on my home page about planned downtime today, and possibly tomorrow to upgrade my network hardware. I also seem to be having a brand new problem with my DNS provider, but their e-mail is bouncing me, and their contact page is 404'ing, so I can't do anything about that right now.
If it looks like it's going to take a while, I'll create a sub-domain on my wifes site to link to mine.
Sorry for the inconvenience, I'm as ........ed off about it as you believe me.
-
adrianxw,
When you have time could you look at my previous post?
-
>>> When you have time could you look at my previous post?
Sorry, didn't notice it, have been somewhat busy today.
>>> How can I see that default behavior?
Don't know. The behaviour is what it does for me on all my system's from Win95 - WinXP. If I get a minute I'll have a closer look.
-
My site is temporarily available here.
*** EDIT ***
It's back where it should be now.
-
You guys have to learn how to use Google's cached snapshot of page. Can't live w/o it. ;)
-
I am using Windows 98 and MSVC++ 6.0, if that helps.
I think somehow when I set up MSVC++6.0 the directory:
C:\Beginning C++\
was designated as the current directory even though my compiler is in the directory:
C:\Program Files\C++ Microsoft Visual Studio
(Although, I can't find that setting anywhere.)
So, does it make sense when I run programs inside VC++ 6 that the title bar only shows the folder name "test"? The full path to the .exe file is:
C:\Beginning C++\test\Debug\test.exe