View Issue Details

IDProjectCategoryView StatusLast Update
0006487JEDI VCL00 JVCL Componentspublic2023-11-11 18:52
ReportercacofonyAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.48 
Target VersionFixed in VersionDaily / GIT 
Summary0006487: TJvTrayIcon Animate to Tray component visibility issues
Descriptionhttp://stackoverflow.com/questions/8624094/delphi-jedi-trayicon-hides-all-frames-bug

When AnimateToTray is in Visibility options, it does not restore Application.ShowMainForm and Application.MainForm.Visible states. It shows the window but 'Visible' is still false for your form after you restore it. That leads any attempt for showing hidden controls to fail since their parent is seemingly not showing.

Placing the following on your code that makes the form visible. Eg TrayIconOnClick

Application.ShowMainForm := True;
Visible := True;

Or turn of AnimateToTray

Thanks Sertac Akyuz on Stack Overflow
TagsNo tags attached.

Activities

obones

2018-07-18 15:36

administrator   ~0021479

Could you check if the issue is still present in the latest GIT content? If yes, please provide the zipped sources of an application showing this.

mh

2019-03-11 23:09

reporter   ~0021646

Where exactly in JVCL would we need to put the suggested fix?

mh

2019-04-25 21:34

reporter   ~0021738

ShowApplication does contain this if:

if Application.MainForm <> nil then
      Application.MainForm.Visible := True;

So if the MainForm exists it's visibility will be turned to true.
So if this is not enough, the failure is somewhere else. Right?
So if cacofony could shed some more light on this or provide a small demo showing this we might be able to fix it. The demo linked to in the StackOverflow entry is no longer accessible.

obones

2020-05-19 10:14

administrator   ~0021915

As asked before, could you please provide the zipped sources of a sample application showing this?

AHUser

2023-11-11 18:52

developer   ~0022049

Fixed in git main branch.

Issue History

Date Modified Username Field Change
2016-01-15 03:05 cacofony New Issue
2018-07-18 15:36 obones Note Added: 0021479
2018-07-18 15:36 obones Status new => feedback
2019-03-11 23:09 mh Note Added: 0021646
2019-04-25 21:34 mh Note Added: 0021738
2020-05-19 10:14 obones Note Added: 0021915
2023-11-11 18:52 AHUser Assigned To => AHUser
2023-11-11 18:52 AHUser Status feedback => resolved
2023-11-11 18:52 AHUser Resolution open => fixed
2023-11-11 18:52 AHUser Fixed in Version => Daily / GIT
2023-11-11 18:52 AHUser Note Added: 0022049