+ Reply to Thread
Results 1 to 4 of 4

Thread: Start/Stop service does not show progress message

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Start/Stop service does not show progress message

    Hi.

    The "Stop Service" and "Start Service" are working just fine. But the Progress Dialog is not updated with status text showing when it is stopping and starting the service.

    I have noted that there are (x)_PROG_ACTION46 and (x)_PROG_ACTION47 Text resources in the Progress/Misc Progress group. So I think this is a bug?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Start/Stop service does not show progress message

    Hello,

    No, this is not a bug. You can display it (if you want) using the "Progress Dialog: Status Text" script function.

    HTH,
    Friedrich

  3. #3

    Default Re: Start/Stop service does not show progress message

    Okay I see. but why are the Progress Text messages in the Text resources not for the SB8 runtime to use?

    If I understand you correctly I can use this to stop the service
    Code:
          
    Progress Dialog: Set Status Text #1 to "#PROG_ACTION47#"
    Progress Dialog: Set Status Text #2 to "Spawnerservice"
    Stop Service "Spawnerservice"
    Progress Dialog: Set Status Text #1 to ""
    Progress Dialog: Set Status Text #2 to ""
    and this to start the service
    Code:
    Progress Dialog: Set Status Text #1 to "#PROG_ACTION46#"
    Progress Dialog: Set Status Text #2 to "Spawnerservice"
    Start Service "Spawnerservice"
    Progress Dialog: Set Status Text #1 to ""
    Progress Dialog: Set Status Text #2 to ""

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Start/Stop service does not show progress message

    Yes, what you do is correct.

    BTW, it would be a very bad idea to let the runtime display all the operations automatically. It would result in a "flicker nightmare". Quite a few developers have to replace files, install files, check services, stop services, doing the service checks in a LOOP with Sleep delays (to be on the safe side), etc. from the script. Sometimes the operations take 1/10 second, sometimes longer. So if you would like to display a progress text for an operation that might take some time you can display it programmatically. Otherwise, it's not worth it to display the text at all.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •