翻译 maninwest@Codeforge作者:Tanna@CodeProject网络上可以找到渐变控件,但是没有找到可以生成渐变笔刷的控件。这是个根据用户选择生成渐笔刷的控件背景我当时在开发报告工具,使用这个工具用户可以从 SOL 或任何数据源制作报告。我需要在工具中提供给用户可以更改字段背景的工具。我找不到这样的控件,就决定自己做一个。该控件有几个控制。一个是颜色选择器。对于一个特定渐变停止点,用户可以更改颜色。颜色选择器有一个选择器控件,用户可以移动选择颜色。还有个用于渐变的控件。用于可以更改线性格笔刷起始点和结束点。对于径向笔刷,用户可以更改中心点、原点、半径 X 和半径 Y。用户可以删除渐变的停止点或添加停止点。用户可以从组合框中选择笔刷类型使用代码这是个用户控件,可以直接作为用户控件添加到窗口。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001606s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.088856s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001118s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001368s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001189s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003533s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000953s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.004179s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014123s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001125s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 330837 [ RunTime:0.014615s ]