您的位置:首页 > 其它

PB用语句实现控件的Bring to Front和Send to Back

2011-11-23 14:30 585 查看
PB用语句实现控件的Bring to Front和Send to Back

目的:

在窗口和DW中的控件,位置重叠后,需要指定有的控件在前,有的在后.

一般来说,可以在PB的设计画板中用鼠标右键中的"Bring to Front"和"Send to Back"来实现,但如果是动态创建的DW如何用语句来控制呢?

过程:

DW中的控件可用 SetPosition(string controlname, string band , boolean  bringtofront ) 函数

参数:

controlname : 要设置的控件名,可用变量

band : detail, header, footer, summary, header.#, and trailer.#, where #

bringtofront : TRUE - Bring it to the Front ; FALSE - Do not bring it to ghe Front

如:

dw_1.SetPosition ( "rr_" + string(i) , "detail", false )
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: