Solved

X/Motif window refresh

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 156
Thin secure Windows 10 5 48
unix example issues 18 49
Making an alias 7 52
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now