找回密码
 注册
查看: 1473|回复: 8
打印 上一主题 下一主题

请问如何获得当前Design有多少个TextBlock?

[复制链接]
  • TA的每日心情
    无聊
    2022-6-24 15:35
  • 签到天数: 2 天

    [LV.1]初来乍到

    跳转到指定楼层
    1#
    发表于 2014-1-13 15:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    请问下各位!
    我想在设计新加一个TextBlock,比如最后一个TextBlock=50#,那我新加一个就是TextBlock=51#,问题是要如何知道最后一个TextBlock=50?新加一个我可以用笨办法宏来实现?求指点,谢谢!

    该用户从未签到

    2#
    发表于 2014-1-13 17:41 | 只看该作者
    不清楚,有高手吗

    该用户从未签到

    3#
    发表于 2014-1-13 22:37 | 只看该作者
    axlGetParam("paramTextGroup")->groupMembers
  • TA的每日心情
    无聊
    2022-6-24 15:35
  • 签到天数: 2 天

    [LV.1]初来乍到

    4#
     楼主| 发表于 2014-1-14 10:01 | 只看该作者
    kevin890505 发表于 2014-1-13 22:37
    axlGetParam("paramTextGroup")->groupMembers

    非常感谢kevin890505,又学到一招,谢谢!
  • TA的每日心情
    无聊
    2022-6-24 15:35
  • 签到天数: 2 天

    [LV.1]初来乍到

    5#
     楼主| 发表于 2014-1-15 11:42 | 只看该作者
    kevin890505 发表于 2014-1-13 22:37
    axlGetParam("paramTextGroup")->groupMembers

    追问下,如何新加一个TextBlock呢?我现在是通过宏来实现,代码太长了,有时候还会报错,正排查,想简化下,谢谢!

    FORM textblock compact
    FORM textblock add

    该用户从未签到

    6#
    发表于 2014-1-15 12:54 | 只看该作者
    不清楚,有高手吗

    该用户从未签到

    7#
    发表于 2014-1-15 21:31 | 只看该作者
    yneda 发表于 2014-1-15 11:42
    追问下,如何新加一个TextBlock呢?我现在是通过宏来实现,代码太长了,有时候还会报错,正排查,想简化 ...

    axlDBTextBlockCreate
  • TA的每日心情
    无聊
    2022-6-24 15:35
  • 签到天数: 2 天

    [LV.1]初来乍到

    8#
     楼主| 发表于 2014-1-16 10:01 | 只看该作者

    在16.3的help里既然没查到这个函数的介绍,只找到了

    axlDBTextBlockCompact(t/nil)=>x_unusedBlocks
    t   : Compact the text blocks.
    nil : Report the number of text blocks that can be eliminated from the database.


    如果谁有这个函数的介绍,麻烦在这里贴一下,非常感谢!

    该用户从未签到

    9#
    发表于 2014-1-16 14:35 | 只看该作者
    yneda 发表于 2014-1-16 10:01
    在16.3的help里既然没查到这个函数的介绍,只找到了

    axlDBTextBlockCompact(t/nil)=>x_unusedBlocks

    没有,应该不支持,不过你可以试试。介绍如下:
    axlDBTextBlockCreate
    axlDBTextBlockCreate(
    x_blockTemplate
    ?width f_width
    ?height f_height
    ?lineSpace f_lineSpace
    ?charSpace f_charSpace
    ?photoWidth f_photoWidth
    ) => x_textBlock/nil
    Description
    Creates a new text block block from the template block number provided. By providing
    optional textblock charactistics, you can get available text blocks by:
    lst = axlGetParam("paramTextBlock")
    Arguments
    x_blockTemplate
    f_XXX values
    Value Returned
    ■ x_textBlock – new text block
    ■ nil – Returned if the command fails. Typically, this happens when you have exhausted
    the number block Allegro provides, or one of the parameters is not of the correct data
    type.
    See Also
    axlGetParam, axlSetParam, axlDBTextBlockCompact
    Examples
    Create a new text block based upon text block 1 but change width and height
    blockNum = axlDBTextBlockCreate(1 ?width 15.0 ?height 16.0)
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-5-26 02:50 , Processed in 0.078125 second(s), 23 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

    快速回复 返回顶部 返回列表