Введение в технологию программирования. Ч.1. Среда объектно-ориентированного программирования Delphi. Коржов Е.Н - 79 стр.

UptoLike

Составители: 

79
Ɍɚɛɥɢɰɚ 4.1
ɋɜɨɣɫɬɜɚ ɤɥɚɫɫɚ TFont
ɋɜɨɣɫɬɜɨ Ɉɩɢɫɚɧɢɟ
property Color: TColor; ɐɜɟɬ ɲɪɢɮɬɚ
property FontAdapter:
IChangeNotifier;
ɉɨɫɬɚɜɥɹɟɬ ɢɧɮɨɪɦɚɰɢɸ ɨ ɲɪɢɮɬɟ ɜ ɤɨɦɩɨɧɟɧ-
ɬɟ ActveX
property Height:
Integer;
ȼɵɫɨɬɚ ɲɪɢɮɬɚ ɜ ɩɢɤɫɟɥɹɯ ɷɤɪɚɧɚ
property Name:
TFontName;
ɂɦɹ ɲɪɢɮɬɚ. ɉɨ ɭɦɨɥɱɚɧɢɸ ɢɦɟɟɬ ɡɧɚɱɟɧɢɟ MS
Sans Serif
property Size: Integer; ȼɵɫɨɬɚ ɲɪɢɮɬɚ ɜ ɩɭɧɤɬɚɯ (1/72 ɞɸɣɦɚ). ɂɡɦɟ-
ɧɟɧɢɟ ɷɬɨɝɨ ɫɜɨɣɫɬɜɚ ɚɜɬɨɦɚɬɢɱɟɫɤɢ ɢɡɦɟɧɹɟɬ
ɫɜɨɣɫɬɜɨ Height ɢ ɧɚɨɛɨɪɨɬ.
property Style:
TFontStyles;
ɋɬɢɥɶ ɲɪɢɮɬɚ. Ɇɨɠɟɬ ɩɪɢɧɢɦɚɬɶ ɡɧɚɱɟɧɢɟ ɤɚɤ
ɤɨɦɛɢɧɚɰɢɹ ɫɥɟɞɭɸɳɢɯ ɩɪɢɡɧɚɤɨɜ: fsBold
(ɠɢɪɧɵɣ), fsltalic (ɤɭɪɫɢɜ), fsUnderline (ɩɨɞ-
ɱɟɪɤɧɭɬɵɣ), fsStrikeOut (ɩɟɪɟɱɟɪɤɧɭɬɵɣ)
Ʉɥɚɫɫ ɌɊɟn
ɋ ɩɨɦɨɳɶɸ ɤɥɚɫɫɚ TPɟn ɫɨɡɞɚɟɬɫɹ ɨɛɴɟɤɬ-ɩɟɪɨ, ɫɥɭɠɚɳɢɣ ɞɥɹ ɜɵ-
ɱɟɪɱɢɜɚɧɢɹ ɥɢɧɢɣ. Ɉɫɧɨɜɧɵɟ ɫɜɨɣɫɬɜɚ ɤɥɚɫɫɚ ɩɪɟɞɫɬɚɜɥɟɧɵ ɜ ɬɚɛɥ. 7.2.
Ɍɚɛɥɢɰɚ 4.2
ɋɜɨɣɫɬɜɚ ɤɥɚɫɫɚ ɌɊɟn
ɋɜɨɣɫɬɜɨ Ɉɩɢɫɚɧɢɟ
property Color: TColor; ɐɜɟɬ ɜɵɱɟɪɱɢɜɚɟɦɵɯ ɩɟɪɨɦ ɥɢɧɢɣ
property Mode:
TPenMode;
Ɉɩɪɟɞɟɥɹɟɬ ɫɩɨɫɨɛ ɜɡɚɢɦɨɞɟɣɫɬɜɢɹ ɥɢɧɢɣ ɫ
ɮɨɧɨɦ (ɫɦ.ɧɢɠɟ)
property Style:
TPenStyle;
Ɉɩɪɟɞɟɥɹɟɬ ɫɬɢɥɶ ɥɢɧɢɣ (ɫɦ. ɪɢɫ. 7.1). ɍɱɢɬɵ-
ɜɚɟɬɫɹ ɬɨɥɶɤɨ ɞɥɹ ɬɨɥɳɢɧɵ ɥɢɧɢɣ 1 ɩɢɤɫɟɥɶ.
Ⱦɥɹ ɬɨɥɫɬɵɯ ɥɢɧɢɣ ɫɬɢɥɶ ɜɫɟɝɞɚ ps Solid
(ɫɩɥɨɲɧɚɹ)
property Width: Integer; Ɍɨɥɳɢɧɚ ɥɢɧɢɣ ɜ ɩɢɤɫɟɥɹɯ ɷɤɪɚɧɚ
ɋɜɨɣɫɬɜɨ Mode ɦɨɠɟɬ ɩɪɢɧɢɦɚɬɶ ɨɞɧɨ ɢɡ ɫɥɟɞɭɸɳɢɯ ɡɧɚɱɟɧɢɣ:
pmBlack ɥɢɧɢɢ ɜɫɟɝɞɚ ɱɟɪɧɵɟ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢ-
ɪɭɸɬɫɹ
pmWhite ɥɢɧɢɢ ɜɫɟɝɞɚ ɛɟɥɵɟ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢɪɭ-
ɸɬɫɹ
pmNop ɰɜɟɬ ɮɨɧɚ ɧɟ ɦɟɧɹɟɬɫɹ (ɥɢɧɢɢ ɧɟ ɜɢɞɧɵ)
pmNot ɢɧɜɟɪɫɢɹ ɰɜɟɬɚ ɮɨɧɚ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢ-
ɪɭɸɬɫɹ
                                                                Ɍɚɛɥɢɰɚ 4.1
                         ɋɜɨɣɫɬɜɚ ɤɥɚɫɫɚ TFont
       ɋɜɨɣɫɬɜɨ                              Ɉɩɢɫɚɧɢɟ
