Solved

TSTRINGGRID MASK

Posted on 2002-06-08
3
863 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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 this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

623 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