Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.06.18;
Скачать: CL | DM;

Вниз

Господа подскажите пожалуйста как сделать чтобы в StringGrid   Найти похожие ветки 

 
JTAG   (2006-05-30 22:16) [0]

Было возможно вводить только цифры?


 
Gydvin ©   (2006-05-30 22:27) [1]

procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char);
begin
if not (key in ["0".."9"]) then key:=#0
end;


 
Kolan ©   (2006-05-30 22:33) [2]

Вот блин. НАписал минт 10 назад:
procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char);
begin
 if not Key in ["0".."9"] then
   Key  := #0;
end;


Компилю - [Error] Unit1.pas(28): Operator not applicable to this operand type
Весь хелп перерыл... Скобочки .....


 
JTAG   (2006-05-30 23:00) [3]

Спасибо!


 
Жуков Олег   (2006-05-30 23:57) [4]

Один из способов
type
 THackedStringGrid = class(TCustomGrid);

 SetWindowLong(
   THackedStringGrid(StringGrid1).InplaceEditor.Handle,
   GWL_STYLE,
   ES_NUMBER or GetWindowLong(THackedStringGrid(StringGrid1).InplaceEditor.Handle, GWL_STYLE)
   );




Страницы: 1 вся ветка

Текущий архив: 2006.06.18;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.054 c
2-1149241925
XoXoL
2006-06-02 13:52
2006.06.18
Помогите!


15-1148560432
ArtemESC
2006-05-25 16:33
2006.06.18
BAT - файл...


2-1149200694
[stalker]
2006-06-02 02:24
2006.06.18
Проблемма с динамическим массивом


9-1130206311
JUS
2005-10-25 06:11
2006.06.18
Зацените мою демку


2-1149285805
mr1Andersen
2006-06-03 02:03
2006.06.18
Как сделать с помощью Delphi5 действие: Пуск-Выполнить ?