Sign in Join

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

Mailing lists / lazarus / 2014-07

Some suggestions

16 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

Hi,

I've finally been able to upgrade my lazarus so I could enjoy the new functionalities in the package manager/project manager and the messages dialog.

In general, the new functionalities are a real joy to work with, kudos to the lazarus team...

Some annoyances I noticed which can probably be improved (I'm using GTK2 version of lazarus):

- When I right-click a message in the message dialog, the pop-up menu displays the possibilities for the selected item, not the item I just right-clicked. I suspect this is a matter of letting right-click also select the clicked message.

Currently I need first to click on the message to make it active, and then right-click to get the pop-up.

- The 'Stay on top' option of the messages window is nice, but is cumbersome.

Without the option, clicking the message means that the source window will cover the messages window (precious little screen real-estate), making it hard to do the right-click to get the menu-item which I really want (Usually "remove unused variable").

With the option enabled, it really stays on top, also of other (non-lazarus) windows
- forcing me to switch it off before I can continue to work.

Currently, the way of working is: Enable 'Stay on top', fix lots of warnings/hints, Disable "Stay on top", recompile all, and repeat.

Suggestions to improve this would be most welcome...

- The compiler reports unused units, variables, constants. There is a "Remove unused variable", idem for units in uses clauses, but no "Remove unused constant". An oversight, I presume ?

- An option 'Remove all unused items in this unit' would be really great...

- When I select multiple files in the project editor (using ctrl-click), and then want to drag them to a package, then it deselects the clicked one if I use ctrl to perform the drag, and selects only the clicked one if I don't use the ctrl. This kind of defeats the multi-select :(

- When I move a unit to a package, then it happened that the IDE told me that this action will break the uses clause of some units. All correct, and this is really neat ! The action to take was to add the target package to the source (project, in this case).

So, an additional button in this dialog would be 'Add target package as dependency to source'. (or something shorter)

Anyway, great job on the new functionalities !!

Michael.

Reply by email

Juha Manninen
to Michael Van Canneyt
Michael Van Canneyt wrote
I'm using GTK2 version of lazarus

This is not directly related to your other comments but there are good news for GTK2 users.
The issue #20202 from 2011 got finally solved.
http://bugs.freepascal.org/view.php?id=20202

You can now safely use the TurboPowerIProDsgn package and get nice formatted hint and info windows.
I will configure it to be installed automatically once I find a way to do it.

The problem was not directly in LCL-GTK2 but for some reason it was mostly triggered there.
I have used the GTK2 IDE with iPro installed now ~10 hours and no crashes so far!

Juha

Reply by email

Juha Manninen
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Fantastic! Thank you so much Juha.

Thanks for the feedback Graeme.
People may have looked at wrong places because the crash happened mostly (or only) with GTK2.
I am still not 100% sure of the reasons.
Now the hint control is created once and reused, and is freed by its owner which is the right way to go. Why it crashed only with the iPro HTML panel but not with the default memo control, I don't know.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140704/63f4542b/attachment.html>

Reply by email

Mattias Gaertner
to Michael Van Canneyt: I've finally been able to upgrade my lazarus so I could enjoy the new functionalities in…
Show quoted text 7 lines
[...] - When I right-click a message in the message dialog, the pop-up menu displays the possibilities for the selected item, not the item I just right-clicked. I suspect this is a matter of letting right-click also select the clicked message. Currently I need first to click on the message to make it active, and then right-click to get the pop-up.

It now selects on right click.

Mattias

Reply by email

Mattias Gaertner
to Michael Van Canneyt: I've finally been able to upgrade my lazarus so I could enjoy the new functionalities in…
Show quoted text 7 lines
[...] - The 'Stay on top' option of the messages window is nice, but is cumbersome. Without the option, clicking the message means that the source window will cover the messages window (precious little screen real-estate), making it hard to do the right-click to get the menu-item which I really want (Usually "remove unused variable").

Have you tried to enable Options / Messages Windows / Jump from messages to source line on double click?

Mattias

Reply by email

Mattias Gaertner
to Michael Van Canneyt: I've finally been able to upgrade my lazarus so I could enjoy the new functionalities in…
[...] - When I select multiple files in the project editor (using ctrl-click), and then want to drag them to a package, then it deselects the clicked one if I use ctrl to perform the drag,

The multi selection is currently done in TTreeView.MouseDown. Maybe it should be done in MouseUp.

Why do you use Ctrl to drag?

and selects only the clicked one if I don't use the ctrl. This kind of defeats the multi-select :(

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) Michael Van Canneyt wrote: > [...] > - When I select multiple files in the project editor (using ctrl-click), and then want to > drag them to a package, then it deselects the clicked one if I use ctrl to perform the drag, The multi selection is currently done in TTreeView.MouseDown. Maybe it should be done in MouseUp.

I think so.

Why do you use Ctrl to drag?

To keep the multi-selection active.
If I don't use the CTRL, it selects the current one on click.

