Adding progress Bar

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Adding progress Bar

Postby asarchit65 » Mon Mar 24, 2014 2:02 am

I want to implement progress bar with cefglue. please help
asarchit65
Techie
 
Posts: 11
Joined: Fri Jul 12, 2013 9:13 pm

Re: Adding progress Bar

Postby mistymorning » Tue May 06, 2014 1:33 pm

if you want the progress bar to show the progress of a page loading then you are out of luck because HTTP does not work that way unless you are dealing with chunked data and then it's not going to be that good because it might take 5 seconds to get the first chunk back from the server and then the other 300kb comes in a second later.

if you have a form control progress bar then you need to update the progress bar on the UI Thread and you can do this with Control.begininvoke(new action(UpdateFunction)));

maybe you could do something if the form has sub-frames and then count how many sub-forms have loaded or just fake it using a 5 second timer and then setting 100% from the CefBrowser.LoadEnd event.

Not sure if you are talking about page progress bar or download progress bar ?
Building a web-browser that does not call home
mistymorning
Techie
 
Posts: 15
Joined: Sun May 04, 2014 8:08 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 19 guests