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.

Programatically set zoom

Post Reply
thefunkyjoint
Posts: 461
Joined: Thu Aug 10, 2017 12:40 pm

Programatically set zoom

Post by thefunkyjoint »

Hi,

Is there a way to programatically set to zoom on Cef4Delphi browser ?

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

Re: Programatically set zoom

Post by salvadordf »

Hi,

Yes. There are several procedures and properties to set the zoom in a browser.
  • TChromiumCore.IncZoomStep
  • TChromiumCore.DecZoomStep
  • TChromiumCore.IncZoomPct
  • TChromiumCore.DecZoomPct
  • TChromiumCore.ResetZoomStep
  • TChromiumCore.ResetZoomLevel
  • TChromiumCore.ResetZoomPct
  • TChromiumCore.ReadZoom
  • TChromiumCore.ZoomLevel
  • TChromiumCore.ZoomPct
  • TChromiumCore.ZoomStep
The MiniBrowser demo shows how to use some of them.
thefunkyjoint
Posts: 461
Joined: Thu Aug 10, 2017 12:40 pm

Re: Programatically set zoom

Post by thefunkyjoint »

Thank you ! :D
Post Reply