08-02-2023, 05:49 PM
يمكنك قلب كل خانتين متجاورتين وبذلك تحصل على قيم 16 bit ,,,
قم باضافة مكون CheckBox الى التطبيق و غير اسمه الى Cint16Bit وبعد ذلك اضف التعديل الى الدالة GetCellText
و في الدالة DrawGrid1SetEditText قم بنفس الكود
بالتوفيق
قم باضافة مكون CheckBox الى التطبيق و غير اسمه الى Cint16Bit وبعد ذلك اضف التعديل الى الدالة GetCellText
كود :
if (Pz >= 0) and(Pz < MStream.Size) then
begin
if Cint16Bit.Checked then
if Odd(pz) then
dec(Pz)
else if (Pz+1 < MStream.Size) then
Inc(Pz);
B:=MStream.Bytes[Pz];و في الدالة DrawGrid1SetEditText قم بنفس الكود
كود :
if (Pz >= 0) and(Pz < MStream.Size) then
begin
if TryStrToInt('$'+Value,B) then // convertir du hex vers bin
if Cint16Bit.Checked then
if Odd(pz) then
dec(Pz)
else if (Pz+1 < MStream.Size) then
Inc(Pz);
MStream.Bytes[Pz] := byte(B);// enregistrementبالتوفيق


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)