View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003618 | JEDI VCL | 00 JVCL Components | public | 2006-04-02 11:38 | 2006-04-21 02:59 |
Reporter | Kyle_Katarn | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.10 | ||||
Target Version | Fixed in Version | ||||
Summary | 0003618: TJvTrayIcon non exclusice behavior | ||||
Description | Minimize 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) | ||||
Tags | No tags attached. | ||||
|
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. |
|
I've found how to reproduce the issue : Add a popup menu with a "show me" item and set it as "default". |
|
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) |
|
File added. Thank you so much ! |
|
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. |
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 |