Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Hyperlink's mouse cursor
Hyperlink's mouse cursor [message #525663] Wed, 07 April 2010 12:25 Go to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
Hi all,

I have a form with a message text and a HyperlinkListener on the message.
The rendering is ok,
but RAP shows the default text cursor instead of the hand cursor on
hovering.

Looking into AbstractHyperLink.java, I see that the code is commented out:

// RAP [if] Cursor is managed on the client side
// setCursor(FormsResources.getHandCursor());

I can also see, that a cursor is set in Hyperlink.appearance.js to something
called "default". But it doesn't work for me.

Is there a trick to get the correct cursor?

Regards, Niels (using the CVS Head version)
Re: Hyperlink's mouse cursor [message #525675 is a reply to message #525663] Wed, 07 April 2010 12:51 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Niels,
I've just checked the Hyperlink widget with CVS HEAD (Windows, FF 3.6.3,
IE8) and the cursor is changed to hand cursor when you hover over the
hyperlink. You mentioned, that in the Hyperlink.appearance.js the cursor
is set to "default", but actually we have the following code there:
.............
cursor : states.disabled ? "default" : "pointer"
.............
The "default" cursor is only set for disabled hyperlinks, otherwise it
is "pointer".

Best,
Ivan

On 04/07/2010 3:25 PM, Niels Lippke wrote:
> Hi all,
>
> I have a form with a message text and a HyperlinkListener on the
> message. The rendering is ok,
> but RAP shows the default text cursor instead of the hand cursor on
> hovering.
>
> Looking into AbstractHyperLink.java, I see that the code is commented
> out:
>
> // RAP [if] Cursor is managed on the client side
> // setCursor(FormsResources.getHandCursor());
>
> I can also see, that a cursor is set in Hyperlink.appearance.js to
> something called "default". But it doesn't work for me.
>
> Is there a trick to get the correct cursor?
>
> Regards, Niels (using the CVS Head version)
>
>
Re: Hyperlink's mouse cursor [message #525705 is a reply to message #525675] Wed, 07 April 2010 13:54 Go to previous messageGo to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_0012_01CAD66A.95EF8420
Content-Type: text/plain;
format=flowed;
charset="iso-8859-1";
reply-type=response
Content-Transfer-Encoding: 7bit

Hi Ivan,

thanks for your answer. I do have the same code as mentioned below, but *I
don't know* it doesn't work (see attached screenshot)
I used the following snippet for my case:

public void createPartControl(Composite parent) {

FormColors colors = new FormColors(parent.getDisplay());
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");

form.setMessage("Click me", IMessageProvider.ERROR);
form.addMessageHyperlinkListener(new HyperlinkAdapter() {
public void linkActivated(HyperlinkEvent e) {
System.out.println("Clicked");
}});
}

Another issue about the form header is the layout. As you can see, part of
the message is clipped. And image, title, and message are somewhat
misaligned.

Do you have a clue?

Thanks,
Niels


"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:hphv4r$bvv$1@build.eclipse.org...
> Hi Niels,
> I've just checked the Hyperlink widget with CVS HEAD (Windows, FF 3.6.3,
> IE8) and the cursor is changed to hand cursor when you hover over the
> hyperlink. You mentioned, that in the Hyperlink.appearance.js the cursor
> is set to "default", but actually we have the following code there:
> ............
> cursor : states.disabled ? "default" : "pointer"
> ............
> The "default" cursor is only set for disabled hyperlinks, otherwise it is
> "pointer".
>
> Best,
> Ivan
>
> On 04/07/2010 3:25 PM, Niels Lippke wrote:
>> Hi all,
>>
>> I have a form with a message text and a HyperlinkListener on the message.
>> The rendering is ok,
>> but RAP shows the default text cursor instead of the hand cursor on
>> hovering.
>>
>> Looking into AbstractHyperLink.java, I see that the code is commented
>> out:
>>
>> // RAP [if] Cursor is managed on the client side
>> // setCursor(FormsResources.getHandCursor());
>>
>> I can also see, that a cursor is set in Hyperlink.appearance.js to
>> something called "default". But it doesn't work for me.
>>
>> Is there a trick to get the correct cursor?
>>
>> Regards, Niels (using the CVS Head version)
>>
>>

------=_NextPart_000_0012_01CAD66A.95EF8420
Content-Type: image/png;
name="cursor.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="cursor.png"

