讲述如何开发一个控件,很有价值(六)[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 mysine 的 blog

so lets replace:

myre.selattributes.assign(pascon.fparsefont[mytokenstate]);

with:

if myre.selattributes.name <> pascon.fparsefont[mytokenstate].name then
myre.selattributes.name := pascon.fparsefont[mytokenstate].name;

if myre.selattributes.color <> pascon.fparsefont[mytokenstate].color then
myre.selattributes.color := pascon.fparsefont[mytokenstate].color;

if myre.selattributes.style <> pascon.fparsefont[mytokenstate].style then
myre.selattributes.style := pascon.fparsefont[mytokenstate].style;

and off you go and try it out... (ps. yes the last bit of code is bad programming...)

本文关键:控件开发
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top