Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » default widget color
default widget color [message #120780] Tue, 21 March 2006 01:02 Go to next message
Eclipse UserFriend
Originally posted by: nospam.thanks.com

using VE1.2.0.v20060227_S

try this :
place a button in a shell.
look at it's background & foreground color : it's seem to be hardcoded.
"Color {212, 208, 200}" but in fact it's not.

set the value to COLOR_WIDGET_BACKGROUND and now you got a generated line:
" button.setForeground(Display.getCurrent().getSystemColor(SWT .COLOR_WIDGET_FOREGROUND)); "

in fact the problem is that the default value is really
COLOR_WIDGET_BACKGROUND but the properties display Color {212, 208, 200}
instead.

that's what confuse me.

is this little probleme will be solved ?
Re: default widget color [message #120784 is a reply to message #120780] Tue, 21 March 2006 06:22 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm presuming that the Color_widget_background is (212, 208, 200). There
is no way to know this. All that we know is that it is a color of that
value. There is no way to tell the difference between that color and
someone doing a setColor to ColorWidget_background unless it is in the
code of the class being edited since in that case we are processing the
source. But when it is an implicit value set by some other class there
is no way to know how it was set since there is no source to process.
Nor even if there where would we be processing it since we only process
the source of the class being edited.

G Brun wrote:
> using VE1.2.0.v20060227_S
>
> try this :
> place a button in a shell.
> look at it's background & foreground color : it's seem to be hardcoded.
> "Color {212, 208, 200}" but in fact it's not.
>
> set the value to COLOR_WIDGET_BACKGROUND and now you got a generated line:
> " button.setForeground(Display.getCurrent().getSystemColor(SWT .COLOR_WIDGET_FOREGROUND)); "
>
>
> in fact the problem is that the default value is really
> COLOR_WIDGET_BACKGROUND but the properties display Color {212, 208, 200}
> instead.
>
> that's what confuse me.
>
> is this little probleme will be solved ?
>

--
Thanks,
Rich Kulp
Re: default widget color [message #612334 is a reply to message #120780] Tue, 21 March 2006 06:22 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm presuming that the Color_widget_background is (212, 208, 200). There
is no way to know this. All that we know is that it is a color of that
value. There is no way to tell the difference between that color and
someone doing a setColor to ColorWidget_background unless it is in the
code of the class being edited since in that case we are processing the
source. But when it is an implicit value set by some other class there
is no way to know how it was set since there is no source to process.
Nor even if there where would we be processing it since we only process
the source of the class being edited.

G Brun wrote:
> using VE1.2.0.v20060227_S
>
> try this :
> place a button in a shell.
> look at it's background & foreground color : it's seem to be hardcoded.
> "Color {212, 208, 200}" but in fact it's not.
>
> set the value to COLOR_WIDGET_BACKGROUND and now you got a generated line:
> " button.setForeground(Display.getCurrent().getSystemColor(SWT .COLOR_WIDGET_FOREGROUND)); "
>
>
> in fact the problem is that the default value is really
> COLOR_WIDGET_BACKGROUND but the properties display Color {212, 208, 200}
> instead.
>
> that's what confuse me.
>
> is this little probleme will be solved ?
>

--
Thanks,
Rich Kulp
Previous Topic:Run Java Bean using main method
Next Topic:GoupLayout would be integreted into Mustang
Goto Forum:
  


Current Time: Fri Apr 26 01:04:40 GMT 2024

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

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

Back to the top