Home » Eclipse Projects » Remote Application Platform (RAP) » Form Heading Issue
Form Heading Issue [message #509082] |
Thu, 21 January 2010 10:44 |
Niels Lippke Messages: 71 Registered: December 2009 |
Member |
|
|
Hi,
this is again a small issue. For me the form header's bottom line is not
drawn (or at least not visible) in IE 8. It is in FF or Safari.
See this snippet:
public void createPartControl(Composite parent) {
FormColors colors = new FormColors(parent.getDisplay());
colors.createColor(IFormColors.H_GRADIENT_START, Graphics.getColor(189,
193, 200).getRGB());
colors.createColor(IFormColors.H_GRADIENT_END, Graphics.getColor(240,
241, 242).getRGB());
colors.createColor(IFormColors.H_BOTTOM_KEYLINE2, Graphics.getColor(0, 0,
0).getRGB());
colors.createColor(IFormColors.H_BOTTOM_KEYLINE1, Graphics.getColor(127,
127, 127).getRGB());
FormToolkit tk = new FormToolkit(colors);
Form form = tk.createForm(parent);
form.setFont(Graphics.getFont(new FontData("Segoe UI", 16, SWT.BOLD)));
form.setText("Form Title");
tk.decorateFormHeading(form);
}
Regards, Niels
|
|
|
Re: Form Heading Issue [message #509088 is a reply to message #509082] |
Thu, 21 January 2010 06:24 |
Benjamin Muskalla Messages: 338 Registered: July 2009 |
Senior Member |
|
|
Hi Niels,
sounds like a bug to me. Would you please open a new bug report? Thanks!
Regards,
Ben
Niels Lippke wrote:
> Hi,
>
> this is again a small issue. For me the form header's bottom line is not
> drawn (or at least not visible) in IE 8. It is in FF or Safari.
>
> See this snippet:
>
> public void createPartControl(Composite parent) {
> FormColors colors = new FormColors(parent.getDisplay());
> colors.createColor(IFormColors.H_GRADIENT_START,
> Graphics.getColor(189, 193, 200).getRGB());
> colors.createColor(IFormColors.H_GRADIENT_END, Graphics.getColor(240,
> 241, 242).getRGB());
> colors.createColor(IFormColors.H_BOTTOM_KEYLINE2, Graphics.getColor(0,
> 0, 0).getRGB());
> colors.createColor(IFormColors.H_BOTTOM_KEYLINE1,
> Graphics.getColor(127, 127, 127).getRGB());
> FormToolkit tk = new FormToolkit(colors);
> Form form = tk.createForm(parent);
> form.setFont(Graphics.getFont(new FontData("Segoe UI", 16, SWT.BOLD)));
> form.setText("Form Title");
> tk.decorateFormHeading(form);
> }
>
>
> Regards, Niels
--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
|
|
|
Re: Form Heading Issue [message #509139 is a reply to message #509088] |
Thu, 21 January 2010 13:49 |
Niels Lippke Messages: 71 Registered: December 2009 |
Member |
|
|
Bug 300356.
Thanks,
Niels
"Benjamin Muskalla" <bmuskalla@eclipsesource.com> schrieb im Newsbeitrag
news:hj9cne$uub$1@build.eclipse.org...
> Hi Niels,
>
> sounds like a bug to me. Would you please open a new bug report? Thanks!
>
> Regards,
> Ben
>
> Niels Lippke wrote:
>> Hi,
>>
>> this is again a small issue. For me the form header's bottom line is not
>> drawn (or at least not visible) in IE 8. It is in FF or Safari.
>>
>> See this snippet:
>>
>> public void createPartControl(Composite parent) {
>> FormColors colors = new FormColors(parent.getDisplay());
>> colors.createColor(IFormColors.H_GRADIENT_START, Graphics.getColor(189,
>> 193, 200).getRGB());
>> colors.createColor(IFormColors.H_GRADIENT_END, Graphics.getColor(240,
>> 241, 242).getRGB());
>> colors.createColor(IFormColors.H_BOTTOM_KEYLINE2, Graphics.getColor(0,
>> 0, 0).getRGB());
>> colors.createColor(IFormColors.H_BOTTOM_KEYLINE1,
>> Graphics.getColor(127, 127, 127).getRGB());
>> FormToolkit tk = new FormToolkit(colors);
>> Form form = tk.createForm(parent);
>> form.setFont(Graphics.getFont(new FontData("Segoe UI", 16, SWT.BOLD)));
>> form.setText("Form Title");
>> tk.decorateFormHeading(form);
>> }
>>
>>
>> Regards, Niels
>
>
> --
> Benjamin Muskalla | EclipseSource Karlsruhe
> http://www.eclipsesource.com | http://twitter.com/eclipsesource
|
|
|
Goto Forum:
Current Time: Wed Oct 09 20:17:59 GMT 2024
Powered by FUDForum. Page generated in 0.25490 seconds
|