EDITBOX

Hi,
Two quick questions.

1)Is there a way I could display text on the edit box left justified?

2)I am trying to delete the record from the Table. I am getting a message "Table is in use". I checked if the table might be used somewhere else but i could n't find anything.

Thanks
Prc,
zolimAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kretzschmarCommented:
to 1.

in the editbox the text is allways left justified :-))

to 2.

tabel is opened exclusive (maybe by the ide),
or the bde is misconfigured

meikl ;-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zolimAuthor Commented:
1.Sorry, i wanted to say right justified....

2.i don'tunderstand. what does it means that the table is  opened exclusive?
0
kretzschmarCommented:
well ok :-))

to 1.

you have to derive the tedit to get a justify adjustment
following is a source from barry (inthe)

unit AlignEdit;

interface

uses
 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,StdCtrls;

type
 TEditAlign = class(TEdit)
 private
   { Private declarations }
 f_alignment: TAlignment;
 protected
   { Protected declarations }
   procedure CreateParams(var params:TCreateParams); override;
 procedure SetAlignment(value: TAlignment);
public
   { Public declarations }
constructor Create(AOwner: TComponent); override;
 published
   { Published declarations }
property Alignment:TAlignment read f_alignment write SetAlignment;

 end;

procedure Register;

implementation
constructor TEditAlign.Create(AOwner: TComponent);
begin
 inherited create(AOwner);
 end;

procedure TEditAlign.SetAlignment(value: TAlignment);
begin
 if value<>f_alignment then begin
   f_alignment:=value;
   recreatewnd;
   end;
 end;

procedure TEditAlign.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;
procedure Register;
begin
 RegisterComponents('Samples', [TEditAlign]);
end;

end.

to 2.
ttable has a exclusive-property (for ex.)
but explain first what components and database you use.

meikl ;-)
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

lister07Commented:
I think you reinventing the wheel..

Have a look at the BiDiMode of the control.
0
ILECommented:
Try to open the table without make table exclusive

You probably have a table open in your IDE.
Your table is open in the IDE and another open is in your program.


When you work with the exclusive table u cent have open table in your IDE and in your program.


With another words when u have a exclusive table u must close the table when u work with the porgram and after that start compile and run your program

If you cen start directly your exe program (without the delphi)
and u don't get a message table is in use this is the your solution

0
kretzschmarCommented:
lister07,

your suggestion did not work,
i just tried it

meikl ;-)

0
lister07Commented:
You need to setup your locale to do it.
0
kretzschmarCommented:
will you tell this every customer,
which buys then your app, lister07?
0
zolimAuthor Commented:
LISTER07,

how do i set it up in my locale?

Zolim
0
CleanupPingCommented:
zolim:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
kacorretiredCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       to accept kretzschmar's answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Some days and here is the Christmas Time. I wish good luck and good health for you all and for your loved ones

kacor
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.