private void MainForm_SysBottomClick(object sender, SysButtonEventArgs e) { Point loc = PointToScreen(e.SysButton.Location);//获得弹出坐标 loc.Y += e.SysButton.Size.Height + 1; if (e.SysButton.Name == "Skin")//皮肤菜单 { SkinMenu.Show(loc); } else if (e.SysButton.Name == "Settings")//设置菜单 { SettingsMenu.Show(loc); } }
//自定义系统按钮事件 private void FrmMain_SysBottomClick(object sender, CCWin.SkinControl.SysButtonEventArgs e) { //获得弹出坐标 Point l = PointToScreen(e.SysButton.Location); l.Y += e.SysButton.Size.Height + 1; //如果是皮肤菜单 if (e.SysButton.Name == "ToolSkin") { SkinMenu.Show(l); } else if (e.SysButton.Name == "ToolSet") { //如果是设置菜单 SkinToolMenu.Show(l); } }