Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Recent CEF4Delphi updates

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

Recent CEF4Delphi updates

Post by salvadordf »

Hi,

CEF4Delphi has been updated recently to add touch support in the OSR demos.

I don't have a touch screen so I had to use the "Windows Simulator" in Visual Studio. The simulator is not perfect and we should always test this on the real hardware but the demos seem to work fine when you simulate screen touches.

I also added a couple of functions to uCEFMiscFunctions called : HasTouchOrPen and GetDigitizerStatus. They might be helpful if your application needs to read the touch or pen status.

TBufferPanel and TFMXBufferPanel have a new OnWrongSize event used to force another resize when the bitmap has a different size as the control.

TBufferPanel also have these new events used to handle touches : OnCustomTouch, OnPointerDown, OnPointerUp and OnPointerUpdate. See the OSR demos to know how they should be used.

TFMXBufferPanel now clips the buffer bitmap when it draws to the canvas to avoid drawing over other controls when the bitmap size is larger than the TFMXBufferPanel.

The Lazarus demos don't have touch support yet because I still need to declare the Windows API functions that handle touches.
Post Reply