FoxMainMenu
<p>FoxMainMenu,FoxUI提供的窗体主菜单组件。
<strong>属性</strong>
Alpha 透明度</p>
<p>AutoFit 是否自动适应宽度</p>
<p>ImageList 图标列表 对接 <a href="https://www.showdoc.cc/p/ff039e66f52948a431eb58f823029a54" title="FoxUIBmp32List">FoxUIBmp32List</a></p>
<p>ItemWidthDefault 菜单默认宽度 80</p>
<p>ItemWidthMax 菜单最大宽度 120</p>
<p>MarginSet 间距管理
ImgList 图标间距
Item 菜单项间距
Space 通用间距
Txt 文字间距</p>
<p>MenuItems 菜单项集合</p>
<p>PopupSetting 弹出菜单设置 具体见[FoxPopupMenu]( <a href="https://www.showdoc.cc/p/94e26e335005d1b7eb076bf28ccc13f0">https://www.showdoc.cc/p/94e26e335005d1b7eb076bf28ccc13f0</a> "FoxPopupMenu")</p>
<p>RoundValue 圆角设置</p>
<p>SkinSet 皮肤管理
Back 背景图皮肤序号
Item 菜单项皮肤序号
Popup 弹出菜单皮肤设置 具体见 [FoxPopupMenu]( <a href="https://www.showdoc.cc/p/94e26e335005d1b7eb076bf28ccc13f0">https://www.showdoc.cc/p/94e26e335005d1b7eb076bf28ccc13f0</a> "FoxPopupMenu")</p>
<p>Transparent 背景透明</p>
<p><strong> 提供的事件</strong>
OnAfterDraw(Sender: TObject; DstBmp: TBitmap32;Arect: TRect);</p>
<p>OnBeforeDraw(Sender: TObject; DstBmp: TBitmap32;Arect: TRect);
内部绘制前后事件</p>
<p>OnItemBeforeDraw,OnItemAfterDraw 项目绘制前后触发</p>
<p>OnItemFontSelect 项文字输出时候触发 方便动态修改字体</p>
<p>OnItemColorSelect 项颜色输出时候触发</p>
<p>OnItemMeasure 画菜单的时候动态修改菜单尺寸</p>
<p>OnItemOwnerDraw 项自绘制触发</p>
<p>OnBorderSelect 边框颜色输出触发</p>
<p>PopupMenuPopup 菜单弹出触发,我们这里可以给PopupMenu绑定我们对应的事件</p>
<p><strong>提供的方法</strong>
procedure ResetState; //恢复状态
procedure Clear;//清除所有菜单项
procedure RefreshPopupMenuItem(Aitem:TFoxMenuItem);//刷新弹出菜单
function Additem: TFoxMainMenuItem; //增加菜单项
procedure DeleteItem(item:TFoxMainMenuItem);//删除菜单项</p>