Bug 217384 - CCombo should allow button image to be customizable
Summary: CCombo should allow button image to be customizable
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-31 23:34 EST by Craig Salter CLA
Modified: 2019-09-06 15:36 EDT (History)
3 users (show)

See Also:


Attachments
an IBM internal copy of the CCombo class (53.20 KB, text/plain)
2008-01-31 23:43 EST, Craig Salter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Salter CLA 2008-01-31 23:34:28 EST
In WTP we're currently using a CCombo in conjunction with a GEF view.  The standard button image is a thick gray box with a black triangle.  This 'arrow' image doesn't fit the look and feel of our editor.  We'd like to be able to replace the image used on the button.

Currently we end up copying the CCombo code to achieve this and use a label instead of a button so we can 'setImage' on it. This works fine but I figured it would be nice to have a bug to point to in our copied code to explain the issue.
Comment 1 Craig Salter CLA 2008-01-31 23:43:08 EST
Created attachment 88500 [details]
an IBM internal copy of the CCombo class

There is also an internal IBM product that contains a copy of the CCombo class  for the very same reason (need to specialize the button image).  In accordance with the terms of EPL I've attached a copy of the file containing the modified class.
Comment 2 Steve Northover CLA 2008-02-01 12:00:45 EST
You are crazy copying this code ...
Comment 3 Craig Salter CLA 2008-02-01 12:47:28 EST
Ha ha.  Good to see your crazy detector is in fine working order.  That's always been the guidance we've gotten from other components in Eclipse where API is not available. Can you suggest an alternative?  

Comment 4 Steve Northover CLA 2008-02-01 17:28:01 EST
Give up and accept the arrow button?
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:36:41 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.