Posted: Tue Jul 23, 2002 4:23 pm
Restored from previous forum. Originally posted by fweil.
LO,
I was checking to get nice effects when opening one of my apps, and noticed that ShowWindow_ uses defined constants but not AnimateWindow_. It is not necessarily compatible to use them both at the same time, but you will maybe find interesting effects to code.
;
; Following constants are used with AnimateWindow_(hWnd, time, constant)
;
#AW_SLIDE = $40000 ; Uses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
#AW_ACTIVATE = $20000 ; Activates the window. Do Not use this value with AW_HIDE.
#AW_BLEND = $80000 ; Uses a fade effect. This flag can be used only If hwnd is a top-level window.
#AW_HIDE = $10000 ; Hides the window. By default, the window is shown.
#AW_CENTER = $10 ; Makes the window appear To collapse inward If AW_HIDE is used Or expand outward If the AW_HIDE is Not used. The various direction flags have no effect.
#AW_HOR_POSITIVE = $1 ; Animates the window from left To right. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_HOR_NEGATIVE = $2 ; Animates the window from right To left. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_VER_POSITIVE = $4 ; Animates the window from top To bottom. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_VER_NEGATIVE = $8 ; Animates the window from bottom To top. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
;
; Following constants are used with ShowWindow(hWnd, constant)
;
; Could not find value for this one : #SW_FORCEMINIMIZE ; Windows 2000/XP: Minimizes a window, even If the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread.
#SW_HIDE ; Hides the window And activates another window.
#SW_MAXIMIZE ; Maximizes the specified window.
#SW_MINIMIZE ; Minimizes the specified window And activates the Next top-level window in the Z order.
#SW_RESTORE ; Activates And displays the window. If the window is minimized Or maximized, the system restores it To its original size And position. An application should specify this flag when restoring a minimized window.
#SW_SHOW ; Activates the window And displays it in its current size And position.
#SW_SHOWDEFAULT ; Sets the show state based on the SW_ value specified in the STARTUPINFO Structure passed To the CreateProcess function by the program that started the application.
#SW_SHOWMAXIMIZED ; Activates the window And displays it as a maximized window.
#SW_SHOWMINIMIZED ; Activates the window And displays it as a minimized window.
#SW_SHOWMINNOACTIVE ; Displays the window as a minimized window. This value is similar To SW_SHOWMINIMIZED, except the window is Not activated.
#SW_SHOWNA ; Displays the window in its current size And position. This value is similar To SW_SHOW, except the window is Not activated.
#SW_SHOWNOACTIVATE ; Displays a window in its most recent size And position. This value is similar To SW_SHOWNORMAL, except the window is Not actived.
#SW_SHOWNORMAL ; Activates And displays a window. If the window is minimized Or maximized, the system restores it To its original size And position. An application should specify this flag when displaying the window For the first time.
=======================================================
This relates also to use of :
SetWindowLong_
SetLayeredWindowAttributes_
Also one I didn't know about PB constants like #black, #white, #yellow, #red, #green, #blue ... which exist.
I posted an Excel file available at :
http://www.nasca.fr/software/PureBasic_Index.zip
containing the collection of PB functions, constants and NASM stuff I found.
I don't know the way I will update this, but I was planning to add examples of mines and application skeletons in this file.
Any idea is welcome.
Francois Weil
14, rue Douer
F64100 Bayonne
LO,
I was checking to get nice effects when opening one of my apps, and noticed that ShowWindow_ uses defined constants but not AnimateWindow_. It is not necessarily compatible to use them both at the same time, but you will maybe find interesting effects to code.
;
; Following constants are used with AnimateWindow_(hWnd, time, constant)
;
#AW_SLIDE = $40000 ; Uses slide animation. By default, roll animation is used. This flag is ignored when used with AW_CENTER.
#AW_ACTIVATE = $20000 ; Activates the window. Do Not use this value with AW_HIDE.
#AW_BLEND = $80000 ; Uses a fade effect. This flag can be used only If hwnd is a top-level window.
#AW_HIDE = $10000 ; Hides the window. By default, the window is shown.
#AW_CENTER = $10 ; Makes the window appear To collapse inward If AW_HIDE is used Or expand outward If the AW_HIDE is Not used. The various direction flags have no effect.
#AW_HOR_POSITIVE = $1 ; Animates the window from left To right. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_HOR_NEGATIVE = $2 ; Animates the window from right To left. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_VER_POSITIVE = $4 ; Animates the window from top To bottom. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
#AW_VER_NEGATIVE = $8 ; Animates the window from bottom To top. This flag can be used with roll Or slide animation. It is ignored when used with AW_CENTER Or AW_BLEND.
;
; Following constants are used with ShowWindow(hWnd, constant)
;
; Could not find value for this one : #SW_FORCEMINIMIZE ; Windows 2000/XP: Minimizes a window, even If the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread.
#SW_HIDE ; Hides the window And activates another window.
#SW_MAXIMIZE ; Maximizes the specified window.
#SW_MINIMIZE ; Minimizes the specified window And activates the Next top-level window in the Z order.
#SW_RESTORE ; Activates And displays the window. If the window is minimized Or maximized, the system restores it To its original size And position. An application should specify this flag when restoring a minimized window.
#SW_SHOW ; Activates the window And displays it in its current size And position.
#SW_SHOWDEFAULT ; Sets the show state based on the SW_ value specified in the STARTUPINFO Structure passed To the CreateProcess function by the program that started the application.
#SW_SHOWMAXIMIZED ; Activates the window And displays it as a maximized window.
#SW_SHOWMINIMIZED ; Activates the window And displays it as a minimized window.
#SW_SHOWMINNOACTIVE ; Displays the window as a minimized window. This value is similar To SW_SHOWMINIMIZED, except the window is Not activated.
#SW_SHOWNA ; Displays the window in its current size And position. This value is similar To SW_SHOW, except the window is Not activated.
#SW_SHOWNOACTIVATE ; Displays a window in its most recent size And position. This value is similar To SW_SHOWNORMAL, except the window is Not actived.
#SW_SHOWNORMAL ; Activates And displays a window. If the window is minimized Or maximized, the system restores it To its original size And position. An application should specify this flag when displaying the window For the first time.
=======================================================
This relates also to use of :
SetWindowLong_
SetLayeredWindowAttributes_
Also one I didn't know about PB constants like #black, #white, #yellow, #red, #green, #blue ... which exist.
I posted an Excel file available at :
http://www.nasca.fr/software/PureBasic_Index.zip
containing the collection of PB functions, constants and NASM stuff I found.
I don't know the way I will update this, but I was planning to add examples of mines and application skeletons in this file.
Any idea is welcome.
Francois Weil
14, rue Douer
F64100 Bayonne