开发者

what is the order of events that SWT styleText monitors?

开发者 https://www.devze.com 2023-01-10 08:45 出处:网络
There are a lot of events that styleText can listen to and handle using _listeners of different kinds.

There are a lot of events that styleText can listen to and handle using _listeners of different kinds.

How can I find out which events fired when? For example, key event, line event, paint event, and so forth. Here are the listeners available:

开发者_如何转开发
addBidiSegmentListener
addExtendedModifyListener
addLineBackgroundListener
addLineStyleListener
addModifyListener
addPaintObjectListener
addSelectionListener
addVerifyKeyListener
addVerifyListener
addWordMovementListener

Thanks.


You need the "SWT Custom Controls" from the Eclipse Examples. Follow this page on how to set it up.

Then open the SWT Custom Controls view. Select the tab StyledText. Here you can select all listeners and simply try for yourself. Do something in the editor, and watch the output from the listeners. Very useful tools.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号