× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




C Eval %SetAtr('Win01': 'Win01': 'Refresh') equals 1

use the sign, not the word "equals"  (for some reason my e-mail doesn't like
to sned the sign right before my backspace key (

---------------------------------------------------------
Booth Martin http://www.MartinVT.com
Booth@MartinVT.com
---------------------------------------------------------

-------Original Message-------

From: code400-l@midrange.com
Date: Tuesday, April 30, 2002 19:29:49
To: code400-l@midrange.com
Subject: Re: How do I get VARPG Program to repaint?

See if this works for you:

C Eval %SetAtr('Win01': 'Win01': 'Refresh')


---------------------------------------------------------
Booth Martin http://www.MartinVT.com
Booth@MartinVT.com
---------------------------------------------------------

-------Original Message-------

From: code400-l@midrange.com
Date: Tuesday, April 30, 2002 19:09:51
To: 'code400-l@midrange.com'
Subject: How do I get VARPG Program to repaint?

I have a tight loop, where I'm reading from a PC ODBC file and loading into
an AS/400 DB2 file. For each record I update an editbox on the window like
this:

C Eval %setatr('Win01': 'ENTSEASON': 'Text') C 'On Record: ' +
%Char(RecordNumber) +
C ' Bad: ' + %Char(BadNumber)

The edit box gets updated, but, the rest of the window never gets repainted.
That is, if I bring another window to the front, and then click on the task
bar this VARPG program window never gets shown. If I minimize all windows
on top of it, the window is shown but all grayed out (none of the controls
are re-painted) and the edit box shows the changing values.

How do I get this program to behave more like a "normal" windows program?

I remember in Delphi I would do an Application.ProcessMessages()
In C I would do an invalidate_rect(hwnd, xleft, ytop, xright, ybottom,
false); where x and y were window rectangles.

Regards,

Jim Langston
_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.


_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.