Sign in Join

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

Mailing lists / lazarus / 2009-11

Application minimize/restore

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

I'm tired of restoring every single window manually, after minimizing Lazarus on my Linux system. Today I found an workaround, and uploaded an patch #15055.

If somebody feels the same woes, please try my patch and report any problems or suggestions.

I already entered a similar solution some time ago, but it obviously didn't find its way into the LCL. The subject seems to be related to window managers, e.g. it does not apply to Win32 applications. It would be nice if somebody could make work the Application.OnMinimize handler, that is never invoked on my system, and could make the taskbar (entries) behave as intended...

DoDi

Reply by email

Juha Manninen
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 13 lines
I'm tired of restoring every single window manually, after minimizing Lazarus on my Linux system. Today I found an workaround, and uploaded an patch #15055. If somebody feels the same woes, please try my patch and report any problems or suggestions. I already entered a similar solution some time ago, but it obviously didn't find its way into the LCL. The subject seems to be related to window managers, e.g. it does not apply to Win32 applications. It would be nice if somebody could make work the Application.OnMinimize handler, that is never invoked on my system, and could make the taskbar (entries) behave as intended...

Sorry but where in Lazarus code should I place the MiniRestore call? Could you please make a patch (diff) for it.

Now I noticed a new bug in latest SVN version. The editor tabs can't be changed by clicking them. I think it could be done once after opening Lazarus but then not any more.
It can still be changed by clicking the file in Project Inspector.

Juha Manninen

Reply by email

Juha Manninen
to Hans-Peter Diettrich: I'm tired of restoring every single window manually, after minimizing Lazarus on my Linux…

Hi,

Ok, I read the bug page more carefully. I changed Lazarus MainBase.TMainIDEBase.SetupMainMenu accordingly and added uminirestore.pas as dependency.
Now I get a compile error:

uminirestore.pas(54,14) Error: Wrong number of parameters specified for call
to "MiniRestore"

Looks like the compiler is confused between global and class functions.

Juha Manninen

Reply by email

Juha Manninen
to Juha Manninen: Ok, I read the bug page more carefully. I changed Lazarus…
Juha Manninen wrote 11 lines
Hi, Ok, I read the bug page more carefully. I changed Lazarus MainBase.TMainIDEBase.SetupMainMenu accordingly and added uminirestore.pas as dependency. Now I get a compile error: uminirestore.pas(54,14) Error: Wrong number of parameters specified for call to "MiniRestore" Looks like the compiler is confused between global and class functions.

I got it working by renaming the global MiniRestore to MiniRestorex. It works better that before. Earlier the windows got minimized if I visited another virtual screen in KDE and then selected one of Lazarus windows. Then only the selected one got visible and others hidden. Now selecting the main windows makes the others visible, too.

[ Mattias Gaertner ]
Editor tabs can be changed again by clicking, thanks.

Juha Manninen

Reply by email

Hans-Peter Diettrich
to Juha Manninen
... except that there is one new "feature": Search - Replace dialog opens automatically when I select Lazarus main screen. I can't close it with Cancel. Only top right X closes it.

I found many more bugs in the IDE. The auto-indentation cannot be disabled, typeahead barfs on keywords and the list contains unreadable entries, error messages lead to wrong lines, the find dialog doesn't start at the begin of the file etc. etc. Dunno where to start reporting :-(

DoDi

Reply by email

Hans-Peter Diettrich
to Juha Manninen: Sorry but where in Lazarus code should I place the MiniRestore call? Could you please…
Sorry but where in Lazarus code should I place the MiniRestore call?

Read the information about the patch. Somebody should point out an better place than MainBase.TMainIDEBase.SetupMainMenu.

You should install the @DummyInstance.MiniRestore method as the handler, as shown in the text. The procedure only is intended for direct invocation, inside another OnWindowStateChange handler.

Now I noticed a new bug in latest SVN version. The editor tabs can't be changed by clicking them. I think it could be done once after opening Lazarus but then not any more. It can still be changed by clicking the file in Project Inspector.

ACK :-(
I also have to click somewhere else (e.g. into the edit text), then a different tab can be activated.

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich: I found many more bugs in the IDE. The auto-indentation cannot be disabled, typeahead…
Show quoted text 8 lines
Juha Manninen schrieb: > ... except that there is one new "feature": > Search - Replace dialog opens automatically when I select Lazarus > main screen. I can't close it with Cancel. Only top right X closes > it. I found many more bugs in the IDE. The auto-indentation cannot be disabled,

Environment / Options ... / Codetools / General

typeahead barfs on keywords

What is typeahead?

and the list contains unreadable entries,

?

error messages lead to wrong lines

For example?

, the find dialog doesn't start at the begin of the file

This works here.

etc. etc. Dunno where to start reporting :-(

At the bug tracker.

Mattias

Reply by email