obsidian-notes/代码/plus输入框约束及修饰.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

24 lines
747 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: plus输入框约束及修饰
updated: 2022-02-24 01:13:00Z
created: 2022-01-20 07:33:27Z
---
plus美化界面非常好用具有相当灵活的定制能力默认文本编辑框较为简陋作了一个函数对编辑框进行约束和美化
[winform1-plus.aardio](../_resources/winform1-plus.aardio)
主要功能有:
1. 类似win11中的获取焦点后下框线加粗
2. 获取焦点后背景色变化默认为绿色0xFFCBF8DF
2. 出错时背景色闪烁变化默认粉红0xFFF7CBE4
0. 可自定义数据范围,总字符数,初始值和背景色
修复了部分bug
增加了上下方向键修改数据的功能
增加了对负数的支持
[plus输入框修饰.aardio](../_resources/plus输入框修饰.aardio)