Take a look at
Re: Shortcut menu relative to command button Message #
867967.
>I would like to display a popup menu right above a button?
>For example, I define the popup menu in a Click() method of a
>button and then display it using the following sample code:
>
>
>define popup MyPopMenu shortcut relative from nRow,nCol
>
>
>But I always have to try different values of nRow and nCol until I
>get this menu displayed above the button. Is there a better method
>of determining these coordinates?
--sb--