Topic: A SWT Question

  Print this page

1.A SWT Question Copy to clipboard
Posted by: tzutolin
Posted on: 2004-07-19 21:12

Hello, everyone

Does anyone know how to emulate the "Mouse Clicked" event in SWT? Thank you Smile

2.Re:A SWT Question [Re: tzutolin] Copy to clipboard
Posted by: tzutolin
Posted on: 2004-07-19 21:57

I have a solution by my own. But it is not really smart. I set a flag called isMouseClicked, and the default value is true. It will be set to false when the mouse leave the widget, so I can determine weather my action should be performed in the mouse up event. Any comments will be very appreciated!

Thank you!

Best regards,
tzutolin

3.Re:A SWT Question [Re: tzutolin] Copy to clipboard
Posted by: yipsilon
Posted on: 2004-07-20 11:33

use org.eclipse.swt.event.SelectionListener to implement it.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923