Rohit,

> thanks for that, it compiled after juggling typecasting.   However,

you're being too kind here.   

there were lots of annoying little errors as i found out when 
I actually tried it.

> WMNCRButtonDown is not fired... Any suggestions ?  Otherwise I ahve
> to have
> a silly situation of having two copies of variable nested menus, one
> for
> left click and the other for right click function.  :-(


actually - it turns out that you CAN get the WMNCRButtonDown event
firing - but it still doesn't help.  After fiddling with it i don't 
see a way to get the menu select to happen.

sending a WM_LButtonDown or a WM_NCLButtonDown doesn't do the job.  
windows is not sufficiently "fooled" into thinking you've left clicked
the menu.

I think the problem is low-level and has something to do with
the way "context" popup menu right clicks are handled.  This may
not be a VCL thing.

anyway - it's harder than it looks.      If you do figure out a 
way i'd be interested in hearing about it.

good luck

ns

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to