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_RCll_RC = DllRegisterServer()4、关闭所有子窗口关闭所有子窗口 getfirstsheet,getnextsheetdo while isvalid(w_main.getfirstsheet())close(w_main.getfirstsheet())loop
关闭当前子窗口window w_tmpw_tmp = w_main.getactivesheet()if isvalid(w_tmp) thenclose(w_tmp)end if
5 、透明背景this.BackCo |