Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Dialog box redraw issues
Topic Summary: Does anyone know of a way to force fields and text boxes to redraw
Created On: 8-Jul-2008 22:39
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 8-Jul-2008 22:39
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

I've noticed that rich text dialog boxes do redraw during function execution, but other dialog box elements do not update until the callback function has completed (see attached code for demonstration). Does anyone know of a way to force text boxes and fields to redraw (or the entire dialog box)?

Edited: 8-Jul-2008 at 22:40 by Andrew Wallen
Report this to a Moderator Report this to a Moderator
 9-Jul-2008 21:43
User is offline View Users Profile Print this message


David Jakad

Posts: 94
Joined: 20-Jul-2007

Interesting issue. I tried everything I could think of.... hide/show DBEs, re-size/re-position the DB, hide/show the DB, setFocus to each DBE, move the sleep_ and set()'s to their own functions, etc., etc., but nothing seemed to work. Putting an 'ack' before or after the sleep_ will force the fields to refresh, but kind of defeats the purpose.
Report this to a Moderator Report this to a Moderator
 9-Jul-2008 22:42
User is offline View Users Profile Print this message


Andrew Wallen

Posts: 18
Joined: 23-Sep-2006

Following your lead I played around a little bit to try to find something similar to an ack box that might trigger the desired behavior. I found that it will refresh if you display another DB using Block and then immediately release that DB using a timer.

The speed impact is pretty dramatic; doing some tests it looks like it takes about .24 seconds for a refresh (which if I recall is basically the minimum timer resolution).

I'll have to play with it a bit more to see if I can hide the fake db more and make the busy cursor maintain it's correct state, but the good news is I can now force an update when I absolutely need to.

Edited: 10-Jul-2008 at 15:21 by Andrew Wallen
Report this to a Moderator Report this to a Moderator
 22-Jul-2008 08:46
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi Andrew,

I have had some luck using the progressBar functions to refresh all of the DOORs windows (not just the one that the progress bar is over). just add a progressStart followed by a progressStop on the next line. Saves you having to create a new DB.

Paul
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.