Michael.

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) Have you tried to enable Options / Messages…
Mattias Gaertner wrote 13 lines
On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) Michael Van Canneyt wrote: > [...] > - The 'Stay on top' option of the messages window is nice, but is cumbersome. > > Without the option, clicking the message means that the source window will > cover the messages window (precious little screen real-estate), making it > hard to do the right-click to get the menu-item which I really want > (Usually "remove unused variable"). Have you tried to enable Options / Messages Windows / Jump from messages to source line on double click?

Now I have, and discovered the 'Focus on compile' option as well, which is super!

thanks !!

Michael.

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) It now selects on right click. Mattias
Mattias Gaertner wrote 12 lines
On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) Michael Van Canneyt wrote: > [...] > - When I right-click a message in the message dialog, the pop-up menu displays the possibilities > for the selected item, not the item I just right-clicked. > I suspect this is a matter of letting right-click also select the clicked message. > > Currently I need first to click on the message to make it active, and then right-click to > get the pop-up. It now selects on right click.

Great job !

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt: I think so. To keep the multi-selection active. If I don't use the CTRL, it selects the…
Show quoted text 21 lines
On Tue, 15 Jul 2014, Mattias Gaertner wrote: > On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) > Michael Van Canneyt wrote: > >> [...] >> - When I select multiple files in the project editor (using ctrl-click), and then want to >> drag them to a package, then it deselects the clicked one if I use ctrl to perform the drag, > > The multi selection is currently done in TTreeView.MouseDown. Maybe it > should be done in MouseUp. I think so. > > Why do you use Ctrl to drag? To keep the multi-selection active. If I don't use the CTRL, it selects the current one on click.

Here it works like this:
Multi select some files using shift or ctrl.
Left mousedown on one of the selected items (no shift, no ctrl), drag, mouse up.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 29 lines
On Tue, 15 Jul 2014 09:01:48 +0200 (CEST) Michael Van Canneyt wrote: > > > On Tue, 15 Jul 2014, Mattias Gaertner wrote: > >> On Thu, 3 Jul 2014 13:19:04 +0200 (CEST) >> Michael Van Canneyt wrote: >> >>> [...] >>> - When I select multiple files in the project editor (using ctrl-click), and then want to >>> drag them to a package, then it deselects the clicked one if I use ctrl to perform the drag, >> >> The multi selection is currently done in TTreeView.MouseDown. Maybe it >> should be done in MouseUp. > > I think so. > >> >> Why do you use Ctrl to drag? > > To keep the multi-selection active. > If I don't use the CTRL, it selects the current one on click. Here it works like this: Multi select some files using shift or ctrl. Left mousedown on one of the selected items (no shift, no ctrl), drag, mouse up.

Nope. Here, on left mousedown the multiselect is killed :(

Todays' Lazarus, GTK2 widgetset.

Michael.

Reply by email

Giuliano Colla
to Michael Van Canneyt

Il 15/07/2014 13:35, Michael Van Canneyt ha scritto:

Show quoted text 6 lines
[...] Nope. Here, on left mousedown the multiselect is killed :( Todays' Lazarus, GTK2 widgetset.

Just a wild guess. Are you sure that your mouse works properly? I've already thrown away a number of mice (mainly Microsoft's, but maybe it's a coincidence), which had started generating two clicks instead of just one. If the second click has the same effect of the first you don't notice, but in this case it can make the difference.

FWIW,

Giuliano

Reply by email

Michael Van Canneyt
to Giuliano Colla
Giuliano Colla wrote 13 lines
Il 15/07/2014 13:35, Michael Van Canneyt ha scritto: > > [...] > Nope. Here, on left mousedown the multiselect is killed :( > > Todays' Lazarus, GTK2 widgetset. > Just a wild guess. Are you sure that your mouse works properly? I've already thrown away a number of mice (mainly Microsoft's, but maybe it's a coincidence), which had started generating two clicks instead of just one. If the second click has the same effect of the first you don't notice, but in this case it can make the difference.

Tried with 3 different mouses (1 trackball, one regular, one mouse pad on laptop).

Same behaviour....

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt: Tried with 3 different mouses (1 trackball, one regular, one mouse pad on laptop). Same…
Show quoted text 21 lines
On Tue, 15 Jul 2014, Giuliano Colla wrote: > Il 15/07/2014 13:35, Michael Van Canneyt ha scritto: >> >> [...] >> Nope. Here, on left mousedown the multiselect is killed :( >> >> Todays' Lazarus, GTK2 widgetset. >> > > Just a wild guess. Are you sure that your mouse works properly? > I've already thrown away a number of mice (mainly Microsoft's, but maybe it's > a coincidence), which had started generating two clicks instead of just one. > If the second click has the same effect of the first you don't notice, but in > this case it can make the difference. Tried with 3 different mouses (1 trackball, one regular, one mouse pad on laptop). Same behaviour....

Fixed.

Mattias

Reply by email