![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Automatic refresh of Dialog Boxes Topic Summary: Created On: 20-Jul-2007 17:39 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Has anyone developed a method to automatically refresh a dialog box after a certain period of time, perhaps once every second?
I tried using the sleep_(int milliseconds) command to pause execution and iteratively call the refresh routine, however once the sleep/refresh cycle begins, the dialog box becomes unresponsive and DOORS must be force-quit to regain control. There may be a DOORS-native way to accomplish this, and if not, a third-party application that can be used to provide an external event (pressing a refresh button?) to the dialog box itself. Any insight is appreciated! Regards, Dennis |
|
![]() |
|
![]() |
|
Hi Dennis,
I do not exactly know, wherefore you need to update the box periodically, but I think this is not possible at all. In Doors itself you have no chance to implement a scheduler - your idea cannot work, because Doors has only one running context, so your script (with sleep_) is running there and nothing else would be working in parallel. The only way to update something, which is sometimes used in Telelogic's script is an object sync trigger to update the contents of dialog box on selecting a new object. Sorry for that bad news ![]() Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
I have just finished implementing such an automated refresh for getting lock status during a baseline set.
Attached is a sample program note: you can use startTimer(timerElem) and stopTimer(timerElem) to manage the timer, but as far as I know, there is no way to change the period after the init of the timer DBE. The timer is not real-time, and I believe that the timer doesn't accumulate while callback code is being executed. In my application I wound up using a 1 second update rate and writing a dispatch function that would handle the appropriate update rates of a few different functions. Here is the list of timer functions: bool getTimerRunning(int) int getTimerInterval(int) string getTimerName(int) bool startTimer(int) bool startTimer(DBE) DBE timer(DB,real,void(DBE),string) DBE timer(DB,int,void(DBE),string) Edited: 14-Dec-2007 at 22:32 by Andrew Wallen |
|
![]() |
|
![]() |
|
To add, refreshing of a dialog box has to be done on a per element basis. The dialog box is just a container for the different elements inside of it.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Automatic refresh of Dialog Boxes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.