我在win2000下开发的程序为什么在WIN98下字体显示得很大,并且窗体得宽度和长度都变了,有什么办法能解决这个问题呢?

解决方案 »

  1.   

    Specifies whether the form is sized according to the value of the PixelsPerInch property.Delphi syntax:property Scaled: Boolean;C++ syntax:__property bool Scaled = {read=GetScaled, write=SetScaled, stored
    =IsForm, default=1};DescriptionScaled determines whether the form adjust itself to differences between the font used at design time and the current system font used by a system at runtime. If Scaled is true, the form resizes itself and all its child controls to maintain the relationship between the size of controls and the height of text displayed in the default font. If Scaled is false, no such resizing occurs.By setting Scaled to true, the form can adjust to fonts that are not scalable (that is, fonts that only supply discrete point sizes) or to differences such as forms designed using small fonts at design time that are run on systems that use large fonts.The degree of resizing is determined by the PixelsPerInch property, which measures the proportion of the font on the system used when designing the form.
      

  2.   

    谢谢两位大虾得指导,但是字体还是不太正常,还有什么属性影响到WIN98和WIN2000下程序的界面的
      

  3.   

    form的font改改看看,还有操作系统自身的字体可能也会有影响吧
      

  4.   

    字体最好自己设,我们的经验是,窗体默认,控件的用宋体,10号,
    你试试吧。呵呵
    有的说把fontset设置成gb2312就ok,不过没有试国
      

  5.   

    你看开发的时候设置的字符集有问题!应该是在窗口(Form)设计时:
    Form.Font.Charset:=DEFAULT_CHARSET;
    而不是你修改字体后默认的GB2312_CHARSET记得:修改完所有的Form设置后,如果Form中的其它与字体有关的控件(Label/Button等)使用了特殊字体,注意察看一下是否需要修改!你可以给我发信息我告诉你一个完成Form后再修改的绝招!
      

  6.   

    将FORM的FONT下的Charset 设为GB2312_CHARSET就OK了
      

  7.   

    Form.Font.Charset:=DEFAULT_CHARSET;
    宋体,9号
      

  8.   

    设置Font.Charset:=GB2312_CHARSET的朋友,不知你们真的试过没有?在2000/繁体下开发完成在简体/繁体98下运行是什么样的界面,你最好真的去试一下?
    当然简体98->简体2000没有问题,但是简体98->繁体98就有问题!