Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.027 c
6-1135885674
ZeFiR
2005-12-29 22:47
2006.06.18
WAP-браузер


15-1148636830
korotkova
2006-05-26 13:47
2006.06.18
Открыта вакансия!


1-1147253284
Dimich1978
2006-05-10 13:28
2006.06.18
Можно ли перезаписать "работающий" файл?


2-1148131495
ДЯМАК
2006-05-20 17:24
2006.06.18
алгоритм


1-1147284039
Андрей2500
2006-05-10 22:00
2006.06.18
быстрый поиск в Stringgrid




   Наверх