Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

TAlighEdit component question

Posted on 2003-02-19
1
Medium Priority
?
140 Views
Last Modified: 2010-04-04
here is part of the code that enables TEdit component to alignt its text...

procedure THiddenValueEdit.CreateParams(var params:TCreateParams);
const
   Alignments : array[TAlignment] of Longint = (ES_LEFT, ES_RIGHT, ES_CENTER);
begin
   inherited CreateParams(Params);
   Params.Style := Params.Style or Alignments[F_Alignment] or ES_MULTILINE;
end;

after trying this out, i later found out that my edit component has indeed turning into a multi line edit.  how do i correct this? can i simply remove the 'ES_MULTILINE' to turn my component into a single line component again?
thanks!
0
Comment
1 Comment
 
LVL 27

Accepted Solution

by:
kretzschmar earned 150 total points
ID: 7985923
>can i simply remove the 'ES_MULTILINE' to turn my
>component into a single line component again?

yes
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

578 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