Главная страница
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.017 c
3-24808
Alenka
2002-12-17 01:42
2003.01.09
SQL запрос(Create table)


3-24786
ramil
2002-12-14 16:24
2003.01.09
Multiple records found but only one expected...


4-25143
chips
2002-11-21 12:52
2003.01.09
handle controlов в чужой программе


14-25092
Metallica
2002-12-21 22:37
2003.01.09
Где можно взять исходник или алгоритм анализатора HTML-кода?


3-24813
SergADO
2002-12-17 09:56
2003.01.09
ADO и параметрический запрос