Solved

X/Motif window refresh

Posted on 2003-12-09
4
347 Views
Last Modified: 2013-12-26
Top of the morning to you all!

I'm using X to build a data entry screen for a database table. I'm using the slightly old tool DX (Database Xcessory) to pull results from the database but there's an unfortunate bug in displaying the first record of a record-set when cycling back and forwards through adjacent records.

Anyways .. to cut to what I need to do.
When the user clicks the previous record button I need to suspend X window updates ( for the whole application window ), retrieve the first record and then refresh the first record, then enable X window updates.

So .. the user only sees the movement to the previous record with a slight delay, instead of seeing the first record appearing, then being refreshed again on screen.

Is there an X call to suspend window updates and re-enable them?? Sorta XtDisableUpdates(widget) that'd do this for me?

Many thanks in advance

Father Patrick O' Seamus
0
Comment
Question by:father-o-seamus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 11

Expert Comment

by:griessh
ID: 9912026
As far as I understand your problem, I can't find an easy solution. The process involves two steps in different areas:

1) Get the record from the database
2) Display the record on the screen

It sounds like your tool does both things for you, but you would have to step in between.
The 'get' fetches the record and then a XtVASetValues copies the record into the widget. After that the X server will take over and refresh WHENEVER X THINKS it would be appropriate, and that's the problem! The disable is not an X function, it's a step in the process.

Sorry for the negative response, but maybe somebody here knows your tool and has tweak for you.

=====
Werner
0
 

Author Comment

by:father-o-seamus
ID: 9912055
Werner,

thanks ... you're right ... DX should be responsible for both of the steps listed.

unfortunatley there's a bug that means one of the dropdowns is not properly populated on the first record only. Hence my need to disable refreshes, re-read the record from the DB (which seems to sort the problem) and then display it on screen..

Cheers for your time!

Father Patrick O'Seamus
0
 
LVL 18

Expert Comment

by:liddler
ID: 10241413

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ and refund

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10300472
PAQed, with points refunded (300)

Computer101
E-E Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question