Solved

TSTRINGGRID MASK

Posted on 2002-06-08
3
859 Views
Last Modified: 2012-08-13
TSTRINGGRID MASK

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

Thanks.
0
Comment
Question by:zuipo
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7064693
? explain more
0
 

Author Comment

by:zuipo
ID: 7064703
I dont like ONGETEDITMASK event to use (some reasons).

Please give me an example for replacment to set MASK.

Thanks.
0
 

Accepted Solution

by:
nmm earned 100 total points
ID: 7064795
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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 104
Reconfigure Delphi Install? 2 64
Dev express lookupcombo 3 44
Is there any way to treat Lock record in table with clientdataset? 3 31
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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