ソス@ソスソスソスソスソスン選ソスソスソスソスソストゑソスソスソス StringGrid ソスフセソスソス LowソスACol ソスソスmソスソスノゑソス
|
ソスEC/C++
ソスEDelphi
ソスEVisual BasicソスソスソスSソスソス
ソス@(VB2-VB6ソスソス.NETソスソスソスp)
ソスEVisual Basic(VB2-VB6)
ソスEVisual Basic .NET
ソスEVisual C++
ソスEpapy's softwarelibrary
ソス@SpeedButtonソスi10ソスツ用ソスモゑソスソスAソスeソスX0ソス`9ソスソスソスソス闢厄ソストゑソスjソスソスNソスソスソスbソスNソスソスソスト撰ソスソスlソスfソス[ソス^ソスソスソスソスン選ソスソスソスソスソストゑソスソスソス StringGrid ソスフセソスソスソスノ難ソスソスヘゑソスソスソスソスソスソスフでゑソスソスソスソスAソスIソスソスソスソスソストゑソスソスソスZソスソスソスソス LowソスACol ソスソスmソスソスノはどゑソスソスソスソスソスソス轤「ソスソスソスフでゑソスソス蛯、ソスソスソスH
procedure TForm1.sb0Click(Sender: TObject);
begin
if (Sender as TSpeedButton) = sb0 then FNumStr := FNumStr+'0'
else if (Sender as TSpeedButton) = sb1 then FNumStr := FNumStr+'1'
else if (Sender as TSpeedButton) = sb2 then FNumStr := FNumStr+'2'
else if (Sender as TSpeedButton) = sb3 then FNumStr := FNumStr+'3'
else if (Sender as TSpeedButton) = sb4 then FNumStr := FNumStr+'4'
else if (Sender as TSpeedButton) = sb5 then FNumStr := FNumStr+'5'
else if (Sender as TSpeedButton) = sb6 then FNumStr := FNumStr+'6'
else if (Sender as TSpeedButton) = sb7 then FNumStr := FNumStr+'7'
else if (Sender as TSpeedButton) = sb8 then FNumStr := FNumStr+'8'
else if (Sender as TSpeedButton) = sb9 then FNumStr := FNumStr+'9';
StringGrid.Cells[j,i] := FNumStr; //j,iソスソスmソス閧スソスソス
end;
ソス]ソスvソスネゑソスソスソスソスbソスソスソスソスソスソスソスワゑソスソスが、ソスeソス{ソス^ソスソスソスフ「tagソスvソスvソスソスソスpソスeソスBソスソス0ソスソスソスソス9ソスワゑソス
ソスフ撰ソスソスソスソスソスソスソスソスUソスソスソストゑソスソスソスソスホ、ソスソスソスフ抵ソスソスxソスナ擾ソスソスソスソスワゑソスソスB
(ソスソスソスソスソスソスA10ソスツのボソス^ソスソスソスノはイソスxソスソスソスgソスニゑソスソスト奇ソスソス闢厄ソストてゑソスソスソスソスKソスvソスソスソスソスソスソスワゑソスソスソスソスB)
procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
FNumStr := IntToStr(TSpeedButton(Sender).Tag) + FNumStr;
StringGrid1.Cells[StringGrid1.Col, StringGrid1.Row] := FNumStr;
end;
ソスネ単ソスネ趣ソスソスソスソスナゑソスソスソスソスAソスネ会ソスソスナどゑソスソスナゑソスソス蛯、ソスソスソスHソスH
ソスネ前,ソスXソスgソスソスソスソスソスWソスOソスソスソスbソスhソスソスgソスソスソスソスソス¥ソスtソスgソスソスソスソスソスソスソスソスソスAソスXソスgソスソスソスソスソスWソスOソスソスソスbソスhソスナ最擾ソスソスヘ趣ソスソスソスソスソスソスソスソスソスソスソスソスソスYソスンまゑソスソスソスソスOソスOソスG
ソスツ具ソスソスソスturbo Delphi2006ソスiソスソスソスソスソスナ)ソスナゑソスソスB
ソスXソスgソスソスソスソスソスWソスOソスソスソスbソスhソスソスSelectCellソスナ、ソスソスソスンのセソスソスソスフ位置ソスソス謫セソスナゑソスソスワゑソスソスB
var
Form1: TForm1;
row1,col1:integer;
implementation
{$R *.dfm}
procedure TForm1.SpeedButton1Click(Sender: TObject);
begin
if sender = SpeedButton1 then
StringGrid1.Cells[col1,row1] := '1';
if sender = SpeedButton2 then
StringGrid1.Cells[col1,row1] := '2';
if sender = SpeedButton3 then
StringGrid1.Cells[col1,row1] := '3';
if sender = SpeedButton4 then
StringGrid1.Cells[col1,row1] := '4';
if sender = SpeedButton5 then
StringGrid1.Cells[col1,row1] := '5';
if sender = SpeedButton6 then
StringGrid1.Cells[col1,row1] := '6';
if sender = SpeedButton7 then
StringGrid1.Cells[col1,row1] := '7';
if sender = SpeedButton8 then
StringGrid1.Cells[col1,row1] := '8';
if sender = SpeedButton9 then
StringGrid1.Cells[col1,row1] := '9';
end;
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer;
var CanSelect: Boolean);
begin
col1 := ACol; row1 := ARow;
StringGrid1.Selection ソスソスソスソス
function CheckDecNum(const S: String):Boolean;
var
i: Integer;
begin
Result := True;
for i := 1 to Length(S) do
begin
if ( not (S[i] in ['0'..'9','-']) ) //ソスLソス[ソスソスソスヘで必ソスv
or ( (S[i] = '-') and (i > 1) ) then
begin
Result := False;
break
end;
end;
end;
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
i: Integer;
NumStr: string;
begin
i := TSpeedButton(Sender).Tag;
NumStr := StringGrid1.Cells[StringGrid1.Col, StringGrid1.Row];
if i = 10 then
NumStr := '-'+NumStr
else
NumStr := NumStr + IntToStr(i);
if CheckDecNum(NumStr) then
StringGrid1.Cells[StringGrid1.Col, StringGrid1.Row] := NumStr;
end;
ソス@risa ソスソスソスソスフコソス[ソスhソスソスQソスlソスノゑソスソスワゑソスソスソスソスBソスソスソスソスソスソスソスソスソス鼾ソスソス SelectCell ソスソスgソスソスソスワでゑソスネゑソスソス謔、ソスナゑソスソスヒ。ソスソスソスソスソスソスソスpソスIソスネゑソスフゑソスソスソスニなゑソスニ意外ソスニ難しソスソスソスB
ソス@ソスソスソスニゑソスソスソス '123' ソスニ難ソスソスヘゑソスソスト鯉ソス '1203' ソスニゑソスソスソスノゑソス StringGrid1.Cells[Col, Row] ソスフ包ソスソスソスソスソスフカソス[ソス¥ソスソスソスハ置ソスソスmソスソスKソスvソスソスソスソスソスソスワゑソスソスソスソスAソスソスソスソスネんかどゑソスソスソスソスソスフでゑソスソス蛯、ソスBソスワゑソスソスZソスソスソスフ包ソスソスソスソスが選ソスソスソスソスソストゑソスソス驍ゥソスヌゑソスソスソスソスソスmソス閧スソスソスソスフでゑソスソスソスソスB
> StringGrid1.Selection ソスソスソスソス
ソス@ソスソスソスソスソスソスソスソスvソスソスソスソスソスフでゑソスソスソスソスwソスソスソスvソスソスヌむゑソス
ソスuSelection ソスvソスソスソスpソスeソスBソスヘ,ソスソスソスン選ソスソスソスソスソストゑソスソスソスフ茨ソスフ具ソスソスEソスソスwソス閧オソスワゑソスソスv
ソスニゑソスソスソスワゑソスソスフで包ソスソスソスソス自体の位置ソスヘわかソスソスネゑソスソスフではなゑソスソスナゑソスソス蛯、ソスソスソスB
> StringGrid1.Selection ソスソスソスソス
ソス@ソスソスソスンまゑソスソスソスBソスナ擾ソスソスフ趣ソスソスソスフ難ソスソスソスソスノはなゑソスソストゑソスソスワゑソスソスソスヒ。ソスソスソスソスソスソスソスフプソスソスソスpソスeソスBソスソスソスソスヘゑソスソスフ厄ソスソスOソスソスソス轤オ
ソストゑソスソスソスニゑソスソスいソスソスネ擾ソスが難ソスソスソスソスソスニ思ソスソスソストゑソスソスワゑソスソスソスソスiソスホ)ソスB
> ソスソスソスニゑソスソスソス '123' ソスニ難ソスソスヘゑソスソスト鯉ソス '1203' ソスニゑソスソスソスノゑソス StringGrid1.Cells[Col, Row] ソスフ包ソスソスソスソスソスフカソス[ソス¥ソスソスソスハ置ソスソスmソスソスKソスvソスソスソスソスソスソスワゑソスソスソスソスAソスソスソスソスネんかどゑソスソスソスソスソスフでゑソスソス蛯、ソスB
> ソスワゑソスソスZソスソスソスフ包ソスソスソスソスが選ソスソスソスソスソストゑソスソス驍ゥソスヌゑソスソスソスソスソスmソス閧スソスソスソスフでゑソスソスソスソスB
StringGridソスソスソスソスフエソスfソスBソス^ソスソスInplaceEditorソスニゑソスソスソスソスvソスソスソスpソスeソスBソスナ趣ソスソスoソスソスソスソスフゑソス
ソスソスソスソスソスSelStartソスソスSelLengthソスソスgソスソスソスホゑソスソスソスソスナゑソスソスヒ。
InplaceEditorソスソスprotectedソスネのでゑソスソスフままではアソスNソスZソスXソスナゑソスソスワゑソスソスソス
ソスgソスソスソスソス謔、ソスノゑソスソスソスTipsソスソスヌゑソスソスソスソスナ鯉ソスソスソスソスネ…ソスcソスニ思ソスソスソスト鯉ソスソスソスソスソスソスソスソス轤アソスソスソスフ過具ソスソスソスソスOソスノゑソスソスソスソスソスソスソスB
ソスuStringGridソスナ選ソスソスハ置ソスノ包ソスソスソスソスソス}ソスソスソスソスソスソスノは?ソスv
http://hpcgi1.nifty.com/MADIA/DelphiBBS/wwwlng.cgi?print+200509/05090090.txt
ソス@torソスソスソスありがソスニゑソスソスソスソスソスソスソスソスワゑソスソスB
ソス@ソスソスソスソスソスソスソスソスナゑソスソスワゑソスソスソスソスBソスソスソスソスノゑソスソストゑソスざソスざソスpソスソスソスソスソストコソスソスソス|ソスソスソス驍アソスニなゑソス protected ソスソス
ソスノアソスNソスZソスXソスソスソスナゑソスソスソスソスソス@ソスソスソスソスソスソスソスナゑソスソスヒゑソスソスIソス@ソスソスソス゚て知ソスソスワゑソスソスソスソスB
ソスソスソスソスソスソストゑソスソス驍ッソスソス
TStringGrid=class(Grids.TStringGrid);
ソスソスソスフ宣言ソスノ代えソストゑソスソスソスソスホ、ソスLソスソスソスXソスgソスソスソスネゑソスソストゑソスEソスEソスEソスB