Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Use the VFP Intellisense in my Application

Use the VFP Intellisense in my Application

Use the VFP Intellisense in my Application

Hi everybody,

Is it possible to use the intellisense in my application...? My users write code in an EditBox control but they don't have the intellisense's advantage. Is there any example or solution for implementiong this idea? I just want to use either the intellisense or the syntax highlight.


RE: Use the VFP Intellisense in my Application

Yes, this is possible - but only in a limited way. Basically only in memo fields, and only when edited in the memo field editor.

Doug Hennig has written an article about this, with a lot of detail and examples. See: http://doughennig.com/papers/Pub/AddingIntelliSens...

But there are also many other ways of providing similar functionality, other than via Intellisense. If that interests you, I can provide some suggestions - as no doubt can others here.


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Use the VFP Intellisense in my Application

Thanks Mike, please tell me about it.

I'm going to take a look of Doug's article.

RE: Use the VFP Intellisense in my Application

Well, this is one approach I took in an application which I developed quite a few years ago. (At the time, I wrote an article about it for Foxpro Advisor, but unfortunately I no longer have a copy, so the following is from memory.)

In my base EditBox class, I had code in the right-click event to pop up a context menu. In addition to the usual context menu options, such as Cut, Copy, Paste, Select All, etc., I had nine entries to correspond to nine standard phrases that were relevant to the user's business. These were things like "We have not yet received payment for our invoice ...", as well as the user's name, the company or department name, today's date, etc.

There was also a tenth item, that led to a cascading set of sub-menus, with many more phrases, categorised by function. For example, there was a menu of phrases relating to sales, another for credit control, and so forth. In this way, it was possible to store around a hundred phrases in a fairly compact menu structure.

The final element was a form in which the user could maintain these phrases. We provided a company-wide phrase book with the application, but individual users could add, delete or alter phrases as they liked. It would have been quite easy to let this phrase book be shared among all users, but we chose not to do that.

This approach was easy to program, and it was popular with most users, although others users disliked it. I think the ones who disliked it were mostly touch-typists, who didn't like to have to take their hands off the keyboard to reach for the mouse to access the menus (we pointed out that they could hit Shift+F10 to bring up the context menu, and then the arrow keys to make their choice, but that wasn't very popular either).

Anyway, that was the approach I took. It's not as slick as Intellisense, but it serves a similar purpose. I'm sure it would be possible to find other solutions, including some that don't require you to take your hands off the keyboard.


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close