PRB: Additem Does Not Add Elements to an Outline ControlLast reviewed: April 30, 1996Article ID: Q128073 |
The information in this article applies to:
SYMPTOMSUsing the ADDITEM method to add elements to an outline control produces no output. When the form containing the OLE object is run, only the first element of the list is displayed. No other items are visible on the list. Clicking the first element has no effect.
CAUSEThe items are added to the list, but are not visible. Their indentation level is set to 0.
RESOLUTIONUse the INDENT property of the outline control to set the indentation level for the specified item.
STATUSThis behavior is by design.
MORE INFORMATIONThere are two ways to use the ADDITEM method, with and without an optional numeric parameter. Here is what happens in each case:
the relative position of an element in the list. If an item already exists at this position, the indentation level remains the same, for example: FrmForm1.Outl1.Additem('Command',1) Frm1.Outl1.Indent(1)=1 Frm1.Outl1.Additem('CheckBox',1) If the new item uses a new index when it is added (that is, no element existed at this position), the indentation level of the new item is 0. Because only the first element of the list is visible at indent 0, the indentation level of other items will need to be modified.For more information about the Outline control and the Properties, Events, and Methods associated with it, search for Outline using the Visual FoxPro Help menu.
Steps to Reproduce BehaviorThe following steps demonstrate how to use the INDENT property to display items:
|
Additional reference words: 3.00 VFoxWin OCX
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |