Dim fl As
String = "d:\web\" &
e.path
If filesys.FileExists(fl)
Dim
idx As
Integer = fl.LastIndexOf(".")
Dim
ext As
String = fl.SubString(idx)
Select
Case ext
Case
".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar"
e.WriteFile(fl)
Return
'这里必须返回
End
Select
End
If
Select
Case e.Path
Case
"test.htm"
Dim wb As New WeUI
With wb.AddButtonGroup("","btg",True)
.Add("btn1","单击显示上拉菜单").Attribute = """
End
With
With wb.AddActionSheet("","s1")
.Add("menu1",
"菜单项目1", "http://www.foxtable.com/")
.Add("menu2", "菜单项目2")
.Add("menu3", "菜单项目3").Attribute = ""
.Add("menu4","取消","",True)
End
With
e.WriteString(wb.Build)
End
Select
这段代码可以显示按钮,但点击后不能调出菜单,为什么,帮助里原样COPY的?
[此贴子已经被作者于2017/3/6 10:44:31编辑过]