vfp9

How to disable Task Pane Manager

Tagged:

Either of below will disable Task Pane Manager launch on VFP startup:

  • Click on the Task Pane's Options, Select Task Pane Manager in the treeview and uncheck Open the Task Pane when Visual FoxPro starts
  • In the RegEdit goto the HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options key and blank out Data for Value Name _STARTUP.
  • Add _STARTUP= to a config.fpw. Only VFP instance that uses this config.fpw will be affected.

Retrieving Printer Capabilities

In Enumerating printer forms article the DeviceCapabilities function is used to mark print forms supported by particular printer. It can be used to retrieve other printer capabilities as well.

VFP 9.0 Versions

Tagged:

VFP 9.0 version information for service packs and hotfixes.

Enumerating printer forms

Enumerating of printer forms can be done with Windows API EnumForms function. Contrary to what MSDN says, it returns the list of all printer forms on PC, not just for the specific printer. On other hand, DeviceCapabilities can return a list of supported paper sizes for the printer.

Moving Applications to VFP 9.0

Tagged:

When moving to VFP 9.0 from a previous version, start by checking What's New in Visual FoxPro section of the VFP7, VFP8 and VFP9 help, in particular

Behavior Changes Since ...

Editable checkbox in a Grid with AllowCellSelection disabled

Tagged:

The GridHitTest method can be used to to determine where user clicked on the grid and update checkbox accordingly. Note that checkbox status can be changed by mouse only because there's no current cell when AllowCellSelection=.F.

Converting ADO Recordset to Cursor with CursorAdapter

Tagged:

CursorAdapter can easily convert ADO recordset into VFP cursor. It does not support a conversion in opposite direction.