-
Hi there
1) I was just wandering if it is possible to be able to change the text and number of parts that appear in popup menus, by code and if possible how do you do it?
2) and secondly does anyone know how when using the DBGrid control you can tell which cell you are currently over, that is both the column number and the record number?
Any help is much appreciated, thanks piers
-
I can do the popup menu question, just use the menueditor to create the menu you want, write the code for its events and when you want it to pop up the command line is
PupupMenu MenuName
where MenuName is the name of the menu.
-
oh
er, are you saying here that there is no way that i can dynamically change menu's i just have to create lots, ie one for each situation?
-
Oh, Right
sorry I didn't get what you were trying to do
There's 2 ways to do this,
The first involves a whole **** load of API routines, and some hardcore subclassing.
The second doesn't
If it's ok with you I'll just tell you the second method
Put all the menu items you need into one menu, when you call the popup menu just make the menu items you want to show visible and all the others invisible.
-
yea,
thanks for that, this seem to work ok