会者不难,难者不会(如何改变一个工具条的位置,不是简单的改变哦,高手进来)

zhangpowerbuilder 2004-12-21 10:36:47
用opensheet(w_cardfind,parentwindow,0,layered!)
原本主窗口上有个工具条,
打开这个窗口也有个工具条,
结果打开这个窗口的标题栏被它自带的工具条给挡住了,
我想能否把这个窗口的工具条挪到主窗口的工具条后面,
该怎么编写代码?
...全文
90 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangpowerbuilder 2004-12-21
  • 打赏
  • 举报
回复
10,50,40,0
贴子回复次数大于跟给分次数


??怎么不能结帖?
zhangpowerbuilder 2004-12-21
  • 打赏
  • 举报
回复
wwwwww.SetToolbarPos(1, 1, 1, FALSE)
zhangpowerbuilder 2004-12-21
  • 打赏
  • 举报
回复
ok,jie fen ba!
WorldMobile 2004-12-21
  • 打赏
  • 举报
回复
我也曾经碰到过这个问题,当时就是用SetToolbarPos这个函数实现的
WorldMobile 2004-12-21
  • 打赏
  • 举报
回复
用SetToolbarPos函数

窗口名.SetToolbarPos(2, 1, 250, FALSE)
Description

Sets the position of a docked toolbar.

Controls

MDI frame and sheet windows

Syntax

window.SetToolbarPos ( toolbarindex, dockrow, offset, insert )

Argument Description
window The MDI frame or sheet to which the toolbar belongs
toolbarindex An integer whose value is the index of the toolbar whose settings you want to change
dockrow An integer whose value is the number of the docking row for the toolbar. Docking rows are numbered from left to right or top to bottom
offset An integer whose value specifies the distance of the toolbar from the beginning of the docking row. For toolbars at the top or bottom, offset is measured from the left edge. For toolbars on the left or right, offset is measured from the top.If replace is TRUE, the offset you specify is adjusted so that the toolbar doesn't overlap others in the row.Specify an offset of 0 to position the toolbar ahead of other toolbars in dockrow
insert A boolean value specifying whether you want to insert the specified toolbar before the toolbars in dockrow causing them to move over or down a row, or you want to add toolbarindex to dockrow. Values are:?TRUE ?Move any toolbars already in dockrow or higher rows over or down a row so that the toolbar you are moving is the only toolbar in the row?FALSE ?Add the toolbar you are moving to dockrow. Its position in relation to other toolbars in the row is determined by offset
progrose 2004-12-21
  • 打赏
  • 举报
回复
参考http://search.csdn.net/Expert/topic/937/937545.xml?temp=.2382929
或者在搜索里面搜一搜,以前有这样的帖子。

1,075

社区成员

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

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