Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alt-t not working

Status
Not open for further replies.

sdocker

IS-IT--Management
Aug 12, 2010
218
GB
For some unknown reason the alt-t combination stopped working when editing a PRG in VFP 9.0.

All the other key combinations open the respective drop down menus, ie,File, Edit, View, Format etc...

Thanks,
Sam
 
Are you using the built-in system menu, or have you replaced it with your own menu? If the latter, are you sure you have assigned an accelerator key to the relevant menu pad?

Also, is the T in Tools underlined? (Depending on your Windows version, you might need to press the Alt key to see the underlines).

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
If you have a custom menu with CTRL+T shortcut then for sure it will not work until you type

SET SYSMENU TO DEFAULT

and if you have some ON KEY macro, clear that out with

ON KEY

ps. Is the CTRL+T work when you open foxpro for the first time ? or it's appen after you run a program?

Please also check you config.wfp to be sure no macro are in there.

gl
 
The app uses my own menu, but the problem I am having is when I am editing a PRG file. The standard VFP menu is visible.
File, Edit, View, fOrmat, Tools, Program, Window and Help. The capitalized letters above are underlined.

Alt-F,E,V,O,P,W and H all work. Alt T does nothing. If I press just the ALT key, the File menu highlights, and then if I press the T, the tools menu opens.

This behaviour just started recently.

Is it possible some other software assigned another value to ALT-T. If so, how can I find out why or how?

Sam
 
I do not have a custom menu, or a macro that uses ALT-T

Sam
 
FoxAll,

Sam's problem is not CTRL+T, which is a shortcut. Rather, it's ALT+T, which is an accelerator. The difference is that the programmer can assign any key combination as a shortcut key, whereas an accelerator has to be a specific letter within the menu.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Sam,

Is it possible that you have a form active in the background while you are editing the PRG? I know it's unlikely, but it's not impossible. If you do, and if that form has a caption that uses Alt+T as an accelerator, that might just explain the behaviour you are seeing.

Another thing to check: Can you use Alt+T in other applications? That is, in any application that has a menu whose accelerator key is Alt+T? If not, that will suggest that the cause is external to VFP.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
Have you done any customization of your VFP environment that might have assigned Alt+T to something? Maybe an ON KEY LABEL in something you're testing?

Try this in the Command Window:

?ON("Key label","alt+t")

and see whether it returns anything.

Tamar
 
Mike - There is not an active form in the background.
I tried ALT+T in Adobe Acrobat and the same thing happened Could something be wrong with my keyboard. I did replace it recently, so the timing fits.

Tamar - Thanks for the tip. But I seemed to have isolated the problem.

Sam
 
It is just about possible that there is a fault in the keyboard. You can easily check that by plugging in a different keyboard.

Actually, it's not all that unlikely. Recently, I found I couldn't type the letter J. I removed the back cover from the keyboard, and used a compressed air can to get rid of the accumulated hairs, food remnants, and other undesirables that had accumulated. Everything worked fine after that.

Then again, if the Alt or the T on your keyboard was not functioning, you'd expect to see the problem all the time, not just when using the two keys in combination. More likely to be a Windows setting somewhere.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
I read a great suggestion somewhere recently. Every time you're about to throw out a sticky note, turn it upside down and run it along one or more of the rows on the keyboard. The sticky will pick up dirt and dust that's gotten in.

Tamar
 
I just tried things with a different keyboard, and the same problem.

I think I have to go to msconfig/Startup tab, and by the process of elimination see when it happens.

Will get back. Hopefully soon.
 
I surfed and found that a netgear wireless adapter caused a similar problem with a game.

Rather than go through msconfig i used task manager to end the processes.

It solved the problem.

Now that I know what the cause is, I can figure out what to do.

Thnk you all for the help.
Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top