SftDirectory 2.5

SftDirectory.SaveLayout Method

Softel vdm, Inc.

Saves the current column layout and control information to the specified Registry location.

Syntax       

VB.NET

object.SaveLayout(ByVal RegistryPath As String, ByVal EntryName As String)

VB

object.SaveLayout(ByVal RegistryPath As String, ByVal EntryName As String)

C#.NET

void object.SaveLayout(string RegistryPath, string EntryName);

VC++

HRESULT object->SaveLayout(_bstr_t RegistryPath, _bstr_t EntryName);

C

HRESULT object->raw_SaveLayout(BSTR RegistryPath, BSTR EntryName);

Delphi

procedure object.SaveLayout(RegistryPath : WideString, EntryName : WideString);

object

A SftDirectory object.

RegistryPath

Defines the Registry path where the column layout and control information is saved (see below).

EntryName

Defines the Registry entry, located at RegistryPath, where the column layout and control information is saved (see below).  If an empty string is specified, the "(Default)" entry at RegistryPath is used.

Comments

The SaveLayout method saves the current column layout and control information to the specified Registry location.

RegistryPath must start with the prefix "USR:" or "MACH:", followed by the remainder of the Registry key.  USR: is equivalent to current user settings (HKEY_CURRENT_USER), MACH: is used for system settings (HKEY_LOCAL_MACHINE).  No other prefix is allowed.

The column widths, dropdown width and height for combo box style controls, sort column and sort direction are saved.

If the RegistryLocation property is defined, the control automatically invokes LoadLayout and SaveLayout, when it is created and destroyed.


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