Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to get noticed after a StyledText object is painted caused by an edit action from user?

does this work for you:

styledText.addListener(SWT.Paint, new Listener() {
void handleEvent(Event e) {
//your code
}
});


Please, in the future, use the newsgroup for user questions. Thank you

Regards
Felipe



From:
ZhangLiang <zl_zela@xxxxxxxxxxx>
To:
<platform-swt-dev@xxxxxxxxxxx>
Date:
15/01/2010 01:51 AM
Subject:
[platform-swt-dev] How to get noticed after a StyledText object is painted 
caused by an edit action from user?
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx




Hi,
 
Recently I am writing a program that must keep watching the things happend 
in a StyledText object. I want to get noticed after a StyledText object is 
painted caused by an edit action from user, but I do not know how to 
achieve this. At least I want to get noticed after a paint have completed. 
I have read the SWT javadoc and found that I can only get noticed by a 
paint event which is sent before the paint really happen. Please help me. 
Thanks a lot.
 
Best regards,
Liang ZHANG  
_________________________________________________________________
SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻!
http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top