Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


phGantTimePackage FAQ 10193


Gantt will not refresh, and some callback events Like OnPrintToHdcNewPage will not fire in Microsoft Visual FoxPro Please note that this article refers to the phGantTimePackage
Jump to article- 2006-07-18 10:02:00 - Email plexityHide

Question

Gantt will not refresh, and some callback events Like OnPrintToHdcNewPage will not fire in Microsoft Visual FoxPro

Answer

FoxPro has something that is called AutoYield. This is default set to TRUE

You MUST set it to FALSE when you expect or want callbacks like for UserDraw and Print new page etc:

Sample:

IF THISFORM.phGantX1.PrintSettingsDialog()
SET PRINTER TO THISFORM.phGantX1.PrintSettingsPrinterName

 _VFP.AutoYield= .F.

THISFORM.phGantX1.PrintToDefault(3, 20, 6, 6, ;
THISFORM.phGantX1.TreeWidth, THISFORM.phGantX1.TopItemTree, -1, .T., {}, ;
DATE(), THISFORM.phGantX1.GetScaleLen, THISFORM.phGantX1.ScalerHeight,0,0)
ENDIF

 

Google
WWW plexityHide phGantTimePackage FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...