Dlog-Load user pref last used tab

From Vectorlab
Jump to: navigation, search

Function to load the last used tab from the file "SavedSettingsUser.xml" setting the found tab by index, if it fails it will load tab 1. The preferences must be set beforehand using the routine "SetSavedSetting". You need the routine LoadUserPrefNum to be loaded first. By Orso B. Schmid

{ Orso B. Schmid ************************************************ }
{ loads last used tab from SavedSettingsUser/XML }
PROCEDURE D_LoadUserLastTab(dID, tabControl_ID: LONGINT; XMLcategory, XMLelem: STRING);
		DisplayTabPane(dID, tabControl_ID, D_LoadUserPrefNum(XMLcategory, XMLelem, 1));