清泛IT社区App Inventor 2 中文社区

搜索

扫码访问移动社区 移动社区,您的掌上技术专家

关注我,精彩不错过! 关注我,精彩不错过!

扫码安装最新版AI伴侣 最新版AI伴侣v2.75

Aia Store .aia 源码一站式解决方案 发布日志AI2连接测试ai2Starter模拟器

App Inventor 2 离线版AI2 拓展接入DeepSeek VIP会员 享专有教程,免费赠送基础版*技术支持服务! AI2入门必读中文文档中文教程IoT专题

查看: 27|回复: 0
打印 上一主题 下一主题

[经验分享] ClickTools 拓展:为布局、标签等没有点击事件的组件添加点击事件

  • TA的每日心情
    开心
    半小时前
  • 签到天数: 523 天

    [LV.9]以坛为家II

    809

    主题

    1376

    帖子

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    36940

    AI2中文网VIP弹球达人接水果达人撸猫达人

    跳转到指定楼层
    楼主
    发表于 前天 22:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    Blocks
    [size=15.008px]


    [size=15.008px][color=var(--tertiary)][color=var(--secondary)]blocks (2)[color=var(--secondary-high)]499×533 28.5 KB

    Documentation -

    component ~ component
    id ~ int (number)


    id ~ id you used for your registered component
    Use this event to set blocks of component click.


    error ~ It returns the error if something went wrong
    Use this event to do something after error occured
    [color=var(--primary-high-or-secondary-low)][backcolor=var(--blend-primary-secondary-5)]
    Techno_Vedang:

    component ~ component
    It performs click of component without clicking that component. It can be done using procedures also still I thought to add it to extension.

    Now it is possible to do long click of component.

    [size=15.008px] IMPORTANT
    If you register button or another clickable components then the built in .Click event will not work
    See here
    [color=var(--primary-high-or-secondary-low)][backcolor=var(--blend-primary-secondary-5)]
    Anke:
    if a component has been registered, the original .Click event (e.g. Button.Click ) will no longer be executed.


    注:通过拓展添加了点击事件后,原来已有的点击事件将不再触发。


    https://community.appinventor.mi ... ew-components/18069

    in.vedang.clicktool.aix

    7.72 KB, 阅读权限: 90, 下载次数: 0, 下载积分: 经验 1

    App Inventor 2 中文网 - MIT同步更新的中文本土化平台!v2.75 支持Android 14 更新日志
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    © 2025 tsingfun.com, Inc.  沪ICP备2020034476号-1  沪公网安备31011702000040号

    GMT+8, 2025-07-24 08:13 , Processed in 0.025530 second(s), 40 queries .