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]

"запускается"... Это как?
Начинает "отсчитывать деления"???



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

> song
Yes it is.



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

надо код...
попробуйте обновлять форму.



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

Hello!
так вроде должно работать :
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]

в цикл образующий движение ProgressBar поставь
Application.ProcessMessages
а обновлять не чего ненадо
Все должно быть видно
example
for i: = 1 to 100 do
begin
ProgressBar.Position:=i;
.......
Application.ProcessMessages

end;



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

Application.ProcessMessages лучше не использовать, так как будут отрабатывать все сообщения... И если нажмешь на кнопку в это время, то сообщение обработается и могут быть неприятности... Лучше уж использовать WinAPI функцию для обновления окна UpdateWindow(Handle);

Вот описание из 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.019 c
We answer immediately.
Gelios
2002-01-02 08:41
2002.04.01
Tell me plz, What is the reason that when creating a distribution kit, the program does not react at all


We answer immediately.
Kievsash
2001-12-29 04:13
2002.04.01
Tell me how to get a list of processes in the system Win98


We answer immediately.
Genbr
2002-03-18 13:22
2002.04.01
QUICK MENU


We answer immediately.
Jandrey
2002-01-31 01:18
2002.04.01
How to make autorun on boot?


We answer immediately.
Dorixe
2001-12-26 16:00
2002.04.01
SetLocaleInfo





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