custom cursor in OSR

Post Reply
yesilcimenahmet
Posts: 10
Joined: Wed Jul 08, 2020 1:25 pm

custom cursor in OSR

Post by yesilcimenahmet » Fri Jul 31, 2020 11:21 pm

Hi,

How can I display my custom cursor in OSR? I have different cursor in my project but I can not display on OSR. I am aware that it shows standard system cursor.

Thanks.

User avatar
salvadordf
Posts: 2504
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: custom cursor in OSR

Post by salvadordf » Sat Aug 01, 2020 7:40 am

Hi,

The OSR demos use the TChromium.OnCursorChange event to set the panel cursor :
https://github.com/salvadordf/CEF4Delphi/blob/8761ec8749828ab3e27e9d9c494b8bbd6a03e104/demos/Delphi_VCL/SimpleOSRBrowser/uSimpleOSRBrowser.pas#L413

If you need to show a custom cursor you will have to modify the code in that event.

yesilcimenahmet
Posts: 10
Joined: Wed Jul 08, 2020 1:25 pm

Re: custom cursor in OSR

Post by yesilcimenahmet » Sat Aug 01, 2020 10:03 pm

I'm already using the OnCursorChange event. But the procedures here are valid for classic cursors. I need to show any cursor given by CSS, for example. This is provided without any problems in the browser. But I cannot show the cursors I have defined in OSR.

yesilcimenahmet
Posts: 10
Joined: Wed Jul 08, 2020 1:25 pm

Re: custom cursor in OSR

Post by yesilcimenahmet » Sat Aug 01, 2020 10:24 pm

thanks, I did.

Post Reply