Solved

Menu while typing like in ms products

Posted on 2001-06-21
5
163 Views
Last Modified: 2010-05-02
I am wanting to find a way to have a menu pop up when i type certian text and then . like it does in vb and interdev. I dont want to use 3rd party controls. for example in vb you type app. and the menu omes up that would complete it by what you click on or just press space. I will raise points if this is really hard
0
Comment
Question by:damion69
5 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 6216767
whats the criteria?
0
 
LVL 5

Expert Comment

by:gbaren
ID: 6217025
Damion,

It's a pretty involved procedure. Lots of API calls. Especially screen coordinate APIs with client to absolute conversions. Polish up your 9th grade Algebra.

In general:

1. Trap the trigger key using KeyPress
2. Get the coordinates of the target area in the control
3. Convert the coordinates to absolute screen coords
4. put up a tiny borderless form with a wall-to-wall listbox at the coordinates translated
5. trap KeyPress in the listbox for exit keys
6. handle the exit based on key trapped

The Devil is in the Details.

gbaren
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 6217520
http://www.mvps.org/vbvision/_samples/PopUp_Listbox_Demo.zip

Is a really good starter on creating this sort of thing. You can take this demo and modify the code to provide exactly the kind of functionality that I think you are looking for.
0
 

Expert Comment

by:nomulap
ID: 6219765
listening.....
0
 
LVL 2

Author Comment

by:damion69
ID: 6385221
Well this is the closest that anyone got to it, and i think i can elaborate from this thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now