Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.01;
Скачать: CL | DM;

Вниз

Есть GroupBox с надписью внутри него находится ProgressBar   Найти похожие ветки 

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

кокда ProgressBar запускается пропадает рамочка у GroupBox и Caption у GroupBox тоже не видно, и вообще невидно ничего в пределах одного сантиметра вверху и внизу.


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

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


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

>song
Да именно.


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

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


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

Всем привет !
так вроде должно работать :
for i := min to max do begin
ProgressBar.Position := i;
GroupBox.Repaint;
...
bla-bla-bla
...
end;


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

А лучше сделать Refresh для всей формы.


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

в цикл образующий движение ProgressBar поставь
Application.ProcessMessages
а обновлять не чего ненадо
Все должно быть видно
пример
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




Страницы: 1 вся ветка

Текущий архив: 2002.04.01;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.013 c
14-295
UGH|B1ADE
2002-02-18 18:56
2002.04.01
Плиз поможите !


1-100
Maybe
2002-03-20 15:58
2002.04.01
экземпляры различных классов в одной коллекции


1-157
Alex Dobrushin
2002-03-18 14:57
2002.04.01
Как показать и распечатать PDF файл?


1-151
Alex_LG
2002-03-22 08:29
2002.04.01
Как закрыть окно IE? Пишу нечто вроде PopStop


3-45
moor_38
2002-03-04 13:00
2002.04.01
DBGrin