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

MenuSetLimit() where do I put it???

Status
Not open for further replies.

papollo

Programmer
Oct 19, 2001
71
US
Hey Guys:

In another thread that I started 'Displaying all the code?'
I asked a question about a error message I am getting:
'The number of menu items exceded the limit set'.

kliot and TonyMcGuire gave me some great advice about using the menusetlimit() command.

Well I looked it up in the book I have 'Paradox 9 Power Programming'.

Do I create the mouseRightDown event and place the MenuSetLimit() in that?

Briefly let me tell you how app. works.
The user right clicks on a work order number on the screen and then left click on a Option button. which brings up a bunch of menus titles that the user clicks on and goes to that menu. There is a return button on all the menu.

Now silly me thought there would be a MouseRightDown event in the menu. But there was none.

So do I create the MouseRightDown event.

I am really confused here!!!!!

Thank you very much in advance.
 
As far as I know Tony is correct menusetlimit() is global, you can call it on the init event for the form or on the mouse click or anywhere else for that matter. I'm puzzled when you say there isn't a mouserightdown event, do you have objectpal set to advanced in developer presences?
 
kliot:

That was my problem. I did not have it set to advamnced!

Thanks
 
Great, this should open up a lot of possibilites and may help you find some problem code that was hidden to you before.

One more thing, it's usually more common to use the mouseRightUp event instead of the mouseRightDown. Under most applications the menu pops up when you release the right mouse button not when you press it down.

Good Luck
Perrin
 
Kliot:

Thanks you, I will use the MouseRightUp event instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top