Programming with Reflection

image\rwnprg32.gif BeforeLoadSettings event

 

Syntax Private Sub Session_BeforeLoadSettings(SettingsFileName As String, SettingsType As Long, Continue As Boolean)

 

Description

This event is triggered immediately before a settings file is opened (either because a user has selected the file using the Open Settings dialog box, or through the execution of either OpenSettings or OpenSettingsExtended method.)

Arguments

SettingsFileName : String
The full path name of the settings file that is about to be opened. If the value of SettingsFileName is changed in the BeforeLoadSettings event procedure, Reflection loads the new settings file.

SettingsFileType Argument type: Enumeration
The type of settings file that is about to be opened. If the value of SettingsFileType is changed in the BeforeLoadSettings event procedure, Reflection opens a settings file of the new type.

rcSettings A complete settings file. Note: If SettingsFileType is rcSettings, the BeforeLoadSettings event procedure must be located in the currently open settings file.

rcColors Color settings file.

rcConnection Connection settings file.

rcHotspots Hotspots settings file.

rcKeymap Keymap (keyboard and mouse map) settings file.

rcMenuMap Menu settings file.

rcToolbar Toolbar settings file.

Continue Argument type: Boolean
Specifies whether Reflection should procede to open a settings file. Reflection sets this argument to True when the event occurs. If you set Continue to False in the event procedure, Reflection does not open the new settings file.

Notes

· Event procedures must be created in the code module for the Reflection Session object (ThisSession).

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command