Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSChart Form Flicker
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
MSChart Form Flicker
Miscellaneous
Thread ID:
00917191
Message ID:
00917191
Views:
37
Have to MS Chart objects on the third tab of a form.

I am trying to get the the OCX's to not flicker...

When the third tab is clicked the MSChart controls are drawn and populated.

I have tried various combinations of LockWindowUpdate and .LOCKSCREEN with no perfect results only better results but still see flicker.

The below examples are the code from the click event of the third page

Attempt 1
   lPrevLockScreen = .LOCKSCREEN
   .LOCKSCREEN     = .T.

   .mBuildListProfile()
   .mSetGraphs()
   .mFillProfile()
   .LOCKSCREEN = lPrevLockScreen
Attempt 2
   .oAPIWin.oAPIWin32.mLockWindowUpdate(THISFORM.HWnd)
   lPrevLockScreen = .LOCKSCREEN
   .LOCKSCREEN     = .T.

   .mBuildListProfile()
   .mSetGraphs()
   .mFillProfile()
   .LOCKSCREEN = lPrevLockScreen
   .oAPIWin.oAPIWin32.mLockWindowUpdate(0)
Attempt 3
   .oAPIWin.oAPIWin32.mLockWindowUpdate(_SCREEN.HWnd)
   .mBuildListProfile()
   .mSetGraphs()
   .mFillProfile()
   .oAPIWin.oAPIWin32.mLockWindowUpdate(0)
Attempt 4
   .oAPIWin.oAPIWin32.mLockWindowUpdate(_VFP.HWnd)
   .mBuildListProfile()
   .mSetGraphs()
   .mFillProfile()
   .oAPIWin.oAPIWin32.mLockWindowUpdate(0)
Attempt 5
   lPrevLockScreen = .LOCKSCREEN
   .LOCKSCREEN     = .T.

   .mBuildListProfile()
   *-- mLockWindowUpdate(OCX Handle) before each MSChart manipulation in the following calls
   .mSetGraphs()   
   .mFillProfile()
   .LOCKSCREEN = lPrevLockScreen
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.

Riddley Walker
Next
Reply
Map
View

Click here to load this message in the networking platform