找回密码
 立即注册

QQ登录

只需一步,快速开始

sinmax

注册会员

11

主题

46

帖子

183

积分

注册会员

积分
183

活字格认证

sinmax
注册会员   /  发表于:2011-8-8 21:17  /   查看:6146  /  回复:3
FarPoint ActiveX 8.0

3 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-8-8 21:29:00
沙发
你是想要一个类似于下拉框的功能吧,可以通过设置CellType = CellTypeComboBox来实现:
  1. ' Specify a cell
  2. fpSpread1.Row = 2
  3. fpSpread1.Col = 2
  4. ' Define cell type as combo box
  5. fpSpread1.CellType = CellTypeComboBox
  6. ' Specify text for the combo box
  7. fpSpread1.TypeComboBoxList = "Mastiff" + Chr$(9) + "Sheepdog"+ Chr$(9) + "Terrier" + Chr$(9) + "Spaniel" + Chr$(9)+ "Pointer" + Chr$(9) + "Coonhound"
  8. ' Allow the user to edit the list
  9. fpSpread1.TypeComboBoxEditable = True
  10. ' Set the number or rows to display
  11. fpSpread1.TypeComboBoxMaxDrop = 3
  12. ' Select the first item in the list
  13. fpSpread1.TypeComboBoxCurSel = 0
  14. ' Set the width to display the widest item in the list
  15. fpSpread1.TypeComboBoxWidth = 1
复制代码
18352080007557.png
回复 使用道具 举报
sinmax
注册会员   /  发表于:2011-8-9 13:03:00
板凳
我想要多列,但CellTypeComboBox只能有一列,所以要想自已来弹一个LiveView出来!!
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-8-10 10:45:00
地板
你说的是这种功能吧,很遗憾在Spread 8 ActiveX版本无法实现该功能 :~
multicolumn.png (18.76 KB, 下载次数: 208)
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部