Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Adding Multiple Images to ExpandItem
Adding Multiple Images to ExpandItem [message #1709232] Fri, 25 September 2015 07:07 Go to next message
Srinivas Aravala is currently offline Srinivas AravalaFriend
Messages: 2
Registered: September 2015
Junior Member
HI ,

I am trying add multipe images to ExpandItem, i can only add one image to the expand item is there any way to add multiple images to expand item.

final ExpandItem expandItem = new ExpandItem(expandBar,SWT.NONE,0);
expandItem.setHeight(composite.computeSize(SWT.DEFAULT,SWT.DEFAULT).y);
expandItem.setText(headerInfo);
expandItem.setImage(imageSave);
expandItem.setImage(imagecancel);
expandItem.setImage(imageEdit);

expandItem.setControl(composite);

From the above code i can see only one image adding to the expandBar is there any way i can add multiple images to expandBar.
Re: Adding Multiple Images to ExpandItem [message #1709393 is a reply to message #1709232] Mon, 28 September 2015 08:17 Go to previous message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Hi Srinivas,
What's the real use case of having more than one image in an ExpandItem ?
Try merging the images(programmatically) before setting them on ExpandItem.
Previous Topic:SWT API only Jar
Next Topic:RCP 3.7 / SWT and Windows Data Execution Prevention
Goto Forum:
  


Current Time: Thu Apr 25 19:42:39 GMT 2024

Powered by FUDForum. Page generated in 0.03033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top