How can I disable the blinking cursor in SciTE? - editor

I just installed the SciTE text editor as it was recommended for AutoHotkey syntax highlighting.
However, I can't handle the blinking cursor, and SciTE does not obey the cursor settings on my Windows system, which are set to 'no blink'. Nor does it allow me to change the settings that I can find.
I've looked online and through the 'Options' and all the entries on the menu bar, but I found no references.
How can I disable it/prevent the cursor from blinking?
Thanks for any help and suggestions.

In your installation directory, exist a file named SciTEGlobal.properties. Open it and as suggested by wOxxOm find the line caret.period and change it's value to 0

Related

Is there a hotkey to reverse the case of the selected text in the Delphi 10.2 Editor?

It is very annoying when the CapsLock pressed unintentionally and I realize that the text I just typed is in the reverse case.
Is there any hotkey to reverse the case of the selected text in the Delphi 10.2 Editor? And maybe for the other cases (upper, lower, capital, camel, uncapitalCamel).
MartynA answered this question and I have to realize that the hotkey mapped to this function (Ctrl-O U) is not a trivial one. So another question articulated in me : is there any way to customize the hotkey mappings? As I saw the Options dialog does not make it available. (Or I just could not find it)
Ctrl-O U see http://delphi.wikia.com/wiki/Default_IDE_Shortcut_Keys
If you are prepared to write an IDE add-in, you can do whatever you like in terms of changing case. F.i. GExperts has its own Change Case, under Editor Experts and the source is available so you could look up how to do it. GExperts also modifies the IDE's Key Mappings dialog under Tools | Editor Options so you could look up how to do that, too.

Delphi Seattle IDE - Square bracket error

Maybe some of you can help me... I'm using Delphi Seattle, on Windows 10, Portuguese keyboard layout (tried with English layout too), and on the Code tab (Design tab works perfectly), when I try to type: "]", this key only, it appears "["... No other keys have any problem, only this one. Any idea about what could be my issue?
Sorry if this website is not for this kind of discussion, but where I can ask this?
Same problem here.
To workaround I do this:.
Go to Tools|Options|Editor|Key Mappings|Enhanced Modules and uncheck "Smart Surround Keys" option.
When unchecked you will lost automatic open/close parentesis/brackets()[] in marked text, but resolv this issue.
Try changing the Use Ctrl+Alt keys editor setting in IDE options
If I disable that option I can only enter ] but can't enter [ if I'm holding Ctrl+Alt keys. But I can enter both [ and ] if I'm holding AltGr key instead.
When specific option is enabled I it works both ways.
EDIT: In previous versions of Delphi like Delphi 7 for instance you had to make suitable registry change in order to change this.
EDIT2: As you already figured out by yourself the IDE enhancements modules can also interfere.

How keep the debug layout the same as the desktop layout

I try to have a similar layout during editing as well debugging. When running the program my structure and object inspector disappear. I did create my own desktop speedsetting, set the debug desktop to it as well, but as soon as the program runs structure and obejct inspector disappear. How can I prevent that?
A question related to this: the edit menu changes as well. A right click on a procedure name results in a popup menu with the first item being "find declaration". When debugging the first item is "close page". I find the find declaration item a fast way to find some code. Apart from that it is frustrating to lose one's code because you click "no" on the question to save the information (I know, it's my fault but menu's shouldn't change in my opinion).
Thanks,
Arnold
What version of Delphi? Dialogs and menus change between versions (and even between SKUs of the same version).
For the first, open Tools->Options->Environment Options and uncheck Hide designers on run in the Running group box (D2010, XE, and XE2), or Tools->Options->Environment Options and unchecking Hide designers on run in the Compiling and Running group box (D2007).
For the second: The right-click menu is called a context menu, meaning it displays what is appropriate in the context of when it's being shown. It's entirely appropriate for it to change depending on when and how you're using it; that's the way it's supposed to work.
Right-clicking on a .zip file in Windows Explorer is different than right-clicking on a Word .doc file, because they have different options based on context - a zip file has an 'Extract to...' option that the Word document doesn't have, because 'extracting' a Word document doesn't apply. Same applies to right-clicking a .exe file, which has the Run as Administrator option (Win7), as opposed to right-clicking a .pas file, which doesn't offer that option.

Why don't I get hotkey underlines in a Delphi TMainMenu

In a Delphi 2007 program I am using a TMainMenu referencing actions in a TAction list. I have prefixed the hotkeys of all main captions with an ampersand:
&File | &Edit | Ev&aluate | ...
In design view these hotkeys are underlined as I would expect, but when I start the program they no longer are underlined but they work nonetheless. In contrast to this, for all the submenu icons
&File
&New ...
&Open ...
the underline is shown as expected.
I am aware of the Windows pisplay properties option "Hide underlined letters or keyboard navigation until I press the Alt key." and have disabled it. In all other programs this works fine, including the Delphi IDE.
If I create a new VCL appliation and just add a TMainMenu and a few menu items, it works as expected.
This has me baffled, really.
Is there any property of the TMainMenu component or maybe an application option that I must change? The "Enable runtime themes" project option is grayed out for some reason, might that be the problem? If yes, what causes this?
This may not be a Delphi issue. I have just tried this with IE8 on WinXP. On my machine, with the display properties set to require the Alt key, the underlining works as expected. However, with the checkbox unchecked, the underlining never appears on the main menu items (even when using the Alt key), but always appears on the File,Edit,View etc submenus (as you describe) ........ unless Microsoft wrote IE8 in Delphi :-)
I asked the same question last year and there were some excellent answers:
Menu Accelerator Keys Not Showing Up Delphi 2009
In conclusion, it appears to be a Delphi bug, and I reported it to Embarcadero at:
http://qc.embarcadero.com/wc/qcmain.aspx?d=68816
However, they have no resolution to it, so unless others (maybe you) also complain, I don't expect it will get addressed.
Step's answer to my question refers to a possibly related bug reported on the Delphi forums:
ALT Key press causes controls to disappear under Themes in Vista and XP. This one is marked as "resolved" with several possible fixes listed in the comments. I have not had the opportunity to go through these.
By the way, since I asked that question last year, I got a new computer with Vista. The same problem still happens, even when the Vista Ease of Access Centre setting: "Underline keyboard shortcuts and access keys" is set. So the Delphi bug still exists.
I was very surprised to find the default was that this was unchecked. I guess in Vista, they want a cleaner looking menu with the assumption that not many people ever used the accelerator keys.
The easiest way to fix this problem seems to use TJvMainMenu from the jvcl instead of TMainMenu. I tried the current version 3.38, but it is possible that the problem was fixed already in earlier versions. Since I was using the jvcl anyway it does not add much to my program's size. Your mileage may vary though, the jvcl is a huge library.
Uses an empty image list for main menu, if it is possible. In this way you can force delphi to paint menu correctly. (But looks ugly in vista and w7)
Are you sure you don't have OwnerDraw set to true in the MainMenu?

Stand-alone text editor with Visual Studio editor functionality

Is anyone aware of any text editors with Visual Studio editor functionality? Specifically, I'm looking for the following features:
CTRL+C anywhere on the line, no text selected -> the whole line is copied
CTRL+X or SHIFT+DEL anywhere on the line, no text selected -> the whole line cut
Thanks!
Komodo Edit does the two things you specified.
I use it all the time as a secondary editor, for various scripting and other programming tasks. Tons of features, free, open source.
Zeus can emulate the Visual Studio keyboard.
To change the keyboard mapping just use the Options, Editor Option menu and in the Keyboard panel and select the MSVC as the active keyboard mapping.
(source: zeusedit.com)
Notepad++, UltraEdit and TextPad are good ones.
EditPad Pro will cut or copy the line the cursor is on when no text is selected. People sometimes report that as a bug.
Twistpad looks something like Visual Studio 2005/2008 editor and seems has the same key bindings, including Ctrl-X to cut whole line if no text was marked.
Slickedit
Not to steal Chris' thunder for his suggestions on Notepad++, UltraEdit, and TextPad, but I would like to point out that there is a version of UltraEdit which can be run from a thumb drive (for those people who lack Admin rights at work and can not install programs).

Resources