不是BUG,是个顺序问题!可以做些调整,如XPMenu.Active,先设False,再调整为True!property Active: boolean read FActive write SetActive;procedure TXPMenu.SetActive(const Value: boolean); begin FActive := Value; if FActive then begin InitMenueItems(false); InitMenueItems(true); end else InitMenueItems(false); Windows.DrawMenuBar(FForm.Handle); end;
[email protected]
实现如何实现XP样式的PopupMenu?
PopupMenu竟然没有,晕……,还是给楼主抬一下,不用第三方控件
如何能够实现,Delphi7他自己使用的PopupMenu竟然可以,哈哈
不明白
当子菜单项过多时(我放了18项),弹出时居然不会自动寻找“能够完整显示所有菜单项”的方法,问题在哪里呀?这个感觉很不爽,我都受不了,用户怎么办?
xpmenu也有奇怪的地方,应用后主菜单项是旧样式的(非xp样式的),而下面弹出的子菜单是xp样式的,上下不统一,感觉也怪怪的,这不知是不是xpmemu的bug?还是我的问题?请各位赐教!谢谢!
begin FActive := Value; if FActive then
begin
InitMenueItems(false);
InitMenueItems(true);
end
else
InitMenueItems(false); Windows.DrawMenuBar(FForm.Handle);
end;