Giter Site home page Giter Site logo

Comments (6)

nmgwddj avatar nmgwddj commented on August 15, 2024

无法快速找到自己想找到的控件,这的确是目前 duilib 的短板,目前的情况如果是自己的项目我建议在 xml 中做好注释,代码分块,让逻辑看起来更加清晰一些。
您说的类似 spy++ 的功能,高度依赖原生 Win32 控件的一些特性,做一个外部工具来实现这样的功能对核心代码改造也是非常大的,目前阶段我们可以不会考虑制作类似的功能。

from nim_duilib_framework.

roc1 avatar roc1 commented on August 15, 2024

@nmgwddj ,如果提供一个debug选项,然后代码检查比如"ctrl+鼠标“消息,这个时候可以根据鼠标 pos 判断在哪个控件上,然后改变控件 border 属性。并且获取到控件的 xml,以tooltip形式显示。
这样呢?

from nim_duilib_framework.

smallevilbeast avatar smallevilbeast commented on August 15, 2024

这个实现起来也不难 , 向目标文件注入一个dll, 使用duilib库遍历内存

from nim_duilib_framework.

roc1 avatar roc1 commented on August 15, 2024

这个实现起来也不难 , 向目标文件注入一个dll, 使用duilib库遍历内存

感觉这样有点复杂了。
我的想法是监听一个快捷键,比如“ctrl+d”,然后 duilib 内部对快捷键处理,获取到鼠标pos处的控件。
然后给控件加属性,比如 border。并且,弹出一个窗口显示这个控件的 xml。
这样就可以了。

from nim_duilib_framework.

nmgwddj avatar nmgwddj commented on August 15, 2024

@caop3ng 我们可能不会单独排期来添加这个功能,但如果您有兴趣,可以单独开启一个分支来做一些基础工作,我们一起完善。

from nim_duilib_framework.

roc1 avatar roc1 commented on August 15, 2024

@caop3ng 我们可能不会单独排期来添加这个功能,但如果您有兴趣,可以单独开启一个分支来做一些基础工作,我们一起完善。

@nmgwddj 嗯嗯,好的。暂时我对 duilib 了解的还不够。

from nim_duilib_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.