如题!!!

解决方案 »

  1.   

    呵呵,我都是将它写在一个 INI 文件中的[main]
    [C1]
    ...
    [C2]
    ...
      

  2.   

    同意 shuixin13(犬犬(心帆)) 
    也可以用注册表
    不过思路都是一样的
      

  3.   


    1、将控件以数据流的形式存储用时再调出来
    2、将动态控件的属性存放在数据库、文件,程序从中读取控件属性。
        if assigned(控件名如:image数组-->p_1[])then
        begin
          Name := PChar('img_1' + IntToStr(num));//sessionÃû
          Width := PChar(IntToStr(p_1[num].Width));
          top := PChar(IntToStr(p_1[num].Top));
          left := PChar(IntToStr(p_1[num].Left));
          Height := PChar(IntToStr(p_1[num].Height));
          tag := PChar(IntToStr(img_1[num].Tag));
          hint := PChar(img_1[num].Hint);
          writeprivateprofilestring(Name, 'height', Height, path);
          writeprivateprofilestring(Name, 'width', Width, path);
          writeprivateprofilestring(Name, 'top', top, path);
          。
        end;
    下此用时
     再读出来