Setting the view's upper left corner position.

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.

Setting the view's upper left corner position.

Postby nanobill » Tue Aug 23, 2016 7:46 pm

Hi,

I would like to know if it's possible to set the Upper-Left corner position for the view. Reason is, the browser itself is being drawn into a texture, that texture is being drawn to the screen just below the address bar. Both the address bar and the browser are in the same window.

Whenever I send a Mouse Event, it does not record the event correctly. Also, when a Context menu opens whenever I right click at the bottom of the browser, the menu opens at the wrong location (based on the ui size).

I can see that the upper left corner is always at x=0,y=0 even if I set it in GetViewRect.

Thank you very much for your time.
nanobill
Newbie
 
Posts: 9
Joined: Tue Aug 23, 2016 7:39 pm

Re: Setting the view's upper left corner position.

Postby magreenblatt » Wed Aug 24, 2016 2:55 am

It sounds like you're using off-screen rendering. In that case you are sending all coordinates into the browser. Apply the offset in your code before you call the browser methods.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Setting the view's upper left corner position.

Postby nanobill » Wed Aug 24, 2016 3:05 pm

Fixed. Thank you very much.
nanobill
Newbie
 
Posts: 9
Joined: Tue Aug 23, 2016 7:39 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 63 guests