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

Вниз

AnimateWindow - Как Использовать   Найти похожие ветки 

 
valler   (2002-11-20 20:05) [0]

Доброго времени суток Мастера.

Попробовал Использовать с TForm. Работает Великолепно.

Возможно ли сделать анимацию для Патели (TPanel) и что для этого надо сделать?


 
Игорь Шевченко ©   (2002-11-21 13:47) [1]

Все тоже самое, только передать в функцию Handle панели...


 
valler   (2002-11-21 18:40) [2]

В том то и дело, что не работает c panel1.handle;



 
Игорь Шевченко ©   (2002-11-21 18:45) [3]

If the function fails, the return value is zero. The function will fail in the following situations:

If the window uses the window region. Windows XP: This does not cause the function to fail.
If the window is already visible and you are trying to show the window.
If the window is already hidden and you are trying to hide the window.
If there is no direction specified for the slide or roll animation.
When trying to animate a child window with AW_BLEND.
If the thread does not own the window. Note that, in this case, AnimateWindow fails but GetLastError returns ERROR_SUCCESS.

Ищи свой случай


 
valler   (2002-11-21 20:36) [4]

По ходу разобрался.
Если Кому Интересно сообщаю. Функция коректно работает при появлении или сокытии панели. Следовательно необходимо добавить в класс панели обработку изменения свойства Visible (т. е. сообщения от VCL CM_SHOWINGCHANGED) .

procedure THidenPanel.CMShowingChanged(var Message: TMessage);
begin
inherited;
AnimateWindow(Handle,1000,AW_SLIDE or AW_HOR_POSITIVE);
end;



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

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

Наверх




Память: 0.47 MB
Время: 0.011 c
4-25158
vvs2002
2002-11-20 04:56
2003.01.09
Помогите, работа с чужим окном ... кнопку нажать


1-24881
xn0bys
2002-12-28 11:49
2003.01.09
СРОЧНО: нужна помощь по потомку TGraphicControl


14-25053
vuk
2002-12-20 15:10
2003.01.09
Software Development


4-25161
Kuzia
2002-11-20 13:51
2003.01.09
Hooking What Is It?!!


6-25004
Cu
2002-11-11 12:35
2003.01.09
Компонент TIdSMTP (Indy)