View Issue Details

IDProjectCategoryView StatusLast Update
0003618JEDI VCL00 JVCL Componentspublic2006-04-21 02:59
ReporterKyle_KatarnAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.10 
Target VersionFixed in Version 
Summary0003618: TJvTrayIcon non exclusice behavior
DescriptionMinimize and retore in TJvTrayIcon are not exclusive. If you set tvRetoreDblClick and tvMinimizeDblClick to true the two behaviors conflict.

Idea : Use applicatino state (hidden or not) to use only one of the 2 setting when both are set (hide if shown and show if hidden)
TagsNo tags attached.

Activities

obones

2006-04-13 02:31

administrator   ~0009080

I'm really surprised here.
Are you using the latest version?
I'm asking this because the code from the TJvTrayIcon is quite clear:

    if ApplicationVisible then
    begin
      if tvMinimizeDbClick in Visibility then
        { (rb) Call Application.Minimize instead of HideApplication
               if tvAutoHide not in Visibility ? }
        HideApplication;
    end
    else
    if tvRestoreDbClick in Visibility then
      ShowApplication;

It does indeed test the state of the application. And I just tried with an empty project with just the JvTrayIcon component on it, it works just fine.
So please try with the latest version, and if you still see this, please create a sample application showing the problem, zip up the sources, and upload them here.

Kyle_Katarn

2006-04-15 02:50

reporter   ~0009120

I've found how to reproduce the issue :
Add a popup menu with a "show me" item and set it as "default".

obones

2006-04-15 03:30

administrator   ~0009121

Uh? The mere fact of having a default item won't do that.
It's the code you put behind. And that, we cannot control what a user is doing in its default menu item.
And I'm asking again please provide the zipped sources of a sample application, considering the number of issues here, I don't have the time to try again and again the same issue.

2006-04-15 04:04

 

TrayBug.zip (6,036 bytes)

Kyle_Katarn

2006-04-15 04:04

reporter   ~0009122

File added.
Thank you so much !

obones

2006-04-21 02:59

administrator   ~0009162

Well, that's what I said from the start.
YOU, the user, put some code in the OnClick handler of YOUR menu item. This code, which the JVCL has NO knowledge of, always restores the application.
This is then NOT an issue as, as I said before, we CANNOT and WILL NOT control what the users put in their handlers. If you don't want the problem to happen, you MUST control yourself the state of the application before calling ShowApplication.

Issue History

Date Modified Username Field Change
2006-04-02 11:38 Kyle_Katarn New Issue
2006-04-13 02:31 obones Note Added: 0009080
2006-04-13 02:31 obones Status new => feedback
2006-04-15 02:50 Kyle_Katarn Note Added: 0009120
2006-04-15 03:30 obones Note Added: 0009121
2006-04-15 04:04 Kyle_Katarn File Added: TrayBug.zip
2006-04-15 04:04 Kyle_Katarn Note Added: 0009122
2006-04-21 02:59 obones Status feedback => resolved
2006-04-21 02:59 obones Resolution open => no change required
2006-04-21 02:59 obones Assigned To => obones
2006-04-21 02:59 obones Note Added: 0009162