请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

baichi123

注册会员

13

主题

20

帖子

165

积分

注册会员

积分
165
baichi123
注册会员   /  发表于:2019-10-10 11:26  /   查看:2803  /  回复:1
1金币
ComboBox可编辑的时候,鼠标的形状是空心十字。而不可编辑的时候,鼠标的形状是箭头。
可以统一成空心十字吗?

1 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-10-10 11:35:56
沙发
您可以参考下下面代码,新建个celltpye,重写GetReservedCursor

  1. public class myButtonCelltypeChangedCursor : FarPoint.Win.Spread.CellType.ButtonCellType
  2.     {
  3.         public override Cursor GetReservedCursor(object o)
  4.         {
  5.             return Cursors.Hand;
  6.         }
  7.     }
  8.             fpSpread1.ActiveSheet.Rows.Count = 5;
  9.             fpSpread1.ActiveSheet.Columns.Count = 2;
  10.             fpSpread1.ActiveSheet.Columns[1].Width = 200;
  11.             myButtonCelltypeChangedCursor bttncell = new myButtonCelltypeChangedCursor();
  12.             bttncell.ShadowSize = 3;
  13.             bttncell.Text = "ButtonCellType";
  14.          
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部