Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

X/Motif window refresh

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
father-o-seamus
Asked:
father-o-seamus
1 Solution
 
griesshCommented:
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
 
father-o-seamusAuthor Commented:
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
 
liddlerCommented:

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
 
Computer101Commented:
PAQed, with points refunded (300)

Computer101
E-E Admin
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now