No blinking cursor in offscreen render

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

No blinking cursor in offscreen render

Postby zlxwd » Wed Aug 06, 2014 6:18 am

I create a off screen CefBrowser with SetAsOffScreen(), and copy the real time image to a D3D texture in CefRenderHandler::OnPaint(). The texture will be used in part of the D3D based window, and the related keyboard/mouse event will be passed to the offscreen CefBrowser by Send***Event() function of its host.

Everything works fine but no blinking cursor in textbox (while keyboard input to the textbox works and the textbox is highlighted).

I try to set focus (broswer->GetHost()->SendFocusEvent(true)) after CefBrowser is created, and implement CefFocusHandler::OnTakeFocus() to set focus. But it still not works.

Is there anyway I can do to get the blinking cursor?
zlxwd
Newbie
 
Posts: 4
Joined: Thu Jul 31, 2014 3:17 am

Re: No blinking cursor in offscreen render

Postby magreenblatt » Wed Aug 06, 2014 8:24 am

What CEF version and OS?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: No blinking cursor in offscreen render

Postby zlxwd » Thu Aug 07, 2014 3:55 am

magreenblatt wrote:What CEF version and OS?

cef_binary_3.1750.1738_windows32.7z
windows 7
zlxwd
Newbie
 
Posts: 4
Joined: Thu Jul 31, 2014 3:17 am

Re: No blinking cursor in offscreen render

Postby dmKO » Sat Mar 26, 2016 3:27 pm

I am currently also struggling with this. Anybody out there who can help?
If I'll find a solution, I will update this post.
Working on EU project MAMEM, developing GazeTheWeb - a gaze controlled web browser, based on (you'll guess it) CEF3. ;)
dmKO
Newbie
 
Posts: 5
Joined: Sat Mar 12, 2016 1:32 pm

Re: No blinking cursor in offscreen render

Postby magreenblatt » Tue Mar 29, 2016 9:26 am

Works for me in cefclient with `--off-screen-rendering-enabled` at current master. Are you giving focus to the browser?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 83 guests