word wrap button on a toolbar

Posted on 2003-03-18
Medium Priority
Last Modified: 2010-04-04
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?
Question by:Morroida
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

coondog091800 earned 300 total points
ID: 8160711
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);
  RichEdit1.WordWrap := True;

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


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month13 days, left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question