鱼C论坛

 找回密码
 立即注册
查看: 2910|回复: 2

怎样自定一个类 或 一个方法 来处理一类控件的属性

[复制链接]
发表于 2013-4-1 00:43:30 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
        x:=GetSystemMetrics(SM_CXSCREEN);
        y:=GetSystemMetrics(SM_CYSCREEN);

        Edit1.Visible:= False;
        Panel1.Visible:=False;

        Image1.Left:=0;
        Image1.Top:=0;
        Image1.Height:= y;
        Image1.Width:= x;
        Image1.Visible:=False;

        Image2.Left:=0;
        Image2.Top:=0;
        Image2.Height:=y;
        Image2.Width:=x;
        Image2.Visible:=False;

        Image3.Left:=0;
        Image3.Top:=0;
        Image3.Height:=y;
        Image3.Width:=x;
        Image3.Visible:=False;

        Image4.Left:=0;
        Image4.Top:=0;
        Image4.Height:=y;
        Image4.Width:=x;
        Image4.Visible:=False;

        Image5.Left:=0;
        Image5.Top:=0;
        Image5.Height:=y;
        Image5.Width:=x;
        Image5.Visible:=False;

        Image6.Left:=0;
        Image6.Top:=0;
        Image6.Height:=y;
        Image6.Width:=x;
        Image6.Visible:=true;
这是代码 怎样进行优化
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
发表于 2013-4-10 22:53:55 | 显示全部楼层
用取属性方法
property X :Integer  read    ```   write ```
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
 楼主| 发表于 2013-4-23 11:55:25 | 显示全部楼层
感恩无私的分享与奉献 :)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-10-3 00:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表