Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TSTRINGGRID MASK

Posted on 2002-06-08
3
Medium Priority
?
866 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 400 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Integration Management Part 2
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

824 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