This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Mouse actions
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2006
10:40 AM
Mouse actions
Hi,
How can I support mouse right click on the Swing dialogs?
Thanks
Eyal
How can I support mouse right click on the Swing dialogs?
Thanks
Eyal
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2006
11:05 AM
Eyal,
You can only do this with the "5.x" type of swing custom dialogs that you can do in IS 11. See the docs for "5.x Panels". In those types of panels, you create a SwingImpl class. You can make that class implement java's MouseListener interface. You can then have events in the panel class such as mouseClicked(), mouseEntered(), mousePressed(), etc.
You can only do this with the "5.x" type of swing custom dialogs that you can do in IS 11. See the docs for "5.x Panels". In those types of panels, you create a SwingImpl class. You can make that class implement java's MouseListener interface. You can then have events in the panel class such as mouseClicked(), mouseEntered(), mousePressed(), etc.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2006
12:17 PM
Hi Brian,
Thanks for the reply, but what about the newest dialogs, do they support it?
Eyal
Thanks for the reply, but what about the newest dialogs, do they support it?
Eyal
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2006
12:23 PM
Eyal,
No, in the new dialogs, the acutal UI implementation is not exposed in code, thus you do not have the ability to add listeners to the controls on the panels. The code that you write for the "new" panels is only for event code.
I suppose that it would be possible to implement a mouse listener in a custom control, which you could then add to one of the "new" types of dialogs, but that mostly would defeat the purpose of using the new dialogs instead of the 5.x dialogs.
No, in the new dialogs, the acutal UI implementation is not exposed in code, thus you do not have the ability to add listeners to the controls on the panels. The code that you write for the "new" panels is only for event code.
I suppose that it would be possible to implement a mouse listener in a custom control, which you could then add to one of the "new" types of dialogs, but that mostly would defeat the purpose of using the new dialogs instead of the 5.x dialogs.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 07, 2006
12:25 PM
Thanks Brian,
We will just wait for future release.
Thanks
Eyal
We will just wait for future release.
Thanks
Eyal