Changeset 106 for trunk/Forms/UFormSourceCode.pas
- Timestamp:
- May 6, 2019, 11:03:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormSourceCode.pas
r105 r106 36 36 MenuItem6: TMenuItem; 37 37 PopupMenuSource: TPopupMenu; 38 SynEdit 1: TSynEdit;38 SynEditSource: TSynEdit; 39 39 SynJavaSyn1: TSynJavaSyn; 40 40 procedure AClearExecute(Sender: TObject); … … 91 91 for I := 0 to Number - 1 do 92 92 NumberText := NumberText + '+'; 93 SynEdit 1.SelText := NumberText;93 SynEditSource.SelText := NumberText; 94 94 end; 95 95 end; … … 97 97 procedure TFormSourceCode.APasteFromClipboardExecute(Sender: TObject); 98 98 begin 99 SynEdit 1.PasteFromClipboard;99 SynEditSource.PasteFromClipboard; 100 100 end; 101 101 102 102 procedure TFormSourceCode.ASelectAllExecute(Sender: TObject); 103 103 begin 104 SynEdit 1.SelectAll;104 SynEditSource.SelectAll; 105 105 end; 106 106 … … 114 114 IndentText = ' '; 115 115 begin 116 Source := SynEdit 1.Text;116 Source := SynEditSource.Text; 117 117 NewSource := ''; 118 118 Indent := 0; … … 130 130 NewSource := NewSource + Source[I]; 131 131 end; 132 SynEdit 1.Text := NewSource;132 SynEditSource.Text := NewSource; 133 133 end; 134 134 135 135 procedure TFormSourceCode.ACopyToClipboardExecute(Sender: TObject); 136 136 begin 137 SynEdit 1.CopyToClipboard;137 SynEditSource.CopyToClipboard; 138 138 end; 139 139 140 140 procedure TFormSourceCode.ACutToClipboardExecute(Sender: TObject); 141 141 begin 142 SynEdit 1.CutToClipboard;142 SynEditSource.CutToClipboard; 143 143 end; 144 144 145 145 procedure TFormSourceCode.AClearExecute(Sender: TObject); 146 146 begin 147 SynEdit 1.Clear;147 SynEditSource.Clear; 148 148 end; 149 149 … … 154 154 I: Integer; 155 155 begin 156 Source := SynEdit 1.Text;156 Source := SynEditSource.Text; 157 157 Pos := 1; 158 158 for I := 1 to Length(Source) do begin … … 163 163 end; 164 164 SetLength(Source, Pos - 1); 165 SynEdit 1.Text := Source;165 SynEditSource.Text := Source; 166 166 end; 167 167 … … 169 169 begin 170 170 BFHighlighter := TSynBrainFuckHl.Create(nil); 171 SynEdit 1.Highlighter := BFHighlighter;171 SynEditSource.Highlighter := BFHighlighter; 172 172 end; 173 173
Note:
See TracChangeset
for help on using the changeset viewer.