当前位置: 代码迷 >> PB >> create text()语法,该怎么处理
  详细解决方案

create text()语法,该怎么处理

热度:484   发布时间:2016-04-29 09:02:31.0
create text()语法
请问大家create text()的具体语法是怎么样的?谢谢。

------解决方案--------------------
<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>')")
------解决方案--------------------
抄别个的,你参考一下看,不晓得有没有用:
C/C++ code
string ls_createls_create = " Create Text(Band=Detail Name=" + Text_t + " Text='" + exp[li] + "' "ls_create = ls_create + " x='100' Y='100'  Height='100' Width='100' font.face='字体' font.height='字号' font.weight='400' font.charset='134' alignment='2' background.mode='1' )  "dw_1.modify(ls_create)
------解决方案--------------------
这是我窗口中的 , 需要改哪自己替换下 ,然后 modify 就可以了 

C# code
text(band=header alignment="2" text="Sdfd" border="0" color="33554432" x="9" y="8" height="76" width="320" html.valueishtml="0"  name=sdfd_t visible="1"  font.face="Tahoma" font.height="-12" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  相关解决方案