View Issue Details

IDProjectCategoryView StatusLast Update
0000223Double CommanderGraphical user interfacepublic2014-01-14 22:52
Reportervitaliyg Assigned ToAlexx2000  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
ProjectionnoneETAnone 
Fixed in Version0.5.2 
Summary0000223: Do not show dialogs in taskbar
Descriptionfixed to not show dialogs in taskbar
updated to show main form in screen center by default

in general dialog windows are not show in tasbar (possibly I am missing why ShowInTaskBar property of main form was set to Always instead of Default)
TagsNo tags attached.
Attached Files
fmain.lfm.patch (500 bytes)   
Index: fmain.lfm
===================================================================
--- fmain.lfm	(revision 4057)
+++ fmain.lfm	(working copy)
@@ -17,9 +17,9 @@
   OnShow = frmMainShow
   OnUTF8KeyPress = FormUTF8KeyPress
   OnWindowStateChange = FormWindowStateChange
+  Position = poScreenCenter
   SessionProperties = 'nbConsole.Height;seLogWindow.Height'
   ShowHint = True
-  ShowInTaskBar = stAlways
   LCLVersion = '0.9.31'
   Visible = True
   object MainToolBar: TKASToolBar
fmain.lfm.patch (500 bytes)   
Fixed in Revision4119
Operating system
Widgetset
Architecture

Activities

cobines

2011-11-06 22:32

administrator   ~0000064

If you set poScreenCenter then restoring position from session.ini does not work (only Width, Height). We need a new code for checking if positions was saved, if not then possibly autosize and position in center.

The TfrmMain is not the main form of the application. It is TfrmHackForm. So TfrmMain must have ShowInTaskBar=Always.

vitaliyg

2011-11-06 22:40

developer   ~0000066

But it is shown in taskbar correctly with Default value (what is the difference here)

cobines

2011-11-06 22:49

administrator   ~0000068

No, with Default it is not shown in the taskbar (Windows XP SP3). Default I think depends on Application.TaskBarBehavior.

Alexx2000

2011-11-06 22:50

administrator   ~0000069

Also with Default don't work correctly switching between main form and other forms with ShowInTaskBar=Always (Editor, Viewer, etc).

vitaliyg

2011-11-07 00:53

developer   ~0000072

do TfrmHackForm have to be main form of main form can be switched like this
if yes: it is show correctly even with stDefault in Alt+Tab window and taskbar (Win XP SP3 32bit)
...
       Application.CreateForm(TfrmMain, frmMain); // main form
       Application.UpdateMainForm(frmMain);
...

vitaliyg

2011-11-07 11:10

developer   ~0000073

but issues with viewer and edit still remains
I'll dig this deeper

cobines

2011-11-08 20:05

administrator   ~0000076

As Alexx2000 said, there is problem switching between main form and other forms, via Alt+Tab and taskbar buttons. So hack form was introduced. The problem is only on Win32 I think.

vitaliyg

2011-11-10 01:07

developer   ~0000085

I have fixe for this error
but it requires updates to lcl (there is no way to bypass)

cobines

2011-11-10 04:18

administrator   ~0000087

Can you post it to the Lazarus bugtracker? Maybe they will review it before next release.
Does it fix this bug:
http://bugs.freepascal.org/view.php?id=18480

Alexx2000

2011-11-26 20:46

administrator   ~0000224

I made small workaround for this bug (r4119). It fixes two things:
1. Disables taskbar button for modal dialogs
2. Activate modal form if it exists when click on main form

I checked it on WinXP and it works fine.

Issue History

Date Modified Username Field Change
2011-11-06 22:19 vitaliyg New Issue
2011-11-06 22:19 vitaliyg File Added: fmain.lfm.patch
2011-11-06 22:32 cobines Note Added: 0000064
2011-11-06 22:40 vitaliyg Note Added: 0000066
2011-11-06 22:49 cobines Note Added: 0000068
2011-11-06 22:50 Alexx2000 Note Added: 0000069
2011-11-07 00:53 vitaliyg Note Added: 0000072
2011-11-07 11:10 vitaliyg Note Added: 0000073
2011-11-08 20:05 cobines Note Added: 0000076
2011-11-10 01:07 vitaliyg Note Added: 0000085
2011-11-10 04:18 cobines Note Added: 0000087
2011-11-26 20:38 Alexx2000 Assigned To => Alexx2000
2011-11-26 20:38 Alexx2000 Status new => assigned
2011-11-26 20:46 Alexx2000 Note Added: 0000224
2011-12-30 19:13 Alexx2000 Fixed in Revision => 4119
2011-12-30 19:13 Alexx2000 Status assigned => resolved
2011-12-30 19:13 Alexx2000 Fixed in Version => 0.5.2
2011-12-30 19:13 Alexx2000 Resolution open => fixed
2014-01-14 22:52 Alexx2000 Status resolved => closed