Sign in Join

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

Mailing lists / lazarus / 2010-01

cursor image

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin
to ik
ik wrote
Is there a cross platform (or a GTK/QT solution if not) how to get from X,Y the mouse cursor handle and from there to translate it to it's original icon ?

How it is to get a cursor from X,Y?

Best regards,
Paul Ishenin.

Reply by email

ik
to Paul Ishenin: How it is to get a cursor from X,Y? Paul Ishenin.

http://ik.homelinux.org/

Paul Ishenin wrote 9 lines
26.01.2010 19:59, ik wrote: > Is there a cross platform (or a GTK/QT solution if not) how to get from > X,Y the mouse cursor handle and from there to translate it to it's original > icon ? > How it is to get a cursor from X,Y?

I'm not sure that I understand your question

Show quoted text 11 lines
Best regards, Paul Ishenin. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100126/010e1f4b/attachment.html>

Reply by email

ik
to Hans-Peter Diettrich: What do you want: - an screenshot of the cursor, - or get the icon associated with the…

http://ik.homelinux.org/

Hans-Peter Diettrich wrote 10 lines
ik schrieb: Is there a cross platform (or a GTK/QT solution if not) how to get from > X,Y the mouse cursor handle and from there to translate it to it's original > icon ? > What do you want: - an screenshot of the cursor,

- or get the icon associated with the current cursor,

- or set the cursor to another (arrow) shape?

I have the Cursor handle from X, I need to find the associate cursor (depend on the window) of an external program running X.

DoDi

Ido

Show quoted text 9 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100127/90f3c1f4/attachment.html>

Reply by email

Paul Ishenin
to ik
ik wrote
I have the Cursor handle from X, I need to find the associate cursor (depend on the window) of an external program running X.

I read few times trying to undersatnd but it sounds too cryptic for me.

What is X? Some application or X server?

"associate cursor (depend on the window) of an external program" - can you explain better what is this?

Anyway, icon extraction from the cursor handle is not implemented in LCL and is not possible on some systems (as I remember).

Best regards,
Paul Ishenin.

Reply by email

ik
to Paul Ishenin

http://ik.homelinux.org/

Paul Ishenin wrote 10 lines
27.01.2010 16:27, ik wrote: > I have the Cursor handle from X, I need to find the associate cursor > (depend on the window) of an external program running X. > I read few times trying to undersatnd but it sounds too cryptic for me. What is X? Some application or X server?

X-Server

"associate cursor (depend on the window) of an external program" - can you explain better what is this?

On X-Server you can have custom made mouse cursors that can be loaded in an on demand situations.
That's what I wish to have, the icon of the mouse cursor itself as loaded into X-Server . So its the associated icon to the specific window.

Show quoted text 15 lines
Anyway, icon extraction from the cursor handle is not implemented in LCL and is not possible on some systems (as I remember). Best regards, Paul Ishenin. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100127/425c14f0/attachment.html>

Reply by email

Hans-Peter Diettrich
to ik
On X-Server you can have custom made mouse cursors that can be loaded in an on demand situations.

This should be common to most platforms.

That's what I wish to have, the icon of the mouse cursor itself as loaded into X-Server . So its the associated icon to the specific window.

You know more about X-Server than I do, so you should try to find an according function, and call it yourself.

Even if the cursor handle may be read-write, the bitmaps most probably are write-only.

DoDi

Reply by email