iVBORw0KGgoAAAANSUhEUgAAAR4AAABWCAIAAACW1240AAAACXBIWXMAAA7E AAAOxAGVKw4bAAAK
rklEQVR4nO3dX0xb1x0H8O/xH/wHooqF/AHqhEUO0GYdxUVrZSoW+mcpLOma qUqnqFPDQ01aS4G9
rCttU7Vpo3YPq6HyUtC6kIdNajQpVcawulaDpsKiEnOStmsheAmpR+Ok0JYk GDsEnz1c+2KMfbkQ
n/Cnv48s5fr63HvOA9+c65/tc1k4zEEIyTTNYg+AkJWJokWIEBQtQoSgaBEi BEWLECEoWoQIQdEi
RAiKFiFCULQIEYKiRYgQOumf3t4PF3cchKwwOnnrN0f1iziOzHpj1+Q99/x0 sUdBvr96ez+kC0JC
hKBoESIERYsQIShahAihm7sJISvI3saXFF59y/Vipo5Sita1kV5odJxpoc2C JgtaPTRZXGdg2ixo
9JzpoNEaJ5nCGTLils+fkzbGbn9VeSchahw+lDo/dU8p5qfldyn37933Wsr9 StGK5t/9q1/clqXV
GPXMrNdmGzTZek1OljbboDXrmVHPdr7Uo3B4BnV1dQGorq6WgnTL58/Je27O AAhJF6F0lKKlufDx
0bY+MB00eq41QKuH1gBtFtfqGdNzrR5MO/sol9teNf1sov3gyZZh5THkudyW s3M3Q1dXl5QlKVeE
LIzy7JROJmet5382+OPHDik0+OSdp37v+3XSzkanV31a1Bi7/dXq6mopTomh kicxQtRL924q4+Yu
Y+Rl3XgveS53cRWA02dsbSMASh8u/+s2EzC63zn6gLu4Cqhqsle/d2rn8VDK 4xPTJaFckSVOKVqR
qTmCN2cDyXZHMQ57bX3mfS+U7CscaRnO27sttN95sgMA0OFEBqc4QpYIpc+1 wteypBYaBi2gZdAy
aABNfFtqMJe8B8pQVWf3ue/cs960KR9A6Gxw9cuOPPWjlOsWsq6uLrlISMgS pBSt0DUj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Oqx+Vm+EFPjsD 1MDfHOsrVlzxgNXC
2whPQ+rZlSzI4i2Wtt6ytyLQ2Af0Ddj6EvbHLvAWx8b1ZiAk3VyvZXaFMD7m GbdWmX9ZMgXPuwAA
O47EY2NtgDWhwdEn4AVgx2Cr0nliRZHNsANewPE8rACs+BEgz1KDn8c2atmM Y8/4UWMFyZDF/Clk
VZ3dN/O2q9sd9sX47CtBWbGrQun1qjq51LEovPiHf/F6J/MRDvNwmHd3d5c/ 3VP+dA8nGeey807O
OecOcIDbXbH9iU8HXRwzXx108U7OeWdsv2uQu+yx7c5YEwDxPga5HRzgjs5U T9P0FX+RZJCUo+7u
bvoBvzBy/W2O4gQAwNoAqUTvbYwdtbkxuU3DEUiLRNbW39DA5L5qGRUJxaFo 3QQOVeWB1vSfgMVY
ccQFAGgDu7F0tXK4aC1XsVg4zAH09n4orZNOq+cuI/RFpyVIWj2X1nwnRJSV eaeSJYGxudvcIM4z
3AvNgZlD0RJG2J/p9A9JADlYdGW41FC0lp/EFFGilix6r0WIEBQtQoSgaBEi BEWLECEoWoQIQdEi
RAiKFiFCULQIEYKiRYgQFC1ChKBoESIERYsQIShahAhB0SJECIoWIUJQtAgR gqJFiBAULUKE+D8v
X7m6Ul+o1wAAAABJRU5ErkJggg==

------=_NextPart_000_0012_01CAD66A.95EF8420--
Re: Hyperlink's mouse cursor [message #525715 is a reply to message #525705] Wed, 07 April 2010 14:36 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Niels,

your snippet works for me perfectly - hand cursor with no clipping with
CVS HEAD. If you run against the CVS HEAD, please update the RAP
bundles. There was a problem (bug 307581) with processing the
*.appearance.js files from the Forms bundle, but it has been fixed
previous week.

HTH,
Ivan

