Does anyone have an example of using the VO AnimationControl in X# ?
In VO we used a modified version of the AnimateDialog class by John Marshall.
A cut-down bit of the code:
Code: Select all
PARTIAL CLASS AnimateDialog INHERIT DIALOGWINDOW
PROTECT oDCFixedText1 AS FIXEDTEXT
PROTECT ocAnimate AS AnimationControl
METHOD PreInit
// Get instance handle of SHELL32.DLL
SELF:hShell := LoadLibrary(String2PSZ("SHELL32.DLL"))
METHOD PostInit
SELF:oCAnimate := AnimationControl{SELF, ANIMATE_ANIMATE, SELF:oDCFixedText1:Origin,;
SELF:oDCFixedText1:Size,, _OR(WS_CHILD,ACS_CENTER,ACS_TRANSPARENT,ACS_AUTOPLAY),;
SELF:hShell}
SELF:oDCFixedText1:Hide()
// 161 == folder to folder (1 page)
SELF:oCAnimate:OpenResource( 161 )
How should OpenResouce() be called in X# ?
Thanks
Leigh