Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Incorrect Cursor in SynEdit links (using Ubuntu)

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I just noticed that in SynEdit (Lazarus IDE Editor window), if I do the hyperlink thing with the Control+<mouse hover>, it doesn't show the correct cursor (pointer) compared to when I use a web browser like Firefox.

In Firefox if I move over a link I get the pointing hand cursor (hand with index finger out). But in Lazarus I don't see that, I see the hand cursor with all fingers out (I think that is equivalent to the "grap" cursor).

Now I searched the SynEdit code and found that it does indeed use the crHandPoint cursor. So I created a new project with one form. Dropped a button on it, and started changing the Cursor property for that button. And indeed if I set Cursor = crHandPoint, I get the "grap" cursor instead of the index finger out (pointing hand).

Anybody know why this is? Why is Firefox using the correct cursor, but Lazarus doesn't?
I'm using latest trunk Lazarus with GTK2 widgetset. Ubuntu is 8.04.2 and 9.04 and both with the standard Gnome desktop and theme.

PS:
I tried to take screenshots of the cursor, but with 8.04.2 I don't have the option to include the cursor in screenshots.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Anybody know why this is? Why is Firefox using the correct cursor, but Lazarus doesn't? I'm using latest trunk Lazarus with GTK2 widgetset. Ubuntu is 8.04.2 and 9.04 and both with the standard Gnome desktop and theme.

Probably there is no standard hand point cursor available on gtk2 and lazarus uses its own. Look at lcl/images/cursors for builtin into lcl cursors images.

Best regards,
Paul Ishenin.

Reply by email

Graeme Geldenhuys
to Paul Ishenin

2009/11/7 Paul Ishenin :

Probably there is no standard hand point cursor available on gtk2 and lazarus uses its own. Look at lcl/images/cursors for builtin into lcl cursors images.

I double checked something else and clearly this is a Lazarus only issue. Because fpGUI Toolkit talks directly to XLib. In fpGUI I can ask for a hand point cursor and I get the exact same one as used in Firefox. I also tried various other Gnome applications like the Gnome help viewer, about box links etc.. All use the correct hand cursor, except for Lazarus.

The problem is also not only in the SynEdit component. If I go to the Lazarus About dialog, the links in there use the wrong mouse cursor as well.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email