Page 1 of 1

Re: How To Set Proxy

Posted: Tue Jun 20, 2017 6:37 am
by salvadordf
Hi,

I checked the MiniBrowser and it seems to work. This is what I did : Note : Not all the proxy servers are reliable. Some have a reduced uptime or don't hide your IP.

This way you don't have to restart your app to set a new proxy server.

About the second approach, you don't need to rebuild your application. Just store the configuration in the registry or in a INI file and read it before calling GlobalCEFApp.StartMainProcess.

Re: How To Set Proxy

Posted: Tue Jun 20, 2017 12:10 pm
by salvadordf
linglung wrote: Tue Jun 20, 2017 10:57 am Another bit question, the proxy setting preferences menu - it doesn't save proxy configuration after restarting application, doesn't it?
If so, is it possible to make it auto save?
The MiniBrowser doesn't store any settings but you can add some code to store it using a registry entry, an INI file, a database or any other method.
linglung wrote: Tue Jun 20, 2017 10:57 am btw, I'm glad to meet you again here, Salvadordf.
i'm really so enthusiast with this chromium embedded. More better and perfect.
I'm glad you like it! :D
linglung wrote: Tue Jun 20, 2017 10:57 am Also i have another question related to CEF4 i.e: an event handler to detect mouse leaving / mouse out of CefWindowParent window. Maybe i should open new question in new thread later :D
Please, add a new thread in the CEF4Delphi/Suggestions section.

Re: How To Set Proxy

Posted: Tue Jun 20, 2017 6:57 pm
by salvadordf
Use a separate registry subkey to store the settings of your applications, preferably in HKEY_CURRENT_USER\Software\ApplicationName
Replace "ApplicationName" by the name of your application.

Read this :
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
http://docwiki.embarcadero.com/Librarie ... .TRegistry
http://docwiki.embarcadero.com/RADStudi ... _TRegistry
https://stackoverflow.com/questions/468 ... n-registry