Sign in Join

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

Mailing lists / lazarus / 2021-06

The "Use" button in Component List

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

The list opens with Ctrl-Alt-P and is an alternative to the Component Palette.
Is the "Use" button somehow useful?
A component can be added by selecting it and clicking on designer, or by double-clicking it.
The behavior was slightly changed in r64929, issue: https://bugs.freepascal.org/view.php?id=38706
Now the "Use" button inserts a component at coord(0,0) right away, which is the double-click behavior.
Should the button be removed?

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210628/1d33412b/attachment.html>

Reply by email

Michael Van Canneyt
to Juha Manninen
Juha Manninen wrote 10 lines
The list opens with Ctrl-Alt-P and is an alternative to the Component Palette. Is the "Use" button somehow useful? A component can be added by selecting it and clicking on designer, or by double-clicking it. The behavior was slightly changed in r64929, issue: https://bugs.freepascal.org/view.php?id=38706 Now the "Use" button inserts a component at coord(0,0) right away, which is the double-click behavior. Should the button be removed?

I don't think you should remove it.
The fact that you can/must double click is not immediatly clear. A button has a clear meaning.

Michael.

Reply by email

Christo Crause
to Michael Van Canneyt

On Mon, Jun 28, 2021 at 1:45 PM Michael Van Canneyt via lazarus <

Show quoted text 24 lines
wrote: On Mon, 28 Jun 2021, Juha Manninen via lazarus wrote: > The list opens with Ctrl-Alt-P and is an alternative to the Component > Palette. > Is the "Use" button somehow useful? > A component can be added by selecting it and clicking on designer, or by > double-clicking it. > The behavior was slightly changed in r64929, issue: > https://bugs.freepascal.org/view.php?id=38706 > Now the "Use" button inserts a component at coord(0,0) right away, which is > the double-click behavior. > Should the button be removed? I don't think you should remove it. The fact that you can/must double click is not immediatly clear. A button has a clear meaning. Michael. --

FWIW (I don't build forms very often), I would like to expand on Michael's comment to suggest the "Use" button's caption could be changed to "Insert on form" or something similar to more clearly describe its function. Or maybe just "Insert" with a more descriptive hint (Insert selected component on active form).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210628/92d10d36/attachment.html>

Reply by email

Ondrej Pokorny
to Michael Van Canneyt: I don't think you should remove it. The fact that you can/must double click is not…
Michael Van Canneyt wrote 16 lines
On Mon, 28 Jun 2021, Juha Manninen via lazarus wrote: > The list opens with Ctrl-Alt-P and is an alternative to the Component > Palette. > Is the "Use" button somehow useful? > A component can be added by selecting it and clicking on designer, or by > double-clicking it. > The behavior was slightly changed in r64929, issue: > https://bugs.freepascal.org/view.php?id=38706 > Now the "Use" button inserts a component at coord(0,0) right away, > which is > the double-click behavior. > Should the button be removed? I don't think you should remove it. The fact that you can/must double click is not immediatly clear. A button has a clear meaning.

Yes, there is no need to delete it. If you remove it, you even cannot make the window smaller (you have the "keep open" checkbox there). And as Michael stated - the button makes it clear that you can press Enter to <use> the component.

Ondrej

Reply by email