Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Focus rectangle always visible in Opera
Focus rectangle always visible in Opera [message #120707] Fri, 06 February 2009 11:37 Go to next message
Enrico Zanaga is currently offline Enrico ZanagaFriend
Messages: 50
Registered: July 2009
Member
Hi,

I need an hint on a visualization problem with Opera browser.
When selecting an item in a Table and showing a new Shell, the Shell
have a focus rectangle in the middle.

How can I remove the focus rectangle from list items, also with theming?

Thanks
Enrico


The snippet to run only in Opera:

public class RapTest implements IEntryPoint {

private Display d;
private Shell s;
private Table t;
private TableColumn c1;
private TableColumn c2;
private TableColumn c3;
private TableItem i1;
private TableItem i2;
private TableItem i3;
private TableEditor e1;

@Override
public int createUI() {
d = new Display();
s = new Shell(d);
s.setBounds(50, 50, 800, 600);
s.setLayout(new FillLayout());

t = new Table(s, SWT.BORDER | SWT.SINGLE);
t.setBounds(20, 20, 500, 300);
t.setHeaderVisible(true);

c1 = new TableColumn(t, SWT.LEFT, 0);
c1.setText("Uno");
c1.setWidth(200);
c2 = new TableColumn(t, SWT.CENTER, 1);
c2.setText("Due");
c2.setWidth(200);
c3 = new TableColumn(t, SWT.RIGHT, 2);
c3.setText("Tre");
c3.setWidth(200);

i1 = new TableItem(t, SWT.NONE);
i1.setText(new String[] { "A", "B", "C" });
i2 = new TableItem(t, SWT.NONE);
i2.setText(new String[] { "D", "E", "F" });
i3 = new TableItem(t, SWT.NONE);
i3.setText(new String[] { "G", "H", "I" });

t.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetDefaultSelected(SelectionEvent e) {
Shell s1 = new Shell(s);
s1.setBounds(150, 50, 300, 200);
s1.open();
}
});

s.open();

while( !s.isDisposed() )
if( !d.readAndDispatch() )
d.sleep();
d.dispose();

return 0;
}

}
Re: Focus rectangle always visible in Opera [message #121053 is a reply to message #120707] Sun, 08 February 2009 18:15 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Enrico,

Opera is not officially supported by RAP. Its market share is just
too small to justify the effort.
RAP reuses qooxdoo Window widgets to represent a Shell. Did you try
to open a Window in one of the standalone qooxdoo demos [1] to see
if the focus rectangle is visible there too?

Regards,
Rüdiger

[1] (offline)
http://qooxdoo.org, follow the link to legacy (0.7.x) demos

Enrico Zanaga wrote:
> Hi,
>
> I need an hint on a visualization problem with Opera browser.
> When selecting an item in a Table and showing a new Shell, the Shell
> have a focus rectangle in the middle.
>
> How can I remove the focus rectangle from list items, also with theming?
>
> Thanks
> Enrico
>
>
> The snippet to run only in Opera:
>
> public class RapTest implements IEntryPoint {
>
> private Display d;
> private Shell s;
> private Table t;
> private TableColumn c1;
> private TableColumn c2;
> private TableColumn c3;
> private TableItem i1;
> private TableItem i2;
> private TableItem i3;
> private TableEditor e1;
>
> @Override
> public int createUI() {
> d = new Display();
> s = new Shell(d);
> s.setBounds(50, 50, 800, 600);
> s.setLayout(new FillLayout());
>
> t = new Table(s, SWT.BORDER | SWT.SINGLE);
> t.setBounds(20, 20, 500, 300);
> t.setHeaderVisible(true);
>
> c1 = new TableColumn(t, SWT.LEFT, 0);
> c1.setText("Uno");
> c1.setWidth(200);
> c2 = new TableColumn(t, SWT.CENTER, 1);
> c2.setText("Due");
> c2.setWidth(200);
> c3 = new TableColumn(t, SWT.RIGHT, 2);
> c3.setText("Tre");
> c3.setWidth(200);
>
> i1 = new TableItem(t, SWT.NONE);
> i1.setText(new String[] { "A", "B", "C" });
> i2 = new TableItem(t, SWT.NONE);
> i2.setText(new String[] { "D", "E", "F" });
> i3 = new TableItem(t, SWT.NONE);
> i3.setText(new String[] { "G", "H", "I" });
>
> t.addSelectionListener(new SelectionAdapter() {
> @Override
> public void widgetDefaultSelected(SelectionEvent e) {
> Shell s1 = new Shell(s);
> s1.setBounds(150, 50, 300, 200);
> s1.open();
> }
> });
>
> s.open();
>
> while( !s.isDisposed() )
> if( !d.readAndDispatch() )
> d.sleep();
> d.dispose();
>
> return 0;
> }
>
> }
Previous Topic:scrollbars on TableViewer whether specified or not
Next Topic:TextSizeDeterminationHandler sets and resets the size of a widget
Goto Forum:
  


Current Time: Sun Feb 05 08:25:17 GMT 2023

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

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

Back to the top