Welcome to Foxite.COM Community Weblog Sign in | Join | Help
<November 2006>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

Post Categories

Navigation

Syndication




getting rid of IntelliSense popup windows is so easy, and still have the sample available

Although IntelliSense is maybe one of the best productivity tools in the long hsitory of VFP it sometimes is very much present in a way that can really bother you. Simple example, type the SELECT command and a huge popup shows up right over your code. Not something you really want. So, you can, of course, disable IntelliSense but that is a disadvantage because then you don't see all the help offered by IntelliSense.

Here is one of the reasons I like DevCons so much, you get tips from your collegues.
Yesterday Simon Arnold and I were talking to Andy Kramek and he showed this cool piece of code.

Here it is:

RELEASE _oFoxCodeTips

PUBLIC _oFoxCodeTips

_oFoxCodeTips = NEWOBJECT( "frmtips", "foxcode.vcx", HOME()+"foxcode.app")

_oFoxCodeTips.show()

Type this in first and then try a select statement in your command window, all the IntelliSense output is redirected to the little window that just popped up.

having another window floating around is not all that good, your IDE gets a bit cluttered then, so you can dock it over the command window, just like any other window like the session window, the property sheet etc...

Even that process can be automated, just use the following command.

DOCK NAME _oFoxCodeTips POSITION 4 window command

Place the above lines of code in a small prg and place that in your home() folder.

So the complete code looks like this:

* Andy Kramek's Code.
RELEASE _oFoxCodeTips
PUBLIC _oFoxCodeTips
_oFoxCodeTips
= NEWOBJECT( "frmtips", "foxcode.vcx", HOME()+"foxcode.app")
_oFoxCodeTips.show()

* Code form Simon Arnold and Boudewijn Lutgerink
DOCK NAME _oFoxCodeTips POSITION 4 window command

Next, in your config.fpw, add one line:
Command = WhatEverYounamedThePRGFile

TIP

DO NOT add that program as the startup program in the file Locations tab under tools->options, it will make then the command window disappear (as Simon and I found out last night.)

Published Sunday, November 12, 2006 5:49 AM by Boudewijn
Filed Under: ,

Comments

No Comments

Anonymous comments are disabled
Powered by Community Server, by Telligent Systems