On 04/07/2010 4:54 PM, Niels Lippke wrote:
> Hi Ivan,
>
> thanks for your answer. I do have the same code as mentioned below,
> but *I don't know* it doesn't work (see attached screenshot)
> I used the following snippet for my case:
>
> public void createPartControl(Composite parent) {
>
> FormColors colors = new FormColors(parent.getDisplay());
> 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");
>
> form.setMessage("Click me", IMessageProvider.ERROR);
> form.addMessageHyperlinkListener(new HyperlinkAdapter() {
> public void linkActivated(HyperlinkEvent e) {
> System.out.println("Clicked");
> }});
> }
>
> Another issue about the form header is the layout. As you can see,
> part of the message is clipped. And image, title, and message are
> somewhat misaligned.
>
> Do you have a clue?
>
> Thanks,
> Niels
>
>
> "Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
> news:hphv4r$bvv$1@build.eclipse.org...
>> Hi Niels,
>> I've just checked the Hyperlink widget with CVS HEAD (Windows, FF
>> 3.6.3, IE8) and the cursor is changed to hand cursor when you hover
>> over the hyperlink. You mentioned, that in the
>> Hyperlink.appearance.js the cursor is set to "default", but actually
>> we have the following code there:
>> ............
>> cursor : states.disabled ? "default" : "pointer"
>> ............
>> The "default" cursor is only set for disabled hyperlinks, otherwise
>> it is "pointer".
>>
>> Best,
>> Ivan
>>
>> On 04/07/2010 3:25 PM, Niels Lippke wrote:
>>> Hi all,
>>>
>>> I have a form with a message text and a HyperlinkListener on the
>>> message. The rendering is ok,
>>> but RAP shows the default text cursor instead of the hand cursor on
>>> hovering.
>>>
>>> Looking into AbstractHyperLink.java, I see that the code is
>>> commented out:
>>>
>>> // RAP [if] Cursor is managed on the client side
>>> // setCursor(FormsResources.getHandCursor());
>>>
>>> I can also see, that a cursor is set in Hyperlink.appearance.js to
>>> something called "default". But it doesn't work for me.
>>>
>>> Is there a trick to get the correct cursor?
>>>
>>> Regards, Niels (using the CVS Head version)
>>>
>>>
Re: Hyperlink's mouse cursor [message #525882 is a reply to message #525715] Thu, 08 April 2010 07:32 Go to previous message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
Thanks a lot Ivan,

Forcing an update of the RAP bundles did it!


"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:hpi59g$gpm$1@build.eclipse.org...
> Hi Niels,
>
> your snippet works for me perfectly - hand cursor with no clipping with
> CVS HEAD. If you run against the CVS HEAD, please update the RAP bundles.
> There was a problem (bug 307581) with processing the *.appearance.js files
> from the Forms bundle, but it has been fixed previous week.
>
> HTH,
> Ivan
>
> On 04/07/2010 4:54 PM, Niels Lippke wrote:
>> Hi Ivan,
>>
>> thanks for your answer. I do have the same code as mentioned below, but
>> *I don't know* it doesn't work (see attached screenshot)
>> I used the following snippet for my case:
>>
>> public void createPartControl(Composite parent) {
>>
>> FormColors colors = new FormColors(parent.getDisplay());
>> 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");
>>
>> form.setMessage("Click me", IMessageProvider.ERROR);
>> form.addMessageHyperlinkListener(new HyperlinkAdapter() {
>> public void linkActivated(HyperlinkEvent e) {
>> System.out.println("Clicked");
>> }});
>> }
>>
>> Another issue about the form header is the layout. As you can see, part
>> of the message is clipped. And image, title, and message are somewhat
>> misaligned.
>>
>> Do you have a clue?
>>
>> Thanks,
>> Niels
>>
>>
>> "Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
>> news:hphv4r$bvv$1@build.eclipse.org...
>>> Hi Niels,
>>> I've just checked the Hyperlink widget with CVS HEAD (Windows, FF 3.6.3,
>>> IE8) and the cursor is changed to hand cursor when you hover over the
>>> hyperlink. You mentioned, that in the Hyperlink.appearance.js the cursor
>>> is set to "default", but actually we have the following code there:
>>> ............
>>> cursor : states.disabled ? "default" : "pointer"
>>> ............
>>> The "default" cursor is only set for disabled hyperlinks, otherwise it
>>> is "pointer".
>>>
>>> Best,
>>> Ivan
>>>
>>> On 04/07/2010 3:25 PM, Niels Lippke wrote:
>>>> Hi all,
>>>>
>>>> I have a form with a message text and a HyperlinkListener on the
>>>> message. The rendering is ok,
>>>> but RAP shows the default text cursor instead of the hand cursor on
>>>> hovering.
>>>>
>>>> Looking into AbstractHyperLink.java, I see that the code is commented
>>>> out:
>>>>
>>>> // RAP [if] Cursor is managed on the client side
>>>> // setCursor(FormsResources.getHandCursor());
>>>>
>>>> I can also see, that a cursor is set in Hyperlink.appearance.js to
>>>> something called "default". But it doesn't work for me.
>>>>
>>>> Is there a trick to get the correct cursor?
>>>>
>>>> Regards, Niels (using the CVS Head version)
>>>>
>>>>
Previous Topic:I need advice - about Perspective and folder size or ratio
Next Topic:[ANN] RAP Application Wins U.S. Government Award
Goto Forum:
  


Current Time: Sat Oct 05 04:06:55 GMT 2024

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

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

Back to the top