ResourceManager, Buttons, Colors

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

ResourceManager, Buttons, Colors

Postby raptorNine » Fri Sep 26, 2003 9:55 am

I'm having some trouble getting buttons to show background color. When setting the attribute for button "background" in the gui, designer, the code generator adds in a reference to com.swtdesigner.ResourceManager.

1)The ResourceManager.java is found buried in the src directory. Is there a "standard" way to include the ResourceManager?

2) Shouldn't the ResourceManager be included in the designer.jar file? - it seems to be used for very common things like widget colors.

3) Even with the ResourceManager in the project, the buttons still don't show the background color. - Am I doing something wrong here?
raptorNine
 
Posts: 1
Joined: Fri Sep 26, 2003 9:38 am

Re: ResourceManager, Buttons, Colors

Postby admin » Sun Sep 28, 2003 9:50 pm

raptorNine wrote:I'm having some trouble getting buttons to show background color. When setting the attribute for button "background" in the gui, designer, the code generator adds in a reference to com.swtdesigner.ResourceManager.


raptorNine wrote:1)The ResourceManager.java is found buried in the src directory. Is there a "standard" way to include the ResourceManager?

Yes, add class ResourceManager to your project.

raptorNine wrote:2) Shouldn't the ResourceManager be included in the designer.jar file? - it seems to be used for very common things like widget colors.

It is in designer.jar, and used internally by designer itself. But we don't want to force out customers to ship nonstandard jar's and use code without source, so we provide separate class with source.

raptorNine wrote:3) Even with the ResourceManager in the project, the buttons still don't show the background color. - Am I doing something wrong here?

Background color is not supported by SWT for Win32.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest