Home » Eclipse Projects » Nebula » Resizing GridEditor redraw issues
|
Re: Resizing GridEditor redraw issues [message #15718 is a reply to message #15697] |
Fri, 27 October 2006 16:51 |
Chris Gross Messages: 253 Registered: July 2009 |
Senior Member |
|
|
Hi Asim,
What you're seeing is a result of a issue in SWT thats since been fixed.
See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
and I need to make some follow up changes in GridEditor.
Are you running 3.3?
Regards,
-Chris
Asim wrote:
> Trying to code up a Grid with an GridEditor using a Text Widget.
> But I'm running into redraw problems, as the Text widget flickers over the
> the GridColumn header as the shell gets resized.
>
> Below is the code I'm using.
> Is there anything I'm doing wrong??
>
> --------------------------------------
> Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
>
> grid.setHeaderVisible(true);
>
> GridColumn column = new GridColumn(grid,SWT.NONE);
>
> column.setText("Name");
>
> column.setWidth(300);
>
>
> GridItem item1 = new GridItem(grid,SWT.NONE);
>
> Text text = new Text(grid, SWT.NONE);
>
> text.setText("my Item");
>
> item1.setText(text.getText());
>
> GridEditor editor = new GridEditor(grid);
>
> editor.setEditor(text, item1, 0);
>
> editor.grabHorizontal = true;
>
>
|
|
|
Re: Resizing GridEditor redraw issues [message #16142 is a reply to message #15718] |
Mon, 30 October 2006 11:18 |
Asim Ullah Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hi Chris
Just tried it with Eclipse3.3M2 and encountered the same redraw glitches.
This was using jdk1.5.0_08.
Playing around, I commented out the line "editor.grabHorizontal = true;"
and redraw works without a problem, but the editor functionality seems
to be disabled.
(Are there any snippets that include GridEditor ?)
---------------
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.nebula.widgets.grid.Grid;
import org.eclipse.swt.nebula.widgets.grid.GridColumn;
import org.eclipse.swt.nebula.widgets.grid.GridEditor;
import org.eclipse.swt.nebula.widgets.grid.GridItem;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class GridTest
{
public static void main(String[] args)
{
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new FillLayout());
Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL |
SWT.H_SCROLL);
grid.setHeaderVisible(true);
GridColumn column = new GridColumn(grid,SWT.NONE);
column.setText("Name");
column.setWidth(300);
GridItem item1 = new GridItem(grid,SWT.NONE);
Text text = new Text(grid, SWT.NONE);
text.setText("my Item");
item1.setText(text.getText());
GridEditor editor = new GridEditor(grid);
editor.setEditor(text, item1, 0);
//editor.grabHorizontal = true;
shell.setSize(250,250);
shell.open ();
while (!shell.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
"Chris Gross" <chris.gross@us.ibm.com> wrote in message
news:ehtdf0$8cl$1@utils.eclipse.org...
> Hi Asim,
>
> What you're seeing is a result of a issue in SWT thats since been fixed.
> See:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
>
> I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
> and I need to make some follow up changes in GridEditor.
>
> Are you running 3.3?
|
|
|
Re: Resizing GridEditor redraw issues [message #16169 is a reply to message #16142] |
Tue, 31 October 2006 21:08 |
Chris Gross Messages: 253 Registered: July 2009 |
Senior Member |
|
|
3.3 M2 was released on Sept 22. The bug was fixed on Oct 10.....
Asim wrote:
> Hi Chris
>
> Just tried it with Eclipse3.3M2 and encountered the same redraw glitches.
> This was using jdk1.5.0_08.
>
> Playing around, I commented out the line "editor.grabHorizontal = true;"
> and redraw works without a problem, but the editor functionality seems
> to be disabled.
>
> (Are there any snippets that include GridEditor ?)
>
> ---------------
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.FillLayout;
> import org.eclipse.swt.nebula.widgets.grid.Grid;
> import org.eclipse.swt.nebula.widgets.grid.GridColumn;
> import org.eclipse.swt.nebula.widgets.grid.GridEditor;
> import org.eclipse.swt.nebula.widgets.grid.GridItem;
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.widgets.Text;
>
> public class GridTest
> {
> public static void main(String[] args)
> {
> Display display = new Display ();
> Shell shell = new Shell (display);
> shell.setLayout(new FillLayout());
> Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);
> grid.setHeaderVisible(true);
> GridColumn column = new GridColumn(grid,SWT.NONE);
> column.setText("Name");
> column.setWidth(300);
> GridItem item1 = new GridItem(grid,SWT.NONE);
>
> Text text = new Text(grid, SWT.NONE);
> text.setText("my Item");
> item1.setText(text.getText());
> GridEditor editor = new GridEditor(grid);
> editor.setEditor(text, item1, 0);
> //editor.grabHorizontal = true;
>
> shell.setSize(250,250);
> shell.open ();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch ()) display.sleep ();
> }
> display.dispose ();
> }
> }
>
> "Chris Gross" <chris.gross@us.ibm.com> wrote in message
> news:ehtdf0$8cl$1@utils.eclipse.org...
>> Hi Asim,
>>
>> What you're seeing is a result of a issue in SWT thats since been fixed.
>> See:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
>>
>> I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
>> and I need to make some follow up changes in GridEditor.
>>
>> Are you running 3.3?
>
>
|
|
|
Re: Resizing GridEditor redraw issues [message #567731 is a reply to message #15697] |
Fri, 27 October 2006 16:51 |
Chris Gross Messages: 471 Registered: July 2009 |
Senior Member |
|
|
Hi Asim,
What you're seeing is a result of a issue in SWT thats since been fixed.
See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
and I need to make some follow up changes in GridEditor.
Are you running 3.3?
Regards,
-Chris
Asim wrote:
> Trying to code up a Grid with an GridEditor using a Text Widget.
> But I'm running into redraw problems, as the Text widget flickers over the
> the GridColumn header as the shell gets resized.
>
> Below is the code I'm using.
> Is there anything I'm doing wrong??
>
> --------------------------------------
> Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
>
> grid.setHeaderVisible(true);
>
> GridColumn column = new GridColumn(grid,SWT.NONE);
>
> column.setText("Name");
>
> column.setWidth(300);
>
>
> GridItem item1 = new GridItem(grid,SWT.NONE);
>
> Text text = new Text(grid, SWT.NONE);
>
> text.setText("my Item");
>
> item1.setText(text.getText());
>
> GridEditor editor = new GridEditor(grid);
>
> editor.setEditor(text, item1, 0);
>
> editor.grabHorizontal = true;
>
>
|
|
|
Re: Resizing GridEditor redraw issues [message #567828 is a reply to message #15718] |
Mon, 30 October 2006 11:18 |
Asim Ullah Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hi Chris
Just tried it with Eclipse3.3M2 and encountered the same redraw glitches.
This was using jdk1.5.0_08.
Playing around, I commented out the line "editor.grabHorizontal = true;"
and redraw works without a problem, but the editor functionality seems
to be disabled.
(Are there any snippets that include GridEditor ?)
---------------
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.nebula.widgets.grid.Grid;
import org.eclipse.swt.nebula.widgets.grid.GridColumn;
import org.eclipse.swt.nebula.widgets.grid.GridEditor;
import org.eclipse.swt.nebula.widgets.grid.GridItem;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
public class GridTest
{
public static void main(String[] args)
{
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout(new FillLayout());
Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL |
SWT.H_SCROLL);
grid.setHeaderVisible(true);
GridColumn column = new GridColumn(grid,SWT.NONE);
column.setText("Name");
column.setWidth(300);
GridItem item1 = new GridItem(grid,SWT.NONE);
Text text = new Text(grid, SWT.NONE);
text.setText("my Item");
item1.setText(text.getText());
GridEditor editor = new GridEditor(grid);
editor.setEditor(text, item1, 0);
//editor.grabHorizontal = true;
shell.setSize(250,250);
shell.open ();
while (!shell.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
"Chris Gross" <chris.gross@us.ibm.com> wrote in message
news:ehtdf0$8cl$1@utils.eclipse.org...
> Hi Asim,
>
> What you're seeing is a result of a issue in SWT thats since been fixed.
> See:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
>
> I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
> and I need to make some follow up changes in GridEditor.
>
> Are you running 3.3?
|
|
|
Re: Resizing GridEditor redraw issues [message #567888 is a reply to message #16142] |
Tue, 31 October 2006 21:08 |
Chris Gross Messages: 471 Registered: July 2009 |
Senior Member |
|
|
3.3 M2 was released on Sept 22. The bug was fixed on Oct 10.....
Asim wrote:
> Hi Chris
>
> Just tried it with Eclipse3.3M2 and encountered the same redraw glitches.
> This was using jdk1.5.0_08.
>
> Playing around, I commented out the line "editor.grabHorizontal = true;"
> and redraw works without a problem, but the editor functionality seems
> to be disabled.
>
> (Are there any snippets that include GridEditor ?)
>
> ---------------
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.FillLayout;
> import org.eclipse.swt.nebula.widgets.grid.Grid;
> import org.eclipse.swt.nebula.widgets.grid.GridColumn;
> import org.eclipse.swt.nebula.widgets.grid.GridEditor;
> import org.eclipse.swt.nebula.widgets.grid.GridItem;
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.widgets.Text;
>
> public class GridTest
> {
> public static void main(String[] args)
> {
> Display display = new Display ();
> Shell shell = new Shell (display);
> shell.setLayout(new FillLayout());
> Grid grid = new Grid(shell,SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);
> grid.setHeaderVisible(true);
> GridColumn column = new GridColumn(grid,SWT.NONE);
> column.setText("Name");
> column.setWidth(300);
> GridItem item1 = new GridItem(grid,SWT.NONE);
>
> Text text = new Text(grid, SWT.NONE);
> text.setText("my Item");
> item1.setText(text.getText());
> GridEditor editor = new GridEditor(grid);
> editor.setEditor(text, item1, 0);
> //editor.grabHorizontal = true;
>
> shell.setSize(250,250);
> shell.open ();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch ()) display.sleep ();
> }
> display.dispose ();
> }
> }
>
> "Chris Gross" <chris.gross@us.ibm.com> wrote in message
> news:ehtdf0$8cl$1@utils.eclipse.org...
>> Hi Asim,
>>
>> What you're seeing is a result of a issue in SWT thats since been fixed.
>> See:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105764
>>
>> I'm assuming you're running Eclipse 3.2. The bug has been fixed in 3.3
>> and I need to make some follow up changes in GridEditor.
>>
>> Are you running 3.3?
>
>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 17:52:41 GMT 2024
Powered by FUDForum. Page generated in 0.03387 seconds
|