> There is a gutter part (Object Inspector) for that too.
Yes, but it has no option for switching line-numbering on or off. The form designer shows numbers, but they do not appear at run-time.
> Make sure the Gutter itself can autosize. So it will fit all the parts, if you set your own widths to the parts.
I thought that I had to switch AutoSize Off to manipulate the width of the individual parts.
> Do you have test code to reproduce? Never had this issue myself.
Sorry, I have no short test code. The whole piece of software is as Lazarus source code available here:
http://www.avr-asm-tutorial.net/avr_sim/17/avr_sim_17_win_src.zipThe whole piece is rather large, so ignore all the other stuff: the SynEdit-Form is in avr_sim_u1.pas, the Syntax-Highlighter is in avrasmhl.pas.
The compiled Win64 version is here:
http://www.avr-asm-tutorial.net/avr_sim/17/avr_sim_17_win_src.zipIf you start the software, you are asked for a directory, select your Documents folder and click "Ok".
You can check the size issue by using the attached assembler source code file. Store that somewhere in your Directory folder, remove the .txt fronm the name (this site does not allow to attach assembler source code files even though there is nothing as save as .asm files), select "New from asm" in the "Project" menu. That should open the asm-file in the SynEdit-Editor (click OK on the package selection)-
Then rightclick in the editor window, select "Colors", in the opening settings dialog click the "Default" button. If you want to change the background color of the Comments click on the "Background" column of the line "Comment" and select its background color (if you want to test the effect with other colors than the default gray background). Then leave the dialog with "Ok", the editor should now display highlighting colors.
The yellow TMemo left to the SynEdit window has the same Font type and size like the SynEdit-Editor. After assembling (click on "Assemble" in the menu, then click on the tab with the original source code). The yellow TMemo window should show dots for pure comment lines and small "e"s for executable code lines. As you can see, the "e"s are on slightly different locations than the executable lines in the editor. If you select white as the comment's background color, the displacement disappears majorly. If you disable highlighting by leaving the colors dialog with the CANCEL button, and the "e" fits to the respective lines. It seems that highlighting increases the text height of the SynEdit.
If you maximize the window, the size of the fonts in TMemo and SynEdit increases, depending from your screen size. Then the effect is even increasing.
The Linux version does not have that effect. The Linux executable is at
http://www.avr-asm-tutorial.net/avr_sim/17/avr_sim_17_lin64.zipWith the gutter marks I'd like to replace the TMemo component, so the effect will be disappering then. The TMemo was a compromise because I did not know how to paint marks and what gutter is (the term "sidefield" would be more understandable for guys like me).
brgs, gsc
-
is