WorkAreas Interface Reference

Defines Work Areas for ListView. More...

List of all members.

Public Member Functions

 Remove ([in] VARIANT Index)
 Call this method to remove one item from the collection.
 Clear ()
 Removes all of the items from the collection.
 Add ([in] LONG Left,[in] LONG Top,[in] LONG Width,[in] LONG Height,[out, retval] IDispatch **Item)
 Call this method to create a new item in the collection.

Properties

LPUNKNOWN R _NewEnum []
 Returns the enumerator for the collection.
VARIANT R Item [[in] long Index] []
 Returns the specified item in the collection.
long R Count []
 Returns the number of items in the collection.


Detailed Description

Defines Work Areas for ListView.

The method WorkAreas returns a WorkAreas object. An WorkAreas object is a collection of the WorkArea objects. Example:

o = new ActiveXObject("Scripting.WindowSystemObject")

fs = new ActiveXObject("Scripting.FileSystemObject")

f = o.CreateForm(0,0,0,0)

f.ClientWidth = 450
f.ClientHeight = 550
f.CenterControl()
f.Text = "ListView Work Areas Demo"

f.BorderWidth = 10
f.MinWidth = 500
f.MinHeight = 350

Box = f.CreateListView(10,10,250,300)
Box.HotTrack = true
Box.Align = o.Translate("AL_CLIENT")

Ext = new ActiveXObject("Scripting.WindowSystemObjectExtensions")
Box.LargeImages = Ext.SystemImageListLarge

Box.WorkAreas.Add(10,10,180,180)
Box.WorkAreas.Add(200,200,200,200)

for (i = 0; i<10; i++)
{
        Item = Box.Add("Item "+i)
        Item.ImageIndex = Ext.GetFileSysIconIndexLarge("1.txt",o.Translate("FILE_ATTRIBUTE_ARCHIVE"))
        if ((i % 2) == 0)
        {
                Item.SetPosition(210,210)
        }
}
Box.Arrange()

f.Show()

o.Run()
Result:
ListViewWorkAreas.jpg
Since:
1.1.10.


Member Function Documentation

Add ( [in] LONG  Left,
[in] LONG  Top,
[in] LONG  Width,
[in] LONG  Height,
[out, retval] IDispatch **  Item 
)

Call this method to create a new item in the collection.

Parameters:
Left horizontal position of the area.
Top vertical position of the area.
Width width of the area.
Height height of the area.
Return values:
Item A new WorkArea object.
Since:
1.1.10.

Clear (  ) 

Removes all of the items from the collection.

Since:
1.1.10.

Remove ( [in] VARIANT  Index  ) 

Call this method to remove one item from the collection.

Parameters:
Index The index of the element to remove or the element itself.
Since:
1.1.10.


Property Documentation

LPUNKNOWN R _NewEnum

Returns the enumerator for the collection.

Since:
1.1.10.

long R Count

Returns the number of items in the collection.

Since:
1.1.10.

VARIANT R Item[[in] long Index] (  ) 

Returns the specified item in the collection.

Since:
1.1.10.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:13:23 2015. (C) Veretennikov A. B. 2004-2015