TSTRINGGRID MASK

TSTRINGGRID MASK

Is there some replacment for ONGETEDITMASK event ?
Replacment for VALUE string variable ?

Thanks.
zuipoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nmmConnect With a Mentor Commented:
Use a Descent of  TInplaceEdit

 TMyInEdit=class(TInplaceEdit)
  published
   property EditMask;
 end;

Rewrite your TStringGrid-comp:

TMyStringGrid=class(TMyStringGrid)
  public
  function    CreateEditor: TInplaceEdit; override;
end;

function TMyStringGrid.CreateEditor: TInplaceEdit;
begin
  Result := TMyInEdit.Create(Self);
end;

Now you can set MASK via

  TMyInEdit(TMyStringGrid.InplaceEditor).EditMask:= your mask-string here...

Is it this, what you are looking for?

nmm
0
 
kretzschmarCommented:
? explain more
0
 
zuipoAuthor Commented:
I dont like ONGETEDITMASK event to use (some reasons).

Please give me an example for replacment to set MASK.

Thanks.
0
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.

All Courses

From novice to tech pro — start learning today.