Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Strange sideeffect ofButton.setImage(Image img) method

Hi Steve,

yes the Launch4J Wrapper invokes the javaw.exe. I copied the
javaw.exe.manifest to the deployment directory and to the jre/bin directory.
But it doesn't help. The button texts do not show up. I'm fairly at a loss
with this issue. I could live with the fact that the xp skin is not used but
the button misbehaviour is not acceptable for me. How do you guys solve this
with the eclipse.exe?

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 8:48 PM
To: Eclipse Platform SWT component developers list.
Subject: RE: [platform-swt-dev] Strange sideeffect ofButton.setImage(Image
img) method


Are you invoking javaw.exe?  If so, is the XP manifest in the same
directory? 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/14/2005 02:22 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
"'Eclipse Platform SWT component developers list.'"
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
RE: [platform-swt-dev] Strange side effect        ofButton.setImage(Image  
     img) method







Hi Steve,

i already tried that. If I run out of a jar file it works but if I compile
to a native executable wrapper (Launch4J) it doesn't. How do I generate a
manifest for a native executable? Renaming the manifest to match the
executable doesn't help. Any ideas?

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 8:11 PM
To: Eclipse Platform SWT component developers list.
Subject: Re: [platform-swt-dev] Strange side effect ofButton.setImage(Image
img) method


Try running with the XP manifest.  See
http://www.eclipse.org/swt/faq.php#xpthemes 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/13/2005 12:56 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
[platform-swt-dev] Strange side effect of Button.setImage(Image        img)
method







Using the new setImage(Image img) method of the
org.eclipse.swt.widgets.Button class in 3.2M3 causes a strange side effect.
If I use it inside the eclipse ide everything works. Button text and image
are shown at the same time as it should be. But if I deploy my application,
i.e. compile it to a native executable on Win32, the button texts disappear
and only the images are displayed. If I omit the setImage(Image img) calls
the texts are displayed. Any suggestions how to solve this issue? I use the
setImage(Image img) method inside the createButtonsForButtonBar(Composite
parent) method of org.eclipse.jface.dialogs.TitleAreaDialog but that
shouldn't matter I think.

Regards
Sebastian Machhausen

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

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



Back to the top