WellDone ought to default to "false" so that canceling the form does not return a true. However, that then means that the validating (particularly for DHCP) needs to be handled differently. Otherwise validation would ONLY occur when you press OK. (Not a terrible thing, but also not ideal.) In any case, this is a solution I found on the internet. It seems to work nicely. Validating still runs unless the form is closing (via ESC, Cancel, or X), including when moving from textbox to textbox, or tabbing to OK. I think this also solves a lingering problem where DHCP couldn't X out without attempting to validate. So it feels like an all-around winner. Step to reproduce: Level0 ping test 1.) on net_switch0, try to ping pc0. -tab through and notice that pc0 resolves to 192.168.1.2 on OK button. 2.) close with form window using X -notice that the ping happens anyway. Same is true for arp and traceroute.
11 KiB
11 KiB