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

来源:互联网 发布:拓扑排序算法流程图 编辑:程序博客网 时间:2024/06/05 07:37
 
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 )  

原创粉丝点击