Solved

X/Motif window refresh

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

623 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