Solved

TSTRINGGRID MASK

Posted on 2002-06-08
3
861 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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

729 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