Caret in input field(s) not shown in OSR

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.

Caret in input field(s) not shown in OSR

Postby shagkur » Mon Jan 22, 2018 9:51 am

Hi,

in our application where we use CEF in OSR mode no caret is shown when an input field is focused.
Since we don't use an underlying view (like OpenGL) but rather "render" the buffer into a video frame for encoding,
i don't know how get the caret shown.
A timing issue due to the frame rate can be excluded because there're no OnPaint events except the ones genereated whenever i type, but
not for a blinking caret.
I also call SendFocusEvent(true) in OnAfterCreated.

Any help on this issue is appreciated.

Regards.
shagkur
Newbie
 
Posts: 3
Joined: Mon Jan 22, 2018 9:43 am

Re: Caret in input field(s) not shown in OSR

Postby Czarek » Wed Jan 24, 2018 3:28 pm

Try calling SendFocusEvent immediately after CreateBrowser and browser->WasResized were called, as in official examples. Otherwise check if you're calling SendFocusEvent(false) somewhere by mistake.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Caret in input field(s) not shown in OSR

Postby shagkur » Thu Jan 25, 2018 10:19 am

Thanks for your answer.

Just for my understanding: It's common sense to call SendFocusEvent when browser->WasResized was called? If i understand your answer correctly.

Regards
shagkur
shagkur
Newbie
 
Posts: 3
Joined: Mon Jan 22, 2018 9:43 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 80 guests

cron