Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with popup menu of table
Problem with popup menu of table [message #117743] |
Wed, 07 January 2009 03:18  |
Eclipse User |
|
|
|
Hi all,
In the latest version of Target platform M3
(rap-1.2.0-M3-target-3.5-20081118-1809), adding popup menu to Table by
using tableviewer.getTable().setMenu(menu) doesn't take effect. No popup
menu at all.
But it works in old version. Please help.
Thanks,
Terry
|
|
| |
Re: Problem with popup menu of table [message #120474 is a reply to message #117871] |
Wed, 04 February 2009 12:52   |
Eclipse User |
|
|
|
Hi,
the table popup menu shows in IE 7, Firefox 3.0.6, and Chrome, but the
menu doesn't show in Opera 9 and Safari 3 (Windows).
Also, in Opera I've enabled the option "Allow script to receive right
clicks" but it has no effect.
Here the snippet:
public class RapTest implements IEntryPoint {
private Display d;
private Shell s;
@Override
public int createUI() {
d = new Display();
s = new Shell(d);
s.setBounds(0, 0, 800, 600);
Table t = new Table(s, SWT.BORDER);
t.setBounds(20, 20, 300, 300);
Menu m = new Menu(t);
MenuItem i1 = new MenuItem(m, SWT.PUSH);
i1.setText("One");
MenuItem i2 = new MenuItem(m, SWT.PUSH);
i2.setText("Two");
MenuItem i3 = new MenuItem(m, SWT.PUSH);
i3.setText("Three");
t.setMenu(m);
s.open();
while( !s.isDisposed() )
if( !d.readAndDispatch() )
d.sleep();
d.dispose();
return 0;
}
}
Thanks
Enrico
Rüdiger Herrmann ha scritto:
> Terry,
>
> I just tried with CVS HEAD and it works. The problem seems to lie in
> your code.
>
> Cheers,
> Rüdiger
>
> Terry Zhang wrote:
>> Hi all,
>>
>> In the latest version of Target platform M3
>> (rap-1.2.0-M3-target-3.5-20081118-1809), adding popup menu to Table by
>> using tableviewer.getTable().setMenu(menu) doesn't take effect. No popup
>> menu at all.
>>
>> But it works in old version. Please help.
>>
>> Thanks,
>> Terry
|
|
|
Re: Problem with popup menu of table [message #121035 is a reply to message #120474] |
Sun, 08 February 2009 12:51  |
Eclipse User |
|
|
|
Enrico,
using the ControlsDemo, the table popup menu shows in Safari on
Windows (3.0.4)
Opera is not officially supported by RAP. Its market share is just
too small to justify the effort.
Cheers,
Rüdiger
Enrico Zanaga wrote:
> Hi,
>
> the table popup menu shows in IE 7, Firefox 3.0.6, and Chrome, but the
> menu doesn't show in Opera 9 and Safari 3 (Windows).
>
> Also, in Opera I've enabled the option "Allow script to receive right
> clicks" but it has no effect.
>
> Here the snippet:
>
> public class RapTest implements IEntryPoint {
>
> private Display d;
> private Shell s;
>
> @Override
> public int createUI() {
> d = new Display();
> s = new Shell(d);
> s.setBounds(0, 0, 800, 600);
>
> Table t = new Table(s, SWT.BORDER);
> t.setBounds(20, 20, 300, 300);
>
> Menu m = new Menu(t);
> MenuItem i1 = new MenuItem(m, SWT.PUSH);
> i1.setText("One");
> MenuItem i2 = new MenuItem(m, SWT.PUSH);
> i2.setText("Two");
> MenuItem i3 = new MenuItem(m, SWT.PUSH);
> i3.setText("Three");
>
> t.setMenu(m);
>
> s.open();
>
> while( !s.isDisposed() )
> if( !d.readAndDispatch() )
> d.sleep();
> d.dispose();
>
> return 0;
> }
>
> }
>
>
> Thanks
> Enrico
>
>
> Rüdiger Herrmann ha scritto:
>> Terry,
>>
>> I just tried with CVS HEAD and it works. The problem seems to lie in
>> your code.
>>
>> Cheers,
>> Rüdiger
>>
>> Terry Zhang wrote:
>>> Hi all,
>>>
>>> In the latest version of Target platform M3
>>> (rap-1.2.0-M3-target-3.5-20081118-1809), adding popup menu to Table by
>>> using tableviewer.getTable().setMenu(menu) doesn't take effect. No popup
>>> menu at all.
>>>
>>> But it works in old version. Please help.
>>>
>>> Thanks,
>>> Terry
|
|
|
Goto Forum:
Current Time: Thu Jul 17 03:11:20 EDT 2025
Powered by FUDForum. Page generated in 0.10633 seconds
|