火山PC自定义组件-标签框博客教程
前言:是否有过因标签+编辑框同步排版而烦恼过,接下来的文章将介绍如何去除烦恼,使编排更加的爽快,不再因尺寸距离等问题而烦恼。更多细节功能,可以自己加持一、封装①添加布局器Ctrl+I插入一个布局器,然后右键进入设计器,并设置如下https://www.lkuaiy.com/image/editor/1628347069311963.pnghttps://www.lkuaiy.com/image/editor/1628347090736882.pnghttps://www.lkuaiy.com/image/editor/1628347095956454.png
②创建初始化https://www.lkuaiy.com/image/editor/1628347126908530.pnghttps://www.lkuaiy.com/image/editor/1628347131317521.pnghttps://www.lkuaiy.com/image/editor/1628347145387758.png
③设置接口https://www.lkuaiy.com/image/editor/1628347155689716.pnghttps://www.lkuaiy.com/image/editor/1628347159836787.pnghttps://www.lkuaiy.com/image/editor/1628347163814780.pnghttps://www.lkuaiy.com/image/editor/1628347172359791.png
④属性事件设计器中的功能属性https://www.lkuaiy.com/image/editor/1628347181462469.pnghttps://www.lkuaiy.com/image/editor/1628347184821271.png
⑤控件事件https://www.lkuaiy.com/image/editor/1628347192370616.pnghttps://www.lkuaiy.com/image/editor/1628347196300455.pnghttps://www.lkuaiy.com/image/editor/1628347199179844.png
二、窗口布局进入设计器,可以看到多了一个自定义的组件,添加即可https://www.lkuaiy.com/image/editor/1628347207883996.pnghttps://www.lkuaiy.com/image/editor/1628347211412827.png直接支持在设计器属性里设置标题和内容https://www.lkuaiy.com/image/editor/1628347238681615.png
三、初始化控件https://www.lkuaiy.com/image/editor/1628347284991561.png
四、事件https://www.lkuaiy.com/image/editor/1628347293408161.pnghttps://www.lkuaiy.com/image/editor/1628347297204492.png
五、演示https://www.lkuaiy.com/image/editor/1628347305178947.gif
例子下载:**** Hidden Message *****
不出,谢谢分享 日常一顶 日常一顶 1111111111111111111111111111111111111111111111111111111 1221312水电费水电费 看看,多谢分享 学习下谢谢分享 谢谢分享 如果您要查看本帖隐藏内容请回复