(note that swt usage questions should
be asked on the eclipse.platform.swt newsgroup)
There isn't currently a way to do what
you want without making the browser visible. This question has come
up in the past with other widgets, so there may be an existing Feature
Request for the ability to do this, but I can't find it at the moment,
so if you want you can log a new one with Platform - SWT and specify the
Browser as the widget that you're interested in.
Regarding the vertical scrollbar, the
underlying browser is in control of this, so there is not an swt style
or api that can set its visibility. The only way to control this
is if you're providing the content being shown, in which case you can use
<body style='overflow:hidden;'> or <body style='overflow:auto;'>
.
Grant
Roland Auckenthaler <Roland_Auckenthaler@xxxxxxxx> Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
03/27/2006 11:13 AM
Please respond to
"Eclipse Platform SWT component developers list."
To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] HTML To
Image tool
Hi All,
Today i was writing an HTML to image rendering tool using the SWT which
works pretty well so far. I have attached to code here too. To this little
app i ahve a couple of questions which i wasnt able to do yet.
- capturing a widget image when not visible. When i capture the rendered
HTML from the browser widget i need to be visible. I tried to minimize
the visibility to only a couple of lines ( see the capture method) but
would like to be fully invisible when capturing.
- vertical scroll bar. I cannot get rid of the vertical scroll bar when
capturing at the moment i reduce the capturing area by 18 pixels (see capture
metohd) but ideally i would prefer not to do that. Is there a way around
that?
It would be nice if somebody could give some help on these two questions.
Thanks in advance
roland
public class DocumentationViewer
{
private Display display;
private Shell shell;
private Browser browser;
private boolean completed = false;
public DocumentationViewer(String a_Url)
{
display = new Display();
shell = new Shell(display);
shell.setVisible(false);
shell.setLayout(new FillLayout());