1、数据窗口隔行颜色显示 在列的字体背景中: if(currentrow()=getrow(),rgb(255,240,194),if(mod(getrow(),2)=1, &rgb(255,254,249) , rgb(247,247,239))) 表达式中rgb(255,240,194)为浅黄色,rgb(255,254,249)为浅白色,rgb(247,247,239)为浅黄色 2、横向滚动条在最右处,当增加一行时,怎样让它滚到最左边呢? dw_1.modify("datawindow.HorizontalScrollPosition=1") 3、ocx注册 1、在DOS或Windows命令行下运行:regsvr32 ocxname.OCX 注册 2、用Install Shield,在里面选“Self-Registered”,安装程序将自动注册。 3、在PB应用程序中注册: 函数声明: Function long DllRegisterServer() Library "ocxname.OCX" 也许未amovie.ocx 调用: LONG ll_RC ll_RC = DllRegisterServer() 4、关闭所有子窗口 关闭所有子窗口 getfirstsheet,getnextsheet do while isvalid(w_main.getfirstsheet()) close(w_main.getfirstsheet()) loop 关闭当前子窗口 window w_tmp w_tmp = w_main.getactivesheet() if isvalid(w_tmp) then close(w_tmp) end if 5 、透明背景 this.BackCo |
04-21
03-03
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交