Реферат: Разработка текстового редактора

if (CurrText()->Style == CurrText()->Style >> fsBold)

CurrText()->Style = CurrText()->Style << fsBold;

else

CurrText()->Style = CurrText()->Style >> fsBold;

}

void __fastcall TForm1::ToolButton17Click(TObject *Sender)

{

if (CurrText()->Style ==CurrText()->Style >> fsItalic)

CurrText()->Style = CurrText()->Style << fsItalic;

else

CurrText()->Style = CurrText()->Style >> fsItalic;

}

void __fastcall TForm1::Edit2Change(TObject *Sender)

{

int fontsize = atoi(Edit2->Text.c_str());

if ((!FUpdating) && (fontsize))

{

CurrText()->Size = atoi(Edit2->Text.c_str());

}

}

void __fastcall TForm1::ToolButton3Click(TObject *Sender)

{

if (CurrText()->Style ==CurrText()->Style >> fsUnderline)

CurrText()->Style = CurrText()->Style << fsUnderline;

else

CurrText()->Style = CurrText()->Style >> fsUnderline;

}

void __fastcall TForm1::FirstIndMouseDown(TObject *Sender,

TMouseButton Button, TShiftState Shift, int X, int Y)

К-во Просмотров: 790
Бесплатно скачать Реферат: Разработка текстового редактора