property Color: TColor; ɐɜɟɬ ɲɪɢɮɬɚ
property FontAdapter:   ɉɨɫɬɚɜɥɹɟɬ ɢɧɮɨɪɦɚɰɢɸ ɨ ɲɪɢɮɬɟ ɜ ɤɨɦɩɨɧɟɧ-
IChangeNotifier;        ɬɟ ActveX
property Height:        ȼɵɫɨɬɚ ɲɪɢɮɬɚ ɜ ɩɢɤɫɟɥɹɯ ɷɤɪɚɧɚ
Integer;
property Name:          ɂɦɹ ɲɪɢɮɬɚ. ɉɨ ɭɦɨɥɱɚɧɢɸ ɢɦɟɟɬ ɡɧɚɱɟɧɢɟ MS
TFontName;              Sans Serif
property Size: Integer; ȼɵɫɨɬɚ ɲɪɢɮɬɚ ɜ ɩɭɧɤɬɚɯ (1/72 ɞɸɣɦɚ). ɂɡɦɟ-
                        ɧɟɧɢɟ ɷɬɨɝɨ ɫɜɨɣɫɬɜɚ ɚɜɬɨɦɚɬɢɱɟɫɤɢ ɢɡɦɟɧɹɟɬ
                        ɫɜɨɣɫɬɜɨ Height ɢ ɧɚɨɛɨɪɨɬ.
property Style:         ɋɬɢɥɶ ɲɪɢɮɬɚ. Ɇɨɠɟɬ ɩɪɢɧɢɦɚɬɶ ɡɧɚɱɟɧɢɟ ɤɚɤ
TFontStyles;            ɤɨɦɛɢɧɚɰɢɹ ɫɥɟɞɭɸɳɢɯ ɩɪɢɡɧɚɤɨɜ: fsBold
                        (ɠɢɪɧɵɣ), fsltalic (ɤɭɪɫɢɜ), fsUnderline (ɩɨɞ-
                        ɱɟɪɤɧɭɬɵɣ), fsStrikeOut (ɩɟɪɟɱɟɪɤɧɭɬɵɣ)

     Ʉɥɚɫɫ ɌɊɟn
     ɋ ɩɨɦɨɳɶɸ ɤɥɚɫɫɚ TPɟn ɫɨɡɞɚɟɬɫɹ ɨɛɴɟɤɬ-ɩɟɪɨ, ɫɥɭɠɚɳɢɣ ɞɥɹ ɜɵ-
ɱɟɪɱɢɜɚɧɢɹ ɥɢɧɢɣ. Ɉɫɧɨɜɧɵɟ ɫɜɨɣɫɬɜɚ ɤɥɚɫɫɚ ɩɪɟɞɫɬɚɜɥɟɧɵ ɜ ɬɚɛɥ. 7.2.

                                                               Ɍɚɛɥɢɰɚ 4.2
                            ɋɜɨɣɫɬɜɚ ɤɥɚɫɫɚ ɌɊɟn
       ɋɜɨɣɫɬɜɨ                               Ɉɩɢɫɚɧɢɟ
property Color: TColor;    ɐɜɟɬ ɜɵɱɟɪɱɢɜɚɟɦɵɯ ɩɟɪɨɦ ɥɢɧɢɣ
property Mode:             Ɉɩɪɟɞɟɥɹɟɬ ɫɩɨɫɨɛ ɜɡɚɢɦɨɞɟɣɫɬɜɢɹ ɥɢɧɢɣ ɫ
TPenMode;                  ɮɨɧɨɦ (ɫɦ.ɧɢɠɟ)
property Style:            Ɉɩɪɟɞɟɥɹɟɬ ɫɬɢɥɶ ɥɢɧɢɣ (ɫɦ. ɪɢɫ. 7.1). ɍɱɢɬɵ-
TPenStyle;                 ɜɚɟɬɫɹ ɬɨɥɶɤɨ ɞɥɹ ɬɨɥɳɢɧɵ ɥɢɧɢɣ 1 ɩɢɤɫɟɥɶ.
                           Ⱦɥɹ ɬɨɥɫɬɵɯ ɥɢɧɢɣ ɫɬɢɥɶ ɜɫɟɝɞɚ ps Solid
                           (ɫɩɥɨɲɧɚɹ)
property Width: Integer;   Ɍɨɥɳɢɧɚ ɥɢɧɢɣ ɜ ɩɢɤɫɟɥɹɯ ɷɤɪɚɧɚ
ɋɜɨɣɫɬɜɨ Mode ɦɨɠɟɬ ɩɪɢɧɢɦɚɬɶ ɨɞɧɨ ɢɡ ɫɥɟɞɭɸɳɢɯ ɡɧɚɱɟɧɢɣ:
pmBlack           ɥɢɧɢɢ ɜɫɟɝɞɚ ɱɟɪɧɵɟ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢ-
                  ɪɭɸɬɫɹ
pmWhite           ɥɢɧɢɢ ɜɫɟɝɞɚ ɛɟɥɵɟ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢɪɭ-
                  ɸɬɫɹ
pmNop             ɰɜɟɬ ɮɨɧɚ ɧɟ ɦɟɧɹɟɬɫɹ (ɥɢɧɢɢ ɧɟ ɜɢɞɧɵ)
pmNot             ɢɧɜɟɪɫɢɹ ɰɜɟɬɚ ɮɨɧɚ. ɋɜɨɣɫɬɜɚ Color ɢ Style ɢɝɧɨɪɢ-
                  ɪɭɸɬɫɹ
                                    79