User Tools

Site Tools


creating_20an_20animation_20control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
creating_20an_20animation_20control [2018/03/31 13:19] – external edit 127.0.0.1creating_20an_20animation_20control [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //by Richard Russell, November 2009//\\ \\  A typical example of an **animation control** is the familiar 'search' animation:\\ \\ {{searchani.gif}}\\ \\  To create an animation control in your main window use code similar to the following:\\ \\  //by Richard Russell, November 2009//\\ \\  A typical example of an **animation control** is the familiar 'search' animation:\\ \\ {{searchani.gif}}\\ \\  To create an animation control in your main window use code similar to the following:\\ \\ 
 +<code bb4w>
         INSTALL @lib$+"WINLIB5A"         INSTALL @lib$+"WINLIB5A"
  
Line 13: Line 14:
         SYS "SendMessage", hwndAnim%, ACM_OPEN, 0, "C:\windows\search.avi"         SYS "SendMessage", hwndAnim%, ACM_OPEN, 0, "C:\windows\search.avi"
         SYS "SendMessage", hwndAnim%, ACM_PLAY, -1, &FFFF0000         SYS "SendMessage", hwndAnim%, ACM_PLAY, -1, &FFFF0000
 +</code>
 Note: the file **search.avi** probably won't be at that location on your PC.\\ \\  To create an animation control in a dialogue box use code similar to the following:\\ \\  Note: the file **search.avi** probably won't be at that location on your PC.\\ \\  To create an animation control in a dialogue box use code similar to the following:\\ \\ 
 +<code bb4w>
         INSTALL @lib$+"WINLIB2"         INSTALL @lib$+"WINLIB2"
  
Line 27: Line 30:
         SYS "SendDlgItemMessage", !dlg%, IDC_ANIMATE, ACM_OPEN, 0, "C:\windows\search.avi"         SYS "SendDlgItemMessage", !dlg%, IDC_ANIMATE, ACM_OPEN, 0, "C:\windows\search.avi"
         SYS "SendDlgItemMessage", !dlg%, IDC_ANIMATE, ACM_PLAY, -1, &FFFF0000         SYS "SendDlgItemMessage", !dlg%, IDC_ANIMATE, ACM_PLAY, -1, &FFFF0000
 +</code>
 Be aware of the caveat in the relevant [[http://msdn.microsoft.com/en-us/library/bb761889.aspx|MSDN page]]: "An animation control can display an AVI clip originating from either an uncompressed AVI file or from an AVI file that was compressed using run-length (BI_RLE8) encoding. The AVI file must not have a sound channel. The capabilities of the animation control are very limited and are subject to change". Be aware of the caveat in the relevant [[http://msdn.microsoft.com/en-us/library/bb761889.aspx|MSDN page]]: "An animation control can display an AVI clip originating from either an uncompressed AVI file or from an AVI file that was compressed using run-length (BI_RLE8) encoding. The AVI file must not have a sound channel. The capabilities of the animation control are very limited and are subject to change".
creating_20an_20animation_20control.1522502353.txt.gz · Last modified: 2024/01/05 00:18 (external edit)