PFC中莫名其妙的问题!!! (怀疑是PB的BUG,不晓得大家遇到过没!!)

老板卤两个蛋蛋 2005-06-24 10:00:29
一个 response 的窗体中有一个数据窗口,由于数据比较多,增加了一个查询功能按钮:直接调用PFC的pfc_findDlg事件。

在查询的时候,如果没有查到结果的话没问题,提示“查询完毕”;但是如果有查询结果的话,对应的查询结果会被选定,但是这个查询对话框就死了,用鼠标点它点不动,键盘敲它也不响应,不过它的父response窗体仍然有响应,此时我点查询,查询对话框就会“复活”(如果查询对话被拉动了位置也会回到初始的位置)。

另外,sheet 中的查询一切正常!!
...全文
229 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
查找对话框是PFC的(继承至 popup! ) , 不是response . 我只是汉化了一下.

在查询的时候,如果没有查到结果的话没问题,提示“查询完毕”:这个提示信息当然是response的了(messageBox)

我想可能也是窗体类型的缘故,BUG跟踪也发现不了问题,想修改PFC,修改不了 越改越不对口 !!
lzheng2001 2005-06-24
  • 打赏
  • 举报
回复
注意窗口的类型! 弹出的对话框窗口是什么类型的?
yzip 2005-06-24
  • 打赏
  • 举报
回复
这是因为窗口中只能允许一个response窗口获得焦点,需要修改一下pfc库,或者自定义一个查找窗口,将查找窗口的类型改成response类型就可以了
  • 打赏
  • 举报
回复
好已经搞定,新增了of_setParentWindow () 和of_getParentWindow () 函数

明天来揭贴 整理一下 大家看没有必要结为FQA没????//???
  • 打赏
  • 举报
回复
谢谢(擒拿手) 估计先也就只好这样解决了 明天要交差 ~~~
  • 打赏
  • 举报
回复
我把PFC的 findDlg窗体类型改为 child! 就不会出现死掉的情况, 但这样自也不是解决的办法 - 这样当关闭查询对话框窗时查找到的内容不会高亮度显示,而且child!的窗体没有标题栏,不能用鼠标拉动(自己写代码闲麻烦)很不友好!!

各位有好的解决方案吗?

yzip 2005-06-24
  • 打赏
  • 举报
回复
我也遇到了这样的问题,本身是popup的,这样的好处是可以同时操作父窗口,还有查询的窗口,但是如果有response窗口弹出,就会被卡死,解决方法就是就是将弹出窗口的类型改为response类型,保证当前只有一个获得交点的窗口。
你可移将w_find另存一下,然后修改其类型为response,在response类型窗口弹出时,手工打开这个窗口。或者修改pfc_finddlg事件,先判断当前数据窗口所在窗口的类型,然后决定弹出那种类型的查找窗口。如:
window lw_tmp
boolean lb_popup=TRUE
if Of_getParentwindow(lw_tmp) = 1 then
if lw_tmp.windowtype = Response! then lb_popup=FALSE
end if

if lb_popup then
openwithparm(w_dw_find,this)
else
openwithparm(w_dw_find_response,this)
end if

Return 1
  • 打赏
  • 举报
回复
踩一脚 ~~~
运行效果 http://hi.csdn.net/attachment/201012/9/0_1291865794j998.gif ************************************************************************* PowerBuilder Foundation Class Library Version 9.0 R E L E A S E N O T E S Copyright ?1996-2003 Sybase, Inc. and its subsidiaries. All rights reserved. ************************************************************************* Last Updated: January 17, 2003 ************************************************************************* Please take a few minutes to review this file for fixes that were made in PowerBuilder 8.0.2 and 9.0. ************************************************************************* BUG FIXES IN PFC 9.0 ************************************************************************* CR300376 Object: pfc_n_cst_fileSrv, pfc_n_cst_fileSrvwin32 Method: OfGetDiskSpace Fix: Method returned a negative number when the calculated amount of free disk space exceeded 2 gigabytes. Added new method of_GetDiskSpaceEx that takes decimals as arguments instead of longs. of_GetDiskSpace will be obsolete in a future release. ************************************************************************* BUG FIXES IN PFC 8.0.2 ************************************************************************* PFC.PBR CR256529 Fix: The PFC.PBR file can be used to copy bitmaps and dynamically referenced DataWindow objects into the executable file for deployment. The following bitmap files that were removed from PFC have now been removed from the PFC.PBR file: details.bmp, helptop.bmp, largeico.bmp, listv.bmp, and smallico.bmp. ======================================================== PFC DataStore CR261992 Object: pfc_u_ds Method: pfc_print/pfc_printdlg Fix: Changed the return code test to check for 1 on success, otherwise there is an error or the user cancelled. Fix: Set the

1,075

社区成员

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

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