To set the position of the stylus pop-up menu, use the method SetPosition()in the class CAknStylusPopUpMenu.