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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Method of Allowing User to Select Options

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
I am developing a bookmark feature that will allow users to save the primary key, the date & time, a short description, etc, and a list of users for this bookmark. When users log in to the program, they will be presented a list of all of their bookmarks that have been assigned to them in a grid. Clicking a row will display the appropriate form and move the record pointer to the primary key. I’m looking for the best method of letting the user invoke this action. I could use a button, maybe a menu entry, toolbar, or a right click on the form. Because I might want other options available to the user in the futire, I’m leaning towards the right click method and displaying a form or pop up menu. Any thoughts or guidance would be appreciated.

Thanks,
Auguy
 
A Drop down with a go button? similar to the browsers?

Ali Koumaiha
Wireless Toyz
Farmington Hills, Michigan
 
If the grid with the choices is on a form, why not a hot key?
On key label .....
Now you dont have to worry about right clicks etc as this form will be available from anywhere within the app
 
Auguy,

I have this feature in my present application.

I have a button on my main toolbar. When the user clicks the button, they see a popup menu, positioned just below the button. They click on a menu item to launch the relevant form.

This approach works well because the button takes up almost no space, and the user can ignore it if they don't need it.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks to everyone, your insight is appreciated.
 
Ok, I have built my shortcut menu using the menu builder and can pop it up using a right-click. I have also (after reviewing some old posts on this site) passed a parameter to the shortcut. How do I disable some of the items in the shortcut depending on the value of the parameter? I have some code in the Skip For on some items, but would like to control the enable/disable through parameters. Most of the posts I have seen are ones where they are building the shortcut menus through code.

Auguy
Sylvania, Ohio
 
Auguy,

You've answered your own question: You use the SKIP FOR clause. If the SKIP FOR condition evaluates .T., the item will be disabled.

The difficulty is that you can't reference local variables (or parameters) in the SKIP FOR. That's because they will have gone out of scope at the point that the user opens the menu. Instead, copy the values to private variables. These can be accessed from within the menu.

Does that answer your question? If not, perahps you could clarify the problem.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks again for your patience Mike, I guess I didn't think it all the way through to the obvious answer of using private variables. Everything is working perfectly now.

Auguy
Sylvania, Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top