Sign in Join

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

Mailing lists / lazarus / 2009-08

intended behaviour of crDefault cursor on GTK?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich
to Martin: Before submitting a bug, I just want to check my understanding is correct. crDefault (at…
crDefault (at least on Windows) is supposed to show the Systems default for wherever the cursor is.

IMO crDefault means that the actual shape of the cursor is not determined by the control under the cursor, but instead the control's parent cursor is used (recursively). When even the form and Screen uses crDefault, the current system cursor is used (arrow, hourglass...).

DoDi

Reply by email

Martin

Before submitting a bug, I just want to check my understanding is correct.

crDefault (at least on Windows) is supposed to show the Systems default for wherever the cursor is.
That means over an Edit field this is a IBeam cursor and not an arrow.

I don't know what the GTK2 default for edit controls is, but I checked with fireox on GTK, and firefox at least does show IBeam for edit fields?

If IBeam is the correct GTK2 behaviour then there is a bug (because in lazarus, this does not seem to happen)

Martin

Reply by email

Martin
to Hans-Peter Diettrich: IMO crDefault means that the actual shape of the cursor is not determined by the control…
Hans-Peter Diettrich wrote 9 lines
Martin schrieb: > crDefault (at least on Windows) is supposed to show the Systems > default for wherever the cursor is. IMO crDefault means that the actual shape of the cursor is not determined by the control under the cursor, but instead the control's parent cursor is used (recursively). When even the form and Screen uses crDefault, the current system cursor is used (arrow, hourglass...).

I used to thing that do. But I am sure it isn't:
- Delphi does not fall back on the parent neither (ok no proof...)
- It would not make sense: put a TEdit (crDefault) on a TPanel => then the edit would have to follow the panel, but it wishes to show the IBeam still.

And about screen cursor. It is not a fallback for default. If screen.cursor is set to none crDefault, it overrides all other cursors (at least thats the windows implementation of the LCL.

Reply by email