高分解决 200

runsoft 2007-09-28 01:39:08
一个网友问:
一个数据窗口单元格中,文本类型的,值为 ,
dw_x.object.cell[1] = '123:1000'

问如何把 123变成红色 1000为绿色

PB有办法解决.如不可以,API 下可以解决。

上面的问题我解决不了,希望各位高手能否帮忙解决。多谢!
...全文
127 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
AFIC 2007-10-01
  • 打赏
  • 举报
回复
这样的话只能贴个文本,文本写表达式,然后背景设透明。

$PBExportHeader$dw_test.srd
release 10;
datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=92 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=100 color="536870912" )
table(column=(type=char(10) updatewhereclause=yes name=a dbname="a" )
)
data("123:1000",)
column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="32768" x="9" y="8" height="88" width="366" format="[general]" html.valueishtml="0" name=a visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="0" text="text~tleft(a,pos(a,':')) " border="0" color="255" x="9" y="8" height="84" width="366" html.valueishtml="0" name=t_1 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="553648127" )
text(band=header alignment="2" text="A" border="0" color="33554432" x="9" y="8" height="76" width="366" html.valueishtml="0" name=a_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" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
xhtmlgen() cssgen(sessionspecific="0" )
xmlgen(inline="0" )
xsltgen()
jsgen()
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
export.xhtml()
runsoft 2007-09-28
  • 打赏
  • 举报
回复
必须在GRID格式下,FREE格式不支持 拖拉.
OracleRoob 2007-09-28
  • 打赏
  • 举报
回复
自己画试试
scq2099yt 2007-09-28
  • 打赏
  • 举报
回复
帮楼主顶!
sbks 2007-09-28
  • 打赏
  • 举报
回复
如果是用tabular风格,可以考虑用两个计算列显示,左右对齐方式一个右对齐,另一个左对齐就可以了

其它显示风格,因为有网格线的存在,想不出其它办法处理了
qiuming0306 2007-09-28
  • 打赏
  • 举报
回复
是table单元格吗
runsoft 2007-09-28
  • 打赏
  • 举报
回复
UP
Kenqin 2007-09-28
  • 打赏
  • 举报
回复
Will,如果用超文本可以解决呀。
智多星 2007-09-28
  • 打赏
  • 举报
回复
条条道路通罗马
换一种思路解决咯。
子一个文本编辑框里解决不了,就拆开咯。

1,079

社区成员

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

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