Results 1 to 2 of 2

Thread: Views - Solution for a follow up window / 2 threads ?

  1. #1

    Views - Solution for a follow up window / 2 threads ?


    Does Views provide with an easy solution to implement a follow up window during a long duration task ?
    The follow up window should have a STOP button that the user can click on during the task, at any moment. Clicking on this button must stop the long duration task.
    When we try to implement such a window it gets in background. We do not see it anymore.

    How can Views help us implementing such a job ?
    Is there any other solution than running two threads ?
    How can we implement two threads in Views Application ?
    What do you advice us ?

    Best regards,
    Jean-Paul MARTINS

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Alas there is no such capability in Views itself.

    It seems you need to use 2 threads with a mutex protected variable.
    The thread handling the computation will maintain the value of the variable (let's say between 0 and 100 with a specific value for the 'STOP' like -1)
    The main thread, where Views is active, will be consulting it periodically.

    The progress window needs to be modal to stay on top of the other windows.
    Beware of not using a system modal window on MS Windows: all other windows will be blocked.


Posting Permissions

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