[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

word wrap button on a toolbar

this is the situation:

I have a RichEdit, and a toolbar, I want to add 2 grouped buttons to it, when the first buttom is clicked it will remain down and my text that is displayed on the RichEdit will be wraped, now when I click the second buttom, then first one will uncheck and the second one will remain down and there'll be no word wrap on my text, how do I do this? wich button I use?
0
Morroida
Asked:
Morroida
1 Solution
 
coondog091800Commented:
There is a button on http://www.torry.net/msoffice.htm that has the ability to stay down. (TIEButton v.2.0)

As far as getting the word wrap on of off just assign the following to the button OnClick event:

procedure TForm1.Button1Click(Sender: TObject);
begin
  RichEdit1.WordWrap := True;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Richedit1.WordWrap := False;
end;

Rich
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now