Progress Bar visibility issue

I'm a bit of a newbie when it comes to components, but I'm
hoping there's an easy answer that I'm simply missing.
I have 4 nested files, the first and third of which are files
that contain sections of loadable content (menu pages,
essentially). I've followed some simple tutorials about how to make
the progress bars disappear once a file completely loads and all
seemed to be working fine when I previewed the third file (a
sub-menu) in the chain, but when I previewed the first file (the
main menu), the progress bars that were working as they should the
third file are still visible once its respective files load.
The error only seems to take place in the first file and only
in relaton to the progress bars in the third file, although the
parameters and actionscript for all the progress bars follow the
same formula. Is there a reason why a progress bar that disappears
in one file remains visible in a file further up the chain and if
so, is there any way to correct this?

Do While Me.txtProgress.Width <> FullLength
    Me.txtProgress.Width = Me.txtProgress.Width + 25
    PercentComplete = (Me.txtProgress.Width / FullLength) * 100
    Me.txtStatus.Caption = PercentComplete & " % Complete"
    Call Pause(Timing)
Loop
If Me.txtProgress.Width = FullLength Then
    Me.CmdClose.Enabled = True
End If
    retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
For Each tdf In dbs.TableDefs
    If tdf.Connect <> "" Then
    tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
    tdf.RefreshLink
End If
    Next tdf
Screen.MousePointer = 0
Hi Anuj,
What I see in your code is that you first have your progress bar run from 0 to 100%, and after that step through the TableDefs to connect.
I assume you want to increase the progress bar during the connecting process. So you have to merge the two loops. First you count the total number of TableDefs (your 100%), and then increment Me.txtProgress.Width for each tdf in equal steps.
Instead of building the progress bar on "each" form, you could also make a dedicated progress bar form. At the start of a loop you open the form, and assign the form to an variable of type form (e.g. progr_form):  Set progr_form = Forms("Progress_form").
This form has the control txtProgress to display the progress bar, a (hidden) control with the maximum number of steps, and a (hidden) control with the current number of executed steps. After the update of this latter control (e.g. progr_form!CurrentCount
= x), the width of the progress bars is recalculated. After finishing the loop, the form is closed.
The advantage of a dedicated progress bar form is that you can use the same form for quite different progress displays, under quite different circumstances.
Imb.

