Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Adding Images Dynamically on button click

Hi Grant,

Appreciate your response, i'll try posting the same in newsgroup. But the link you have given doesn't solve my problem.



Thanks,
Raghu

On Thu, Jun 26, 2008 at 8:13 AM, Grant Gayed <Grant_Gayed@xxxxxxxxxx> wrote:

Please note that swt usage questions like this should be asked on the eclipse.platform.swt newsgroup, not on this mailing list.

You need to:
- listen for a selection event on the Tree, see http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet114.java?view=co
- when an event is received, make whatever state change is needed to make your Canvas's Paint listener draw its new content, and then use Canvas.redraw(...) to do the update, see http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet275.java?view=co

Grant

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top