Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Down

There is a groupbox with an inscription inside it is the ProgressBar Find similar branches


DimaIv   (2002-03-20 09:04) [0]

when the ProgressBar starts, the frame disappears from the GroupBox and the Caption from the GroupBox is also not visible, and generally nothing is visible within one centimeter above and below.



Song   (2002-03-20 09:31) [1]

"starts" ... How is it?
Starts to "count the divisions" ???



DimaIv   (2002-03-20 09:42) [2]

> song
Yes it is.



Song   (2002-03-20 10:06) [3]

need code ...
try updating the form.



RedWood   (2002-03-20 10:19) [4]

Hello!
so it should work:
for i: = min to max do begin
ProgressBar.Position: = i;
GroupBox.Repaint;
.
blah-blah-blah
.
end;



ppcat   (2002-03-20 10:49) [5]

A better way to do Refresh for the whole form.



ALFA   (2002-03-20 21:28) [6]

put the ProgressBar into the loop
Application.ProcessMessages
and there’s nothing to update
Everything should be visible
example
for i: = 1 to 100 do
begin
ProgressBar.Position: = i;
.......
Application.ProcessMessages

end;



Севостьянов Игорь   (2002-03-21 10:57) [7]

Application.ProcessMessages it’s better not to use it, because all messages will be processed ... And if you click on the button at this time, the message will be processed and there may be troubles ... It’s better to use the WinAPI function to update the window UpdateWindow (Handle);

Here is a description from MSDN

UpdateWindow
The UpdateWindow function updates the client area of ​​the specified window by sending a WM_PAINT message to the window if the window "s update region is not empty. The function sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue If the update region is empty, no message is sent.

BOOL UpdateWindow (
HWND hWnd // handle to window
);
Parameters
hWnd
[in] Handle to the window to be updated.
Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Windows NT / 2000: To get extended error information, call GetLastError.

Requirements
Windows NT / 2000: Requires Windows NT 3.1 or later.
Windows 95 / 98: Requires Windows 95 or later.
Header: Declared in Winuser.h; include Windows.h.
Library: Use User32.lib.

See Also
Painting and Drawing Overview, Painting and Drawing Functions, ExcludeUpdateRgn, GetUpdateRect, GetUpdateRgn, InvalidateRect, InvalidateRgn, WM_PAINT




Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.04.01;
Download: [xml.tar.bz2];

Top









Memory: 0.57 MB
Time: 0.021 c
3-62
AndreiR
2002-03-08 20:00
2002.04.01
How to choose the maximum field value?


1-172
SlavaLamer
2002-03-19 14:55
2002.04.01
Opendialog


1-146
Mikel13
2002-03-21 07:47
2002.04.01
Chart


3-52
urii
2002-03-07 19:09
2002.04.01
portability


1-142
Zool
2002-03-21 22:53
2002.04.01
Error





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish