يمكنك قلب كل خانتين متجاورتين وبذلك تحصل على قيم 16 bit ,,,
قم باضافة مكون 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
بالتوفيق
كل من 1 user says قال شكرا ل Ndagor على المشاركة المفيدة1 user says Thank You to Ndagor for this post • Team dz