I've been experimenting with creating context menus by following the knowledge base document. I don't have any problems getting this to work but I am confused on how it works so I was hoping someone could answer a few questions for me.
How does it know when to display the menu? I've noticed that there is no code (that I'm aware of) that triggers the capturing of the right click of a mouse in the example. Is it relying on a built in feature of the Windows operation system? If so, then was this feature also within Windows 3.x (because it works there as well)?
Thank you,
dbakke@srpcs.com
I've noticed that this technique does not work with edittables. I'm assuming this way edittables are classed. Can I work around this in any way, especially if I use the alternative method for emplementing a right click within an edittable?
Is it possible to display a context menu "on demand", i.e. without relying on a built-in Windows feature. I want to, for example, call a pop-up (context) menu by a key combination.
Finally, how does Windows 95's automatic context menu features get suppressed in all of this?
Thank you some more,
dbakke@srpcs.com
Hi Don,
I think OI's context menus are part of PS, which calls the TrackPopupMenu API call when it detects the right mouse click ( though I could be wrong Gene/Cam ? ).
I once remember someone telling me that getting the menus to appear at the bottom of each control as per the (then) current Windows UI guidelines was a real pain, so I don't think it's a standard Windows function.
]] I've noticed that this technique does not work with edittables. I'm assuming this way edittables are classed. Can I work around this in any way, especially if I use the alternative method for emplementing a right click within an edittable? ] Is it possible to display a context menu "on demand", i.e. without relying on a built-in Windows feature. I want to, for example, call a pop-up (context) menu by a key combination. ] Finally, how does Windows 95's automatic context menu features get suppressed in all of this? Sprezzatura Ltd[/url]
World Leaders in all things RevSoft (Except VIP)
Thank you some more,
Don Bakke
Hi Don,
I think OI's context menus are part of PS, which calls the TrackPopupMenu API call when it detects the right mouse click ( though I could be wrong Gene/Cam ? ).
I once remember someone telling me that getting the menus to appear at the bottom of each control as per the (then) current Windows UI guidelines was a real pain, so I don't think it's a standard Windows function.
]] I've noticed that this technique does not work with edittables. I'm assuming this way edittables are classed. Can I work around this in any way, especially if I use the alternative method for emplementing a right click within an edittable? ] Is it possible to display a context menu "on demand", i.e. without relying on a built-in Windows feature. I want to, for example, call a pop-up (context) menu by a key combination. ] Finally, how does Windows 95's automatic context menu features get suppressed in all of this? Sprezzatura Ltd[/url]
World Leaders in all things RevSoft (Except VIP)
Thank you some more,
Don Bakke