我想在grid的数据窗口上加个标题,誰有好办法,快救命!!时间紧急!!
我不想换成freeform,只想在上面加工一下,先谢了
<DW Control Name>.Modify(&
"create text(band=<Detail, Footer, Header, Header.<group #>, Summary, Trailer.<group #>, Background, Foreground>" + &
" color=<a long> alignment=<0 - Left, 1 - Right, 2 - Center> border=<0 - None, 1- Shadow, 2 - Box, 3 - Resize, 4 - Underline, 5 - 3D Lowered, 6 - 3D Raised>" + &
" height.autosize=<Yes or No> pointer=<Arrow!, Cross!, HourGlass!, IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or cursor filename (with path)> moveable=<0 - False, 1 - True> resizeable=<0 - False, 1 - True> x=<an integer> y=<an integer> height=<an integer> width=<an integer> text=<string> + &
" name=<string> tag=<string> font.face=<name of type face (i.e., SYSTEM, COURIER)> font.height=<negative number for points, positive number for PBUs (i.e., -10 = 10 points, 10 = 10 PBUs> font.weight=<400 - Normal, 700 - Bold> font.family=<0 - AnyFont, 1 - Roman, 2 - Swiss, 3 - Modern, 4 - Script, 5 - Decorative> font.pitch=<0 - default, 1 - Fixed, 2 - Variable> font.charset=<0 - Ansi, 1 - default, 2 - Symbol, 128 - Shift jis, 255 - OEM> font.italic=<0 - False, 1 - True> font.strikethrough=<0 - False, 1 - True> font.underline=<0 - False, 1 - True> background.mode=<0 - Opaque, 1 - Transparent> background.color=<a long>)")
最简单的方法,用复合报表,就可以了。/
在HEAD区放一个TEXT框,POSITION设为FOREGROUND,调整一下大小就行了
楼上几位兄台的方法都可以,
把zhanwei(白天不上CSDN)的方法在设计时可以这么做
在header上放两个文本,一个文本用来盖线,一个文本用来放标题,
在文本下面放一条线把它们都拉长一些
当然,你要把这三个控件的属性(position -> layer 的band改为Foreground)