主要是第二问,我要加入的图片有大有小,但是Imagelist好象只有统一的大小(height,width),这样,把小图变大了,把大图的信息弄丢了一些,怎么样让Imagelist里的图片保持原来的大小?

解决方案 »

  1.   

    回答第一个问题
    ×××.Font.Style := [fsUnderline]////////////////////////////////////////////////////
    TFontStyle and TFontStyles specify style characteristics of a font.UnitGraphics or 
    QGraphicsDelphi syntax:type 
      TFontStyle = (fsBold, fsItalic, fsUnderline, fsStrikeOut);
      TFontStyles = set of TFontStyle;C++ syntax:enum TFontStyle { fsBold, fsItalic, fsUnderline, fsStrikeOut };
    typedef Set<TFontStyle, fsBold, fsStrikeOut>  TFontStyles;DescriptionTFontStyles is a set of TFontStyle values. The following table lists the possible values of the TFontStyle type:Value MeaningfsBold The font is boldfaced.
    fsItalic The font is italicized.
    fsUnderline The font is underlined.
    fsStrikeOut The font is displayed with a horizontal line through it.
      

  2.   

    1.Font->Style->fsUnderline  := true2。把图片分类。
      

  3.   

    Label1.Font.Style := Label1.Font.Style + [fsBold];
      

  4.   

    对,只能对图片分类,因为是ImageList。BigImage,SmallImage分成两个。
      

  5.   

    把图片分类,如果只能分成两类又有什么用呢,图片的大小千差万别的。
    我想用一个Imagelist控件,然后ListView加入它的图片,每个项目都显示一个图片。