Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: bindkey to toggle between leHiMarkNet() and leHiUnmarkNet()

$
0
0
Ramakrishnan's suggestion of using a flag on the window object to keep track of the toggle state is the best you can do given that there isn't really something to tell you whether anything is marked or not. However, the request is a bit odd. The functions both prompt you to click on a net to mark (or unmark) - so they're not really opposites. What if you don't click on a net and hit escape? What if you've marked two nets and then only one when you're in "unmark" mode of the toggle? That would be a rather odd use model. I could (almost) understand it if you wanted to toggle between leHiMarkNet() and leHiUnmarkNetAll() - that makes (slightly) more sense. Of course, if you use the menu instead of your bindkey, it would get out of sync with the toggle status, but that would mean you just need to press the bindkey again to get back in sync. Regards, Andrew

Viewing all articles
Browse latest Browse all 33813

Trending Articles