Re: Find and zoom
Posted: Tue Feb 12, 2019 11:29 am
Hi,
To catch those key presses you will need to use these events :
https://magpcss.org/ceforum/apidocs3/pr ... entHandle)
https://magpcss.org/ceforum/apidocs3/pr ... dle,bool*)
Take a look at the MiniBrowser demo. It uses the F12 key to show the DevTools :
https://github.com/salvadordf/CEF4Delph ... r.pas#L725
https://github.com/salvadordf/CEF4Delph ... r.pas#L568
To use the ZOOM you need to call these procedures :
https://magpcss.org/ceforum/apidocs3/pr ... bool,bool)
https://magpcss.org/ceforum/apidocs3/pr ... ding(bool)
To catch those key presses you will need to use these events :
- TChromium.OnPreKeyEvent
- TChromium.OnKeyEvent
https://magpcss.org/ceforum/apidocs3/pr ... entHandle)
https://magpcss.org/ceforum/apidocs3/pr ... dle,bool*)
Take a look at the MiniBrowser demo. It uses the F12 key to show the DevTools :
https://github.com/salvadordf/CEF4Delph ... r.pas#L725
https://github.com/salvadordf/CEF4Delph ... r.pas#L568
To use the ZOOM you need to call these procedures :
- TChromium.IncZoomStep
- TChromium.DecZoomStep
- TChromium.ResetZoomStep
- TChromium.Find
- TChromium.StopFinding
https://magpcss.org/ceforum/apidocs3/pr ... bool,bool)
https://magpcss.org/ceforum/apidocs3/pr ... ding(bool)