Similar Messages

  • Progress bar update issue

    I have a flash program written in Action Script 3.  It worked fine on XP but I recently moved to windows 7 and now I have problems.  It is a simple file upload program.  In Windows 7 the progress moves really fast to 100% like it is reading a buffer and not what is being sent over the internet.  Once it reaches 100%, the program hangs (sometimes hangs the browser) until the file has finished uploading.  The program still works in XP so is this a known issue with Windows 7?  I haven't found any other problems with this online anywhere.
    Thanks

    Thanks for your response.  It isn't Adobe Flash that is the problem, I think that it is the way the flash program is interpreted in IE/Firefox on Windows 7.  The line of code I use to update the progress bar is progressBar.setProgress(event.bytesLoaded, event.bytesTotal); (after I have set a progress handler)  Like I said, the same flash application runs great on Internet Explorer/Firefox on XP but not on Windows 7 and my flash player is up to date.  Also, on Win7 you can't run IE in compatibility mode either...
    Thanks for you time.

  • Gray Boot Screen with progress bar & SMC Issues

    Hi All,
    Over the last few days I've experienced the grey boot screen with progress bar three separate times after the finder froze and I was forced to manually reboot my imac. Previously I have only seen this during a Firmware update.
    I am also concerned about the Finder freezing. It has been happening when I've been trying to access any of my external hard drives at random intervals (connected via usb, and f800). I am concered that my SMC controller might be failing as these drives are testing fine on other computers and in drive test programs. Also, the f800 drives have been self unmounting.
    I had my internal drive replaced by apple a few weeks ago, could they have somehow damaged the smc controller unintentially? Or is this simply a Snow Leopard hiccup? (I'm running 10.6.2). I'm really starting to get annoyed with having to hard reboot or constantly reset my SMC. Any ideas before I take it in to a store?
    Thanks!
    Message was edited by: fkick1

    I have found other users have this same problem when using windows. My setup worked fine until I did a windows update. Now apple partition is inaccessible. Guess the windows update whacked the apple partition. Apple should have a workaround. Bad Windows!

  • Progress bar conditional issue

    hi,
    I'm using the following code to two things. First, progress bar and second, database connection. Both process are working fine but, not simultaneously.
    Code:
    ================
    On Error GoTo Err_cmdDisconnect_Click
        Dim dbs As DAO.Database
        Dim tdf As DAO.TableDef
        Dim strMessage As String, strDatabaseName As String
        Dim retval
        Dim FullLength As Integer
        Dim PercentComplete As Integer
        Dim Timing As String
    Set dbs = CurrentDb()
    strDatabaseName = CurrentProject.Path & "\BE\" & Dbase
    If IsNull(Dbase) Then
        MsgBox ("Please select the database."), , "Error"
        Me.Dbase.SetFocus
    Exit Sub
    End If
        strMessage = "Are you sure to connect " & _
        strDatabaseName & " as the Auto Evolution database?"
    If MsgBox(strMessage, vbYesNo + vbQuestion, "Connection Confirmation") = vbNo Then
    Exit Sub
    End If
    If Dir(strDatabaseName) = "" Then
        MsgBox "The Auto Evolution database you have specified as the " & _
        "source was not found.", vbInformation, "Connection Error"
    Exit Sub
    End If
    DoCmd.Hourglass True
    'Declare timing
    Timing = 0.01
    'Declare the maximum length of the progress bar
    FullLength = 8050
    'Hourglass
    Screen.MousePointer = 11
        'Remove transparancy of progress bar
    If Me.txtProgress.Width <> 0 Then
        Me.txtProgress.BackStyle = 1
    End If
    Do While Me.txtProgress.Width <> FullLength
        Me.txtProgress.Width = Me.txtProgress.Width + 25
        PercentComplete = (Me.txtProgress.Width / FullLength) * 100
        Me.txtStatus.Caption = PercentComplete & " % Complete"
        Call Pause(Timing)
    Loop
    If Me.txtProgress.Width = FullLength Then
        Me.CmdClose.Enabled = True
    End If
        retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
    For Each tdf In dbs.TableDefs
        If tdf.Connect <> "" Then
        tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
        tdf.RefreshLink
    End If
        Next tdf
    Screen.MousePointer = 0
    DoCmd.Hourglass False
    retval = SysCmd(acSysCmdClearStatus)
    MsgBox "Auto Evolution database is now connected with " & _
            "'" & Me.Dbase & "'", vbInformation, "Connection Successful"
    DoCmd.Close acForm, Me.NAME
    Exit_cmdConnect_Click:
        Exit Sub
    Err_cmdConnect_Click:
        DoCmd.Hourglass False
        If Err.Number <> 2467 Then
        MsgBox ("Unable to execute database switch now."), vbCritical, "Error"
        Me.CmdClose.Enabled = True
        Resume Exit_cmdConnect_Click
    End If
    ===============
    Any help will be appreciable.
    Thanks & Regards, Anuj Mehrotra

    Do While Me.txtProgress.Width <> FullLength
        Me.txtProgress.Width = Me.txtProgress.Width + 25
        PercentComplete = (Me.txtProgress.Width / FullLength) * 100
        Me.txtStatus.Caption = PercentComplete & " % Complete"
        Call Pause(Timing)
    Loop
    If Me.txtProgress.Width = FullLength Then
        Me.CmdClose.Enabled = True
    End If
        retval = SysCmd(acSysCmdSetStatus, "Connecting to previous Database")
    For Each tdf In dbs.TableDefs
        If tdf.Connect <> "" Then
        tdf.Connect = ";DATABASE=" & strDatabaseName & (";PWD=zujan")
        tdf.RefreshLink
    End If
        Next tdf
    Screen.MousePointer = 0
    Hi Anuj,
    What I see in your code is that you first have your progress bar run from 0 to 100%, and after that step through the TableDefs to connect.
    I assume you want to increase the progress bar during the connecting process. So you have to merge the two loops. First you count the total number of TableDefs (your 100%), and then increment Me.txtProgress.Width for each tdf in equal steps.
    Instead of building the progress bar on "each" form, you could also make a dedicated progress bar form. At the start of a loop you open the form, and assign the form to an variable of type form (e.g. progr_form):  Set progr_form = Forms("Progress_form").
    This form has the control txtProgress to display the progress bar, a (hidden) control with the maximum number of steps, and a (hidden) control with the current number of executed steps. After the update of this latter control (e.g. progr_form!CurrentCount
    = x), the width of the progress bars is recalculated. After finishing the loop, the form is closed.
    The advantage of a dedicated progress bar form is that you can use the same form for quite different progress displays, under quite different circumstances.
    Imb.

  • Mac boot issue; gray screen, spinning wheel, and progress bar

    Recently I shut down my Mac only to find when I tried turning it back on it was very slow and unresponsive. I proceeded to shut down a couple more times and this resulted in a gray screen upon startup with a spinning wheel, apple logo, and a progress bar. The progress bar did not fill at all at first, and as I left my laptop for about 40 minutes, it still hadn't moved. I proceeded then to boot in recovery and tried to repair my disk. This resulted in another issue, and would not repair, so I decided to just erase my HD, since there was not anything important on it anyways. I really just wanted my laptop to turn on so I could start my paper. Well it wouldn't erase my hard disk and this led to me becoming very impatient and just quitting the process. On the next attempt to boot in recovery, the hard disk doesn't even show up. Only the recovery disk (previously there were two disks as options, as well as the wifi selection). I'm now using safari through the recovery option. I'd like to simply get my computer back. If i can't get anywhere on here, i'm just going to bring it to the apple store and return it, most likely, as i've had nothing but problems with this thing. I've had it since the middle of September, and I can't hardly believe i've already encountered such an issue. Any help is much appreciated. Thanks.

    I'd make a trip to the Apple Store - your hard disk may be dying (the Recovery partition is very small) or there might be something corrupt in your system. They'll be able to evaluate it.
    Clinton

  • The progress bar (in green)which was visisble at the right hand side down in Firefox 3.6.8,is not visible here which seems little unfriendly.

    The progress bar (in green)which was visisble at the right hand side down in Firefox 3.6.8,is not visible here which seems little unfriendly.Or is it available(may be there is some settings i have to apply)?Please tell me if it is available in this version or not,and if yes then how to bring it.Thanks!

    You can add the progress indicator in the Firefox 4 add-ons bar with the [https://addons.mozilla.org/firefox/addon/status-4-evar/ Status-4-Evar] add-on

  • Issues with publishing my iWeb site to .MAC - Progress bar freezes at 100%

    Well, as topic says, i'm having troubles publishing my iWeb site to .MAC now since upgrading to '08. The progress bar reaches full circle, but then nothing. Left it uploading to .Mac for well over 2 hours one time while out of the house...nada. Sometimes i get an error message, sometimes not and have to close iWeb while it's still publishing.
    Any feedback regarding this?
    Thanks in advance.
    /Rich

    Update: After 36 hours, I have successfully managed to upload my entire website via the "Publish All to .Mac" option. I now have blue indicators on the left side of my iWeb program in place of those pesky red ones. How did I do it? Well, I'm not sure. But on my last attempt I looked at the problem from a different perspective, so I took an alternate approach. I had a feeling that I was experiencing a network timeout issue caused by a 3rd party software, so I created a Whitelist entry on my website filtering software that allows unlimited access to "idisk.mac.com";; and "web.mac.com";; domains. I've got two kids at home, so I'm running the free OpenDNS Dashboard service on my network which provides content filtering (blocks adult site, phishing site, etc..). I started using this service two weeks ago. My last website update was a week before that. I figured I had nothing to loose by trying. To my surprise, it worked. Now, it took almost two hours to publish, of which the pie indicator was in the  "filled" position for a nerve racking hour. To reconfirm,  I then made a minor change to one of the pages on my website and re-published. This time using the "Publish to .Mac" option in place of the ALL option and once again it worked. It took less than 5 minutes. Now, I'm not sure if this is a coincidence, maybe Apple fixed the problem, or maybe my website filtering service was causing some type of time out issue all along??  Don't know.. But at least for now, I'm a happy camper since I have my site up.

  • A second non-functional progress bar is always visible on the status bar, how can I get rid of it?

    The second bar is inside of the sizing grip on the right side of the status bar. It does nothing, but take up space. The functional progress bar appears only when it is working inside of the message panel and outside of the authentication panel on the left side of the status bar. I've turned the status bar off and then on again--no luck. I've also tried disabling all add-ons--no luck. I've also changed themes--no luck. Do I need to re-install the browser?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    If you have many extensions then you can first enable half of the extensions to test which half has the problem.
    Continue to divide the bad half that still has the issue until you find which one is causing it.

  • Recently my MacBookPro locked up on startup. Could not get past a certain point of progress bar. I had upgraded to Yosemite few weeks back, with no issues. I ended up doing a Recovery with Time Machine and I got all my apps, photos, documents, etc. back o

    Recently my MacBookPro locked up on startup. Could not get past a certain point of progress bar. I had upgraded to Yosemite few weeks back, with no issues. I ended up doing a Recovery with Time Machine and I got all my apps, photos, documents, etc. back okay --- except I got error messages that my "registration for Photoshop (I use CS4 Extended) and Photo Mechanic are no longer working".  I worked on Photoshop first, and tried (several times) to fix it with their online help suggestions.  Nothing worked.
    Is there a simpler way to "get my licenses/registrations back"???  I am also going to contact Camera Bits about the Photo Mechanic issues.   Thanks

    Same problem and for months now. I haven't been able to find a solution, but I suspect that's because I don't know exactly what's wrong.

  • Progress bar during startup - Odd Issue

    What's the problem:
    Upon startup my iMac (early 2009, Mountain Lion) shows a grey progress bar that takes approx. 20 Minutes to complete and then the machine shuts down.
    What have I done before the issue occured:
    Cleaning up cache files and deleting several programms that I wasn't using any more.
    What's the setup of my machine:
    I have one physical harddrive that contains 3 logical partitions: One is of course the Macintosh HD (HFS+), one for data (HFS+), and one Bootcamp (FAT32) partition.
    What have I tried so far:
    When booting into Single User mode I ran the fsck (and fsck_hfs) command which quits after 3 unsuccessfull attempts. The only error message shown is
    "Incorrect Number Of Thread Records (4, someNumber)". I tried this at least 10 times now and the behaviour is always the same, except from the number shown in the thread records message.
    When booting into the recovery partition disk utility shows me the 3 partitions on my HD but shows the Macintosh HD greyed out. When checking the HD it finished without problems, when just checking the Macintosh HD it aborts with an error. Same applies when I try to fix the partition.
    I tried to reinstall Mac OS but the Macintosh HD is not shown in the target disks for installation. I also tried to repartition the disk without any success.
    What's odd about this issue:
    First of all, I can boot into Windows (BootcamP) without any issues and work there.
    Also, when in singel user mode, I can run the 'du' command which shows me all files on my Macintosh HD so the partition itself still sems to be intact.
    What might be a solution:
    I've have come along some comments that said DiskWarrior could fix more issues then Disk Utility but I not yet there to spend 100+ € for it.
    Any other suggestions from you on how to get Mac OS back to work would be highly appreciated.

    Thanks for your replies and proposed solutions. Unfortunately none of them worked.
    @Alberto: Pressing the "D" button upon startup, does not launch the hardware test. Actually nothing realy happens for approx. 60 seconds before the machine starts the boot volume.
    @Linc: I'm not able to erase the OS X boot volume as disk utility tells me it's missing it's mount point.
    @romainst: As far as I remember I was still under 10.8.2. So far I have tried to repair the OS X partition at least 25 times without any changes or a chance to get this thing mounted.
    I wouldn't mind erasing the Mac OS partition and reinstalling it as it only holds systems files and some applications that I could easily reinstall. Still the machine is preventing me from doing so as it will not let me mount this partition. This is becoming increasingly frustrating as the only way out seems to erase the entire HD and start over from scratch - if this is possible at all. Despite the time wasted I would also loose some of my data on the respective partition as I don't have a backup for the entire data partition.

  • Progress Bar Issue Actionscript 3 Adobe Air Program

    I'm currently having an issue where when I download a file from the internet, I update the source for a ProgressBar that I've created, and I set the ProgressBar to event mode, and as the file is downloading, the progressbar's value increments as normal. When I re-download the same file (source has not changed), the value of the ProgressBar is no longer accurate or producing the same value as before. Basically, the ProgressBar works correctly only 1 time when I launch my application. Is there a proper way to reset/update the ProgressBar after each download?
    I've tried everything I can think of.

    Right if I had to paste the code it would take several pages lol. I haven't tried using a custom progress bar, but I may look into that. The main feature I used from the Progress bar was the ability to see how many "bytes" had been downloaded and I presented that to the user. I'm using a combination of urlStream/fileStream to download the file. And the source of the ProgressBar Component is linked to an instance called download which handles all the downloading of files. So I use the progress Event to monitor when a download is taking place, and at the same time calculate how many bytes have been downloaded. This is probably not the best way to do it, but currently the only way I know how with my limited actionscript 3 knowledge.
    I have confirmed at least my download class/package is downloading the full file each time even though my Progress bar only works 1 time, so it could be some of the things you pointed out that is causing it.

  • Animated Progress Bar issues

    I am working with the animated progress bar from the late Carl Backstrom's demo applicaiton but to my amazement, the bar refuses to animate unless the javascript is triggered from a button press. This is not really acceptable for my purposes as I need to have it fire and work though an onLoad on the body attributes. Any Sugestions? I know some people are going to probably say ExtJS and JQuery but our development rules here will not allow us include either of these libraries at this time.

    It is actually an intermediate page with a PL/SQL process that runs on submit to cache database information from a remote db. I actually have a button on another page that routes into the page in question so that I can clear everything in the background to prevent people from being able to go to another page while loading process is under way. The way I have it setup now is you click a button to start a multistage process and you are taken to a loading page which basically takes away other links on the page and gives you a blank page with the progress bar. Once loading is finished, it branches the person to the next step.

  • Issue Progress Bar

    Hello,
    I´ve got a Dashboard where the datas come from Web I and it are shown in a table in the Xcelsius, there is a Progress Bar (Unique Value) that i can change the values in the table when i move the bar but when i do that i can´t move the bar.
    it´s a little hard to explain. Does anybody know how to do it ?
    Thanks.

    Hi:
       Is the "Enable Interaction" under "Behavior" tab is enabled and checked?
       Or please create another process bar again, and make sure the "Enable Interaction" is checked and its data binds to cell with no formula.

  • Server 2008r2 and windows 7 pro slow to no networkshare file searching and file access (green progress bar)

    we are running a windows server 2008r2 sp1 domain controller and a 3com gigabit switch to which 7 windows 7 pro computers are connected. We are only using the windows server to distribute a few printers and as a network share (z drive).
    we are storing all files (word documents only) centrally on the server (z share), and files are accessed and written to the z share.
    Problem is that file access from the z share on the windows 7 client computers is at best buggy. we are able to browse the z-share, but as soon as we want to search the z-share for files (f.i. use file explorer with "content: memorandum") the green
    progress bar shows and no search is performed. something like alphabetically sorting a directory on map/file name on the z-share also shows a green bar with no sorting. manually going to the files works.
    One thing i noticed, sometimes not all files that one user created and stored on the server is visible and can be found by another user. I prefer to disable all offline file caching setting, because that feature is not used. no files should be made accessible
    offline. i don't know where to change that on the server side. 
    I am reluctant to experiment on the server end (2008r2 sp1), so i tried a few suggested solutions on the client end (windows 7 client)
    I tried disabling offline file caching
    i tried properties (z share) ==> advanced and map optimizing and several options there
    i tried disabling the smbv2 protocol and disabling the smbv1 protocol (using
    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi command etc. posted by microsoft)
    i tried disabling windows defender
    i tried accessing the z share via ip and server name (the share is mapped via its servername, e.g. dennis-dc1\share). still the same
    file searching on the clients c drive ('own harddrive') works much better, file searching on the server also works.
    any suggestions or solutions that i can test on the client side, as mentioned i am reluctant to change something on the server side. if a solutions works, i prefer to change it on the server side.

    Hi,
    The issue could be due to windows indexing service taking long time in sorting and searching in mapped drives. Please try the steps belwo to disable windows indexing service or search service on the windows 7 client to resolve the issue.
    You can click on Start and select Control Panel, click on
    Programs and Features, go into the Turn Windows Features on or off section Scroll down the list and uncheck the box next to Indexing Service or Windows Search.
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Adding a download progress bar to a flash output

    I have the CS4 production premium package. I made a flash based web page to function like my DVD project by "building" the project in Encore which creates the page along with the referenced flash video files without having to know action script. I was wondering if there is an easy way to include a download progress bar in the flash output? If it is not possible to add a download progress bar directly by changing some option before I "build"/export the project from Encore, is there a snippet of code I could insert in one of the files after it has been created so a progress bar is added to the video? Here is a link to the page I created. If you click the "TQ4" button you will notice that there is no download progress bar that is visible when the controls are showing.
    www.philadelphiaphilms.com/TQ4_web_DVD/index.html

    There's no easy way, no.
    It may be possible to do this in Flash if you built your own custom player, but you'd essentially have to reverse engineer your Encore Flash output (no small task).
    If you have access to a Flash Media Server, you might want to consider the streaming output option, which avoids downloading issues entirely.

Maybe you are looking for