请帮帮我!

boby_v 2000-02-16 10:08:00
我刚学PB不久,现在遇到两个问题:
1、如何在FREEFORM风格的数据窗口中用ENTER键代替TAB键?
2、在FREEFORM风格数据窗口中按ENTER键时,如何取得光标所在的列名?
3、PB6中如何简便地调IE来显示一个网页?
4、如何给PB6数据窗口中的按钮加快捷键?
请指点!最好给小弟一点源码范例,定给80分!
...全文
188 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
boby_v 2000-02-18
  • 打赏
  • 举报
回复
感谢at1998的建议,但是我试了一下还是不行,一按ENTER,光标就跳离了数据窗口!不知道是否还有什么地方没搞对!
boby_v 2000-02-18
  • 打赏
  • 举报
回复
谢谢,已经搞定,是怪我自己不小心设了某个按钮的DEFAULT属性,一改就行了!
at1998 2000-02-18
  • 打赏
  • 举报
回复
不要"return 1" 把1去掉。return便可,笔误,抱歉,你再试试。
at1998 2000-02-16
  • 打赏
  • 举报
回复
在上面的事件里用getcolumnname()函数应该行吧。
例如
sting ls_colname
ls_colname = this.getcolumnname()
at1998 2000-02-16
  • 打赏
  • 举报
回复
//用enter代替tab的事件
//在数据窗口中定义个用户事件,pbm_dwnprocessenter
//再抄上下面的代码就行了。这也是从sybase.com.cn上抄的。
if this.AcceptText() < 0 then
//this.SetActionCode(1)
Return 1
end if

if this.GetColumn() = Long(this.Describe("datawindow.column.count")) then
if this.GetRow() = this.RowCount() then
this.Insertrow(0)
this.ScrollToRow(this.GetRow() + 1)
this.SetColumn(1)
//this.SetActionCode(1)
Return 1
end if
end if

Send(Handle(this),256,9,Long(0,0))
//this.SetActionCode(1)
return 1

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