|
-
Mar 20th, 2000, 04:56 AM
#1
Thread Starter
Junior Member
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
-
Mar 20th, 2000, 05:12 AM
#2
Frenzied Member
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.
-
Mar 20th, 2000, 06:35 AM
#3
Thread Starter
Junior Member
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?
-
Mar 20th, 2000, 07:23 AM
#4
Frenzied Member
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.
-
Mar 20th, 2000, 07:32 AM
#5
Thread Starter
Junior Member
yea,
thanks for that, this seem to work ok
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|