Changeset 75 for oup/current/Tools
- Timestamp:
- Jan 12, 2007, 12:36:52 AM (18 years ago)
- Location:
- oup/current/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/BinEdit.pas
r46 r75 191 191 Data: Tdata; 192 192 i: Word; 193 begin 193 floatformat: TFormatSettings; 194 begin 195 floatformat.DecimalSeparator := '.'; 194 196 case datatype of 195 197 1: … … 219 221 Data[2] := hex.Data[offset + 2]; 220 222 Data[3] := hex.Data[offset + 3]; 221 Result := FloatToStr(Decode_Float(Data) );223 Result := FloatToStr(Decode_Float(Data), floatformat); 222 224 end; 223 225 10: … … 383 385 str: String; 384 386 Value: LongWord; 385 begin 387 floatformat: TFormatSettings; 388 begin 389 floatformat.DecimalSeparator := '.'; 386 390 for i := 1 to value_viewer.RowCount - 1 do 387 391 begin … … 448 452 for j := 0 to 3 do 449 453 Data[j] := hex.Data[hex.SelStart + j]; 450 value_viewer.Cells[1, i] := FloatToStr(Decode_Float(Data) );454 value_viewer.Cells[1, i] := FloatToStr(Decode_Float(Data), floatformat); 451 455 end 452 456 else … … 561 565 562 566 procedure TForm_BinEdit.hexKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 563 var564 temps: String;567 //var 568 // temps: String; 565 569 begin 566 570 if (Shift = [ssCtrl]) and (Key = Ord('C')) then … … 741 745 node: PVirtualNode; 742 746 nodedata: PNodeData; 743 id: Integer;744 747 form: TForm_ToolTemplate; 745 748 begin -
oup/current/Tools/RawEdit.dfm
r70 r75 143 143 FixedCols = 0 144 144 RowCount = 8 145 FixedRows = 0 145 146 Font.Charset = DEFAULT_CHARSET 146 147 Font.Color = clWindowText -
oup/current/Tools/RawEdit.pas
r72 r75 154 154 155 155 procedure TForm_RawEdit.list_offsetClick(Sender: TObject); 156 var157 i: LongWord;158 raw_info: TRawInfo;159 156 begin 160 157 ClearValues; … … 185 182 Data: Tdata; 186 183 i: Word; 187 begin 184 floatformat: TFormatSettings; 185 begin 186 floatformat.DecimalSeparator := '.'; 188 187 case datatype of 189 188 1: … … 213 212 Data[2] := hex.Data[offset + 2]; 214 213 Data[3] := hex.Data[offset + 3]; 215 Result := FloatToStr(Decode_Float(Data) );214 Result := FloatToStr(Decode_Float(Data), floatformat); 216 215 end; 217 216 10: … … 256 255 str: String; 257 256 Value: LongWord; 258 begin 257 floatformat: TFormatSettings; 258 begin 259 floatformat.DecimalSeparator := '.'; 259 260 for i := 1 to value_viewer.RowCount - 1 do 260 261 begin … … 321 322 for j := 0 to 3 do 322 323 Data[j] := hex.Data[hex.SelStart + j]; 323 value_viewer.Cells[1, i] := FloatToStr(Decode_Float(Data) );324 value_viewer.Cells[1, i] := FloatToStr(Decode_Float(Data), floatformat); 324 325 end 325 326 else … … 479 480 480 481 procedure TForm_RawEdit.hexKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 481 var482 temps: String;482 //var 483 // temps: String; 483 484 begin 484 485 if (Shift = [ssCtrl]) and (Key = Ord('C')) then … … 507 508 508 509 procedure TForm_RawEdit.hexSelectionChanged(Sender: TObject); 509 var510 selstart: Integer;511 i, j: Word;510 //var 511 // selstart: Integer; 512 // i, j: Word; 512 513 begin 513 514 { FOR i:=1 TO structs.RowCount-1 DO BEGIN … … 562 563 procedure TForm_RawEdit.btn_importClick(Sender: TObject); 563 564 var 564 Data: Tdata;565 // Data: Tdata; 565 566 fs: TFileStream; 566 567 begin … … 644 645 procedure TForm_RawEdit.value_viewer_context_copyClick(Sender: TObject); 645 646 var 646 i: Byte;647 // i: Byte; 647 648 Name: String; 648 649 Value: LongWord;
Note:
See TracChangeset
for help on using the changeset viewer.