关于PFC的数据窗口resize服务

softdear 2003-03-13 05:11:27
请问如何使用PFC中数据窗口的resize服务?

1、是不是在数窗的RESIZE事件中先OF_SETREQUESTOR(),然后OF_REGISTER(),最后PFC_RESIZE()?
2、N_CST_DWSRV_RESIZE中有许多of_register()函数,应先调用哪一个?
...全文
25 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
softdear 2003-03-14
  • 打赏
  • 举报
回复
楼上两位,注意我说的是数据窗口,而不是窗口,窗口的我已经会了。
boyliulang 2003-03-13
  • 打赏
  • 举报
回复
含有scale的控件会在窗口resize按比例变大小,fixed不会.


w_1.of_setresize(TRUE)

inv_resize.of_Register(st_v,inv_resize.SCALEbottom)
inv_resize.of_Register(tv_1,inv_resize.SCALEbottom)
inv_resize.of_Register(gb_2,inv_resize.SCALEBOTTOM)
inv_resize.of_Register(tv_3,inv_resize.SCALErightBOTTOM)
inv_resize.of_Register(gb_1,inv_resize.SCALErightBOTTOM)

inv_resize.of_Register(cb_add, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(cb_item_change, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(cb_price, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(cb_1, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(cb_find, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(cb_cancel, inv_resize.FIXEDRIGHTbottom)
inv_resize.of_Register(st_v, inv_resize.FIXEDbottom)

inv_resize.of_Register(gb_4, inv_resize.FIXEDRIGHT)
inv_resize.of_Register(gb_5, inv_resize.FIXEDRIGHTBOTTOM)
andyzq 2003-03-13
  • 打赏
  • 举报
回复
给你一段参考参考

// Window Resize Behavior
this.of_setresize(TRUE)

// Register the controls with the SplitBar
st_v1.of_Register(dw_1, st_v1.left)
st_v1.of_Register(lv_1, st_v1.right)
st_v1.of_Register(st_h1, st_v1.right)
st_v1.of_Register(dw_2, st_v1.right)

st_h1.of_Register(lv_1, st_h1.above)
st_h1.of_Register(dw_2, st_h1.below)

inv_resize.of_register(dw_1,inv_resize.scalebottom)
inv_resize.of_register(st_v1,inv_resize.scalebottom)
inv_resize.of_register(lv_1,inv_resize.scaleright)
inv_resize.of_register(st_h1,inv_resize.scaleright)
inv_resize.of_register(dw_2,inv_resize.scalerightbottom)

604

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 控件与界面
社区管理员
  • 控件与界面社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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