SftOptions 1.0

SftOptions.CurrentEntry Property

Softel vdm, Inc.

Returns the SftOptionsEntry object of the current entry.

Syntax       

Get

VB.NET

refEntryObj = object.CurrentEntry  As SftOptionsEntry

VB

Set refEntryObj = object.CurrentEntry  As SftOptionsEntry

C#.NET

SftOptionsEntry refEntryObj = object.CurrentEntry;

VC++

ISftOptionsEntry* refEntryObj = object->CurrentEntry;
ISftOptionsEntry* refEntryObj = object->GetCurrentEntry();

C

HRESULT object->get_CurrentEntry(ISftOptionsEntry** refEntryObj);

Delphi

refEntryObj := object.CurrentEntry  : ISftOptionsEntry;

object

A SftOptions object.

refEntryObj

Returns the SftOptionsEntry object of the current entry.

Comments

The CurrentEntry property returns the SftOptionsEntry object of the current entry.

The end-user can change the selected (or current entry) by using the Home, End and arrow keys or by clicking on a new entry.

The SftOptionsEntry.MakeCurrent method can be used to make an entry the current entry.

Example

SftOptions1.Add "", "Topic1", "Sample Topic 1", entrySftOptionsTopic, "", "", _
    Nothing, "", "", "", ""
SftOptions1.Add "Topic1", "Cb1", "Check Box 1", entrySftOptionsCheckBox, "", "", _
    Nothing, "", "", "", ""
SftOptions1.Add "Topic1", "Cb2", "Check Box 2", entrySftOptionsCheckBox, "", "", _
    Nothing, "", "", "", ""
SftOptions1.Add "", "Topic2", "Sample Topic 2", entrySftOptionsTopic, "", "", _
    Nothing, "", "", "", ""
SftOptions1.Entry("Cb2").MakeCurrent
SftOptions1.CurrentEntry.Text = SftOptions1.CurrentEntry.Text + " - Current Entry"
SftOptions1.InitializationComplete

See Also  SftOptions Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2002 - Softel vdm, Inc. - www.softelvdm.com