Solved

X/Motif window refresh

Posted on 2003-12-09
4
344 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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