Exemplo n.º 1
0
        internal protected void Init()
        {
            this.sw = new StyleWatcher();
            this.sw = new System.Cor3.Forms.rtf.StyleWatcher(
                this.rtf_control,
                this.fmt_bold,
                this.fmt_bullet,
                this.fmt_italic,
                this.fmt_underline,
                this.fmt_strike,
                this.fmt_align_left,
                this.fmt_align_center,
                this.fmt_align_right,
                this.fmt_dent_more,
                this.fmt_dent_less,
                this.fmt_fsize_dec,
                this.fmt_fsize_inc
                );
            rti = new RichTextInfo(rtf_control);
            this.rtf_control.SelectionChanged += eSelUpdate;
//			this.btn_save.Click += this.eApply;
//			this.btn_style.ButtonClick += this.eShowProperties;
//			this.btn_zoom_reset.Click += this.eZoomFactor ;
//			this.btn_word_wrap.Click += this.eWordWrap;
//			this.btn_exp_rtf.Click += this.eSaveRtfFile;
//			this.btn_imp_rtf.Click += this.eLoadRtfFile;
            this.rtf_control.KeyVent += this.eKeyFilter;
        }
Exemplo n.º 2
0
 internal protected void eSelUpdate(object o, EventArgs e)
 {
     pg.SelectedObject = rti = new RichTextInfo(rtf_control);
 }