Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

Strings Property Editor dialog newline keystroke reminder

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Page-Clark

The object inspector's strings editor has its [OK] button set as the default so pressing [Enter] closes the dialog, which is logical. I usually forget this when trying to enter several lines of text, and so close the dialog when trying to enter a new line in the strings memo.

Could the dialog's StatusLabel's caption have a bit of help appended to it something on the lines of
' (Use [Ctrl][Enter] to add a new line)' ?

Howard

Reply by email

Bart
to Howard Page-Clark
Howard Page-Clark wrote
The object inspector's strings editor has its [OK] button set as the default so pressing [Enter] closes the dialog, which is logical. I usually forget this when trying to enter several lines of text, and so close the dialog when trying to enter a new line in the strings memo.

I cannot reproduce this.

When the Strings Editor Dialog appears (for instance for TMemo.Lines), the Memo on the form has focus.
Pressing Enter will create a new line in the memo. It will not close the dialog. (For me that is: Lazarus 1.1 r37840 FPC 2.6.0 i386-win32-win32/win64)

Bart

Reply by email

Hans-Peter Diettrich
to Howard Page-Clark: The object inspector's strings editor has its [OK] button set as the default so pressing…
The object inspector's strings editor has its [OK] button set as the default so pressing [Enter] closes the dialog, which is logical.

IMO it's not logical to close an dialog for entering *multiple* lines with Enter. At least D5 adds a new line on Enter.

Show quoted text 6 lines
I usually forget this when trying to enter several lines of text, and so close the dialog when trying to enter a new line in the strings memo. Could the dialog's StatusLabel's caption have a bit of help appended to it something on the lines of ' (Use [Ctrl][Enter] to add a new line)' ?

AFAIK Ctrl-Enter is a TMemo specific shortcut, which allows to insert linebreaks into otherwise multiline (word wrapped) text. This is different from a StringList, which does not wrap long lines.

DoDi

Reply by email