在PB GUI中利用of_opentab(对象,用户对象,文本,图片)打开窗口是空缺
在PB GUI中利用of_opentab(对象,用户对象,文本,图片)打开窗口是空白
如题:
代码如下:
string li_sqlwindow
select funcwindow into :li_sqlwindow from sysfunction where funcname=:tv_item;
if IsNull(li_sqlwindow) Or Len(Trim(li_sqlwindow)) = 0 then return
powerobject li_openwindow
li_openwindow = create using li_sqlwindow
if li_openwindow.typeof() = window! then
window ow
w_main.uo_tabcontrol.of_opentab(ow,li_openwindow,tv_item,1)
w_main.uo_tabcontrol.of_SelectTab(w_main.uo_tabcontrol.of_gettabcount( ))//打开显示当前窗口
else
userobject uob
w_main.uo_tabcontrol.of_opentab(uob,li_openwindow,tv_item,1)
w_main.uo_tabcontrol.of_SelectTab(w_main.uo_tabcontrol.of_gettabcount( ))//打开显示当前窗口
end if
已经实现动态打开窗体,但显示的为空白界面!利用of_opentab(userobject uo,astext,picindex)这样的函数是没有问题!
------解决方案--------------------
我也在等待这个问题!
------解决方案--------------------
http://download.csdn.net/detail/pcwe2002/4277998
------解决方案--------------------
是不是ow 没有creatte
------解决方案--------------------
肯定是空的 因为你没有给OW赋值,OW还是个NULL
------解决方案--------------------
在判断li_openwindow为window!后是对ow进行了实例化了的,如果是为window的话,这代码是正确的,不是空白的
关键在于为userobject是,则才是空白!
------解决方案--------------------
在下面代码中增加ref 如w_main.uo_tabcontrol.of_opentab(ref ow,li_openwindow,tv_item,1)
这段代码没问题!
------解决方案--------------------
你这个就不要发了嘛!界面组件SatManager 是免费的不?
如题:
代码如下:
string li_sqlwindow
select funcwindow into :li_sqlwindow from sysfunction where funcname=:tv_item;
if IsNull(li_sqlwindow) Or Len(Trim(li_sqlwindow)) = 0 then return
powerobject li_openwindow
li_openwindow = create using li_sqlwindow
if li_openwindow.typeof() = window! then
window ow
w_main.uo_tabcontrol.of_opentab(ow,li_openwindow,tv_item,1)
w_main.uo_tabcontrol.of_SelectTab(w_main.uo_tabcontrol.of_gettabcount( ))//打开显示当前窗口
else
userobject uob
w_main.uo_tabcontrol.of_opentab(uob,li_openwindow,tv_item,1)
w_main.uo_tabcontrol.of_SelectTab(w_main.uo_tabcontrol.of_gettabcount( ))//打开显示当前窗口
end if
已经实现动态打开窗体,但显示的为空白界面!利用of_opentab(userobject uo,astext,picindex)这样的函数是没有问题!
------解决方案--------------------
我也在等待这个问题!
------解决方案--------------------
http://download.csdn.net/detail/pcwe2002/4277998
------解决方案--------------------
是不是ow 没有creatte
------解决方案--------------------
肯定是空的 因为你没有给OW赋值,OW还是个NULL
------解决方案--------------------
在判断li_openwindow为window!后是对ow进行了实例化了的,如果是为window的话,这代码是正确的,不是空白的
关键在于为userobject是,则才是空白!
------解决方案--------------------
在下面代码中增加ref 如w_main.uo_tabcontrol.of_opentab(ref ow,li_openwindow,tv_item,1)
这段代码没问题!
------解决方案--------------------
你这个就不要发了嘛!界面组件SatManager 是免费的不?