/// <summary> /// todoComment /// </summary> public virtual void HookupAllControls() { Control IteratedControl; FAllControls = new ArrayList(); FControlsWithChildren = new ArrayList(); EnumerateControls(FWinForm); //this adds all controls on form to ArrayList // this is on an international version of Windows, so we want no bold fonts // because the letters are difficult to read bool changeFonts = TAppSettingsManager.ChangeFontForLocalisation(); for (int Counter1 = 0; Counter1 < FAllControls.Count; Counter1++) { IteratedControl = (Control)FAllControls[Counter1]; if (changeFonts) { if (TAppSettingsManager.ReplaceFont(IteratedControl.Font)) { // remove bold and replace with regular IteratedControl.Font = new System.Drawing.Font(IteratedControl.Font.Name, IteratedControl.Font.Size, System.Drawing.FontStyle.Regular); } } } // Hook up Global Application Help handler to to the Form itself FWinForm.HelpRequested += new HelpEventHandler(GlobalApplicationHelpEventHandler); // Hook up Global Application Help handler to all Controls that have child controls for (int Counter2 = 0; Counter2 < FControlsWithChildren.Count; Counter2++) { ((Control)FControlsWithChildren[Counter2]).HelpRequested += new HelpEventHandler(GlobalApplicationHelpEventHandler); } }