给看看这个怎么弄?

broadken 2004-06-19 12:15:14

column1 column2

啊啊啊啊啊 AAAAAAA
啊啊啊啊啊(此列自动环行)
啊啊啊啊啊


column1 column2

啊啊啊啊啊
啊啊啊啊啊(此列自动环行) AAAAAAA
啊啊啊啊啊

如何让地2列垂直方向居中阿?
...全文
187 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
renwanly 2004-07-08
  • 打赏
  • 举报
回复
up
cdmhua 2004-07-05
  • 打赏
  • 举报
回复
up
freeliu 2004-07-05
  • 打赏
  • 举报
回复
###是指你字段的高度。
entertcl 2004-07-01
  • 打赏
  • 举报
回复
完全听不懂,不过帮你顶
broadken 2004-07-01
  • 打赏
  • 举报
回复
怎么不来了大家!
CsdnRob 2004-07-01
  • 打赏
  • 举报
回复
up
broadken 2004-06-29
  • 打赏
  • 举报
回复
to: freeliu()

字段的高度是自动变化的。他有autoheight属性。也就是会根据字的多少
自动调整宽度的。
###这个是固定的高度是吗?
freeliu 2004-06-28
  • 打赏
  • 举报
回复
用rowheight()可以得到带的高度。字段高度你在设计的时候自己定义的。
所以应该在字段的y坐标输入这样的公式:(rowheight() - ###) / 2
broadken 2004-06-27
  • 打赏
  • 举报
回复
to :freeliu()

我也是这么想的,可是代码不知道怎么写,只是写了一个根据字符多少进行判断
y坐标的。请把相关代码给一个。
谢谢!!
lywei 2004-06-27
  • 打赏
  • 举报
回复
在height 属性设置(带高度 - 字段高度)/2
freeliu 2004-06-21
  • 打赏
  • 举报
回复
可以用代码设置column2的Y坐标位置始终等于(带高度 - 字段高度)/2
broadken 2004-06-21
  • 打赏
  • 举报
回复
这个办法好用吗?怎么还是不行啊?
来点实际好用的吧。
mittee 2004-06-20
  • 打赏
  • 举报
回复
background.mode="2" 把该文本设置为浮动的

string ls_text
ls_text = ' create text(band=detail alignment="1" text="Ls Name:" border="0" color="33554432" x="37" y="4" height="76" width="306" html.valueishtml="0" name=ls_name_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="536870912" ) '
dw_1.modify(ls_text)
「已注销」 2004-06-20
  • 打赏
  • 举报
回复
帮助里只有两种取值 0 与 1

1是透明色……

这不关绕排的事啊
「已注销」 2004-06-20
  • 打赏
  • 举报
回复
Property for Background Value
Color (exp) A long expression specifying the color (the red, green, and blue values) to be used as the object's background color
Mode (exp) A number expression specifying the mode of the background of objectname. Values are:0 ?Make the object's background opaque1 ?Make the object's background transparent


将mode设置为2到底是什么意思呢
broadken 2004-06-19
  • 打赏
  • 举报
回复
给详细一点。
100分全丰上。这个动态文本还得支持换行。
mittee 2004-06-19
  • 打赏
  • 举报
回复
你可以动态生成一个文本,backgroud.mode ="2"
将其移动你需要的地方

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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