Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsadding a button to a composite at position x
https://www.eclipse.org/forums/index.php/mv/msg/206542/661156/#msg_661156
i created a composite with 10 buttons. After that i tried to add a new button to this composite at first position (index 0, or somwhere else). I have no idea how to do this.
The button has no constructor with a index and the composite has no methods to rearrange its children. The only way i found out is to dispose all buttons and create them again. But this is not a good way i think.
How can i solve this problem.]]>GRudiD 2011-03-23T12:04:41-00:00Re: adding a button to a composite at position x
https://www.eclipse.org/forums/index.php/mv/msg/206542/661371/#msg_661371
You can use Control.moveAbove() and Control.moveBelow() to rearrange the controls. Here is an example snippet --> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet6.j ava
HTH,]]>Lakshmi P Shanmugam2011-03-24T12:33:41-00:00Re: adding a button to a composite at position x
https://www.eclipse.org/forums/index.php/mv/msg/206542/661718/#msg_661718
GRudiD 2011-03-26T16:26:06-00:00