◄Up► ◄Contents► ◄Index► ◄Back► ─────PWB Extensions───────────────────────────────────────────────────────── Syntax: void _cdecl EXTERNAL WhenLoaded( void ); See: cmdTable, swiTable All PWB extensions must define a WhenLoaded function. PWB calls WhenLoaded immediately after loading the extension. Any initialization tasks required by your extension functions or switches should be done in WhenLoaded. If your extension does not require initialization, WhenLoaded can return immediately to PWB. For example, WhenLoaded() { return; } Typical tasks that you can perform in WhenLoaded include: ■ Display an initialization message (DoStatusBox) ■ Initialize text switches ■ Assign keys to functions (SetKey) ■ Install new menus (IdAddPwbMenuItem) ■ Define and initialize new colors (AddAColor) ■ Create and initialize new PWB windows (Addfile, GetEditorObject, SetPWBWindowMenuTitle) -♦-