H houtor Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-07 #1 1、在做弹出式菜单时,其弹出的方向有时往下,有时又往上,如何定它的弹出方向,就像主菜单一样,只往下或往上弹。 2、如何规格其弹出的位置。
B babibean Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-07 #4 var point: Tpoint; begin point.x := Button1.left; point.y := Button1.top; point := Button1.parent.ClientToScreen(Point); PopupMenu1.popup(point.x, point.y - 60); end;
var point: Tpoint; begin point.x := Button1.left; point.y := Button1.top; point := Button1.parent.ClientToScreen(Point); PopupMenu1.popup(point.x, point.y - 60); end;
K kkyy Unregistered / Unconfirmed GUEST, unregistred user! 2006-04-07 #5 你指定位置在上面一点,-菜单高度不要小于0了,就会在上面弹出了.