I Call It The "Click2"

« Return to Article
  • Bellinghman 2005-08-15 14:31
    So the actual action was determined not only by whether there was one click or two, but by when the timer event occurred?

    Phew!
  • El Duderino 2005-08-15 14:38
    There's a timer involved in this?  How can you tell?  I mean, the object (?) name tmrClickTimer is sort of vague on this.
  • Ross Day 2005-08-15 14:44
    Help! Help!&nbsp; My square wheel doesn't roll very well!<br>
  • GalacticCmdr 2005-08-15 14:45
    I am not a VBguy so I might not be up on all the fiddly bits, but near
    as I can tell actually clicking the button does not initiate any
    action. It simply flips this toggle button. I am calling it a toggle
    button because it will toggle between two states until the timer comes
    along a clears it again to the empty state.<br>
    <br>
    An FSM should look like the following I believe.<br>
    <br>
    &nbsp;&nbsp;&nbsp; empty state ---&gt; 1.click &lt;---[ click event]---&gt; 2.click<br>
    <br>
    So, depending on the duration of the timer you might be in any state as
    the user clicks the button (does not see anything happen) then clicks a
    few more time.<br>
    <br>
    Thus Click2 is more like State 2.<br>
  • Daveh 2005-08-15 14:45
    If the timer fires between the user's first click and second click,
    you'll end up with 2 single-click events, instead of a single, uh,
    dual-click (not the same as a double click evidently). I'm curious as
    to what the timer interval was set to. Too fast and you'll have a
    problem dual-clicking, too slow and the user will be waiting for their
    single-click to process. <br>
  • dan jones 2005-08-15 14:46
    wow... this is user interface design&nbsp;at its most obfuscated... not only is there a timer involved, but it acts like a queue to hold all the different requests... polling its own tag value to see just what's up... what happens if the user clicks three times?&nbsp; the value is set back to 1.&nbsp; and no indication that this will happen, either -- like, say, changing the label name to indicate that different actions will be taken depending on whether the number of clicks is odd or even.<BR><BR>this is teh lame.
  • uniposter 2005-08-15 14:50
    This "Click2" technology is sure to revolutionize the world of user interface design.<br>
  • whojoedaddy 2005-08-15 15:06
    That's just funny. They have the ability to extend it beyond two clicks though ... triple click anyone?<br>
  • spacey 2005-08-15 15:06
    just when i was starting to think that MY job sucks....<br>
    <br>
    click2 saves the day....<br>
  • Anonymous 2005-08-15 15:07
    Maybe the programmer just wanted a different maximum time interval than you get with DblClick.<br>
  • PstScrpt 2005-08-15 15:10
    Damn, even if you didn't know that there was a double-click event, why not just keep a LastClickTime variable?
  • mizhi 2005-08-15 15:14
    PstScrpt:
    Damn, even if you didn't know that there was a
    double-click event, why not just keep a LastClickTime variable?
    <br>
    <br>
    That <span style="text-decoration: line-through;">is</span> was a trade secret. [:)]<br>
  • JamesCurran 2005-08-15 15:18
    <P>Also, let's not ignore the lines:</P>
    <P><SPAN style="COLOR: #008200">'MsgBox "Unknown Button: " &amp; aryArgs(1)</SPAN><BR></P>
    <P>Commented-out, which to me says "I could figure out why I was getting the error message, but it's easier just to silence it".</P>
    <P>&nbsp;</P>
  • res2 2005-08-15 15:25
    <P>
    PstScrpt:
    Damn, even if you didn't know that there was a double-click event, why not just keep a LastClickTime variable?
    </P>
    <P>It looks like it is used on multiple controls, therefore he needs to know which control was (double) clicked on...</P>
    <P>&lt;SNIP&gt;</P>
    <P>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #008200">'Click twice if already clicked</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">If</SPAN> tmrClickTimer.Tag = <SPAN style="COLOR: #848284">"1.lblSetText"</SPAN> <SPAN style="COLOR: #0000ff">Then</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmrClickTimer.Tag = <SPAN style="COLOR: #848284">"2.lblSetText"</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">Else</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmrClickTimer.Tag = <SPAN style="COLOR: #848284">"1.lblSetText"</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">End</SPAN> <SPAN style="COLOR: #0000ff">If</SPAN><BR></P>
    <P>&lt;SNIP&gt;</P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">Select</SPAN> <SPAN style="COLOR: #0000ff">Case</SPAN> aryArgs(1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">Case</SPAN> <SPAN style="COLOR: #848284">"cmdLoadFile"</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #0000ff">Call</SPAN> cmdLoadFile_Click<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&lt;SNIP&gt;</P>
    <P>Not that that is an excuse for this abomination... [6]</P>
    <P>Actually this reminds me of something I ran across last week... someone re-invented the case statement in vbscript. Now to find it again and send it in [:O]</P>
  • rogthefrog 2005-08-15 15:29
    <P>
    whojoedaddy:
    That's just funny. They have the ability to extend it beyond two clicks though ... triple click anyone?<BR>
    </P>
    <P>In fact, it's very easy to make it go to ELEVEN!!!!!!!!!!</P>
  • Dustin 2005-08-15 15:29
    lol. It must be for a program with people who click verrry slowwwly.<br>
  • Dustin 2005-08-15 15:38
    mizhi:
    PstScrpt:
    Damn, even if you didn't know that there was a
    double-click event, why not just keep a LastClickTime variable?
    <br>
    <br>
    That <span style="text-decoration: line-through;">is</span> was a trade secret. [:)]<br>
    <br>
    <br>
    Doh! Apparently I've never used a forum before. I meant to quote this
    and to say that it must be for people who click very slowly. *But
    really*, I think it's a simple case of over-architecting. I do it when
    I get bored [:)] You know, like a Rube-Goldberg illustration. (Please
    don't flame me, It's just a joke!) <br>
  • Anonymous 2005-08-15 15:50
    I can't (and won't) defend the implementation, but I wouldn't be
    surprised if this was the result of one or more users who couldn't
    master the double click.  Some people have a very hard time double
    clicking for some reason, and the developer may have been told to "Make
    it work!!!!"  <br>
  • dubwai 2005-08-15 15:51
    Ah...&nbsp; There's nothing quite like working with an app that not only implements double click incorrectly but ignores your double click speed setting in Whendoes.
  • DavidK 2005-08-15 16:02
    I'm going to use this to put a triple click easter egg into my site.<br>
    <br>
    No-one will ever find it!<br>
  • Gary R 2005-08-15 16:14
    What happens if the user does a genuine double-click?  IIRC, you will get <span style="font-weight: bold;">one</span> Click event, then a DblClick event?  So this code will count it as a single click?<span style="font-weight: bold;"></span><br>
  • dubwai 2005-08-15 16:15
    <P>
    Anonymous:
    I'm going to use this to put a triple click easter egg into my site.<BR><BR>No-one will ever find it!<BR>
    </P>
    <P>My old boss showed me one that he created with a triple right-click once.</P>
  • JamesCurran 2005-08-15 16:21
    <P>
    Anonymous:
    lol. It must be for a program with people who click verrry slowwwly.<BR>
    </P>
    <P>Actually, you have to click kinda fast, because if a tmrClickTimer_Timer occurs between the first and second clicks, you get two first clicks.</P>
  • Rick Mogstad 2005-08-15 16:23
    The triple click has actually been implemented in a lot of
    products.&nbsp; For example, in many windows apps you double-click to
    select a word, then click again (a.k.a triple click) to select the
    whole line.&nbsp; <br>
    <br>
    The only logical reason I can see for this code to exist (and im
    stretching a bit here) is so that the single-click event doesnt fire if
    they double click, and ONLY the double click event fires.&nbsp; Kind of
    sucks to have to wait .5 seconds (or whatever) for your single click to
    be processed though.<br>
    <br>
    <br>
  • anonymous coward 2005-08-15 16:33
    what happened to using 2 buttons?
  • coding slob 2005-08-15 16:38
    <P>
    Rick Mogstad:
    The triple click has actually been implemented in a lot of products.&nbsp; For example, in many windows apps you double-click to select a word, then click again (a.k.a triple click) to select the whole line.&nbsp; <BR><BR>The only logical reason I can see for this code to exist (and im stretching a bit here) is so that the single-click event doesnt fire if they double click, and ONLY the double click event fires.&nbsp; Kind of sucks to have to wait .5 seconds (or whatever) for your single click to be processed though.<BR><BR><BR>
    </P>
    <P>or could it be that he didn't know or understand&nbsp;lblSetText_DblClick() event? </P>
  • eagle 2005-08-15 16:40
    Ignoring the fact that I don't know anything about how timers in VB6
    work, I wonder what will happen if for example the call to
    "cmdLoadFile_Click" takes longer than a single timer interval ??<br>
  • Rick Mogstad 2005-08-15 16:50
    Anonymous:
    <p>
    Rick Mogstad:
    The triple click
    has actually been implemented in a lot of products.&nbsp; For example,
    in many windows apps you double-click to select a word, then click
    again (a.k.a triple click) to select the whole line.&nbsp; <br><br>The
    only logical reason I can see for this code to exist (and im stretching
    a bit here) is so that the single-click event doesnt fire if they
    double click, and ONLY the double click event fires.&nbsp; Kind of
    sucks to have to wait .5 seconds (or whatever) for your single click to
    be processed though.<br><br><br>
    </p>
    <p>or could it be that he didn't know or understand&nbsp;lblSetText_DblClick() event? </p>
    <br>
    <br>
    <br>
    The point, though, is that even if you implement both the
    lblSetText_Click() event and the lblSetText_DblClick() event, both will
    fire when you double click.&nbsp; The Click event will fire first, then
    the DblClick event will fire afterward.&nbsp; With this based approach,
    you could have a "1 or the other" type approach, which isnt really
    possible otherwise.&nbsp; <br>
    <br>
    Like I said, its a stretch, but could explain the thinking.<br>
  • dubwai 2005-08-15 16:54
    <P>
    Rick Mogstad:
    <BR><BR>The point, though, is that even if you implement both the lblSetText_Click() event and the lblSetText_DblClick() event, both will fire when you double click.&nbsp; The Click event will fire first, then the DblClick event will fire afterward.&nbsp; With this based approach, you could have a "1 or the other" type approach, which isnt really possible otherwise.&nbsp; <BR><BR>Like I said, its a stretch, but could explain the thinking.<BR>
    </P>
    <P>Hmm.&nbsp; A solution to incompatible single-click and double-click handling.&nbsp; Could be.&nbsp; That's a fine bit of forensic pathology you did there.</P>
  • Rick Mogstad 2005-08-15 17:02
    dubwai:
    <p>
    Rick Mogstad:
    <br><br>The point,
    though, is that even if you implement both the lblSetText_Click() event
    and the lblSetText_DblClick() event, both will fire when you double
    click.&nbsp; The Click event will fire first, then the DblClick event
    will fire afterward.&nbsp; With this based approach, you could have a
    "1 or the other" type approach, which isnt really possible
    otherwise.&nbsp; <br><br>Like I said, its a stretch, but could explain the thinking.<br>
    </p>
    <p>Hmm.&nbsp; A solution to incompatible single-click and double-click
    handling.&nbsp; Could be.&nbsp; That's a fine bit of forensic pathology
    you did there.</p>
    <br>
    <br>
    Lets just say that I have to work with people who may or may not use
    this kind of approach for things..... on a regular basis.... <br>
    <br>
    <br>
  • Hank Miller 2005-08-15 17:13
    WTF!&nbsp; Double click is the most human interface invented.&nbsp;&nbsp; All
    because back in 1984 Apple wanted to advertise that you couldn't push
    the wrong button.&nbsp;&nbsp; Windows is slowly moving away from
    this.&nbsp;&nbsp;&nbsp; Everyone else is trying too, because it does
    not work.<br>
    <br>
    Have you ever watched an old person try to double click
    something?&nbsp; It is frusterating.&nbsp;&nbsp; It is hard to hold the
    mouse still while clicking within the allotted time (actually holding
    the mouse still while clicking is difficult).&nbsp;&nbsp; The allotted
    time cannot be safely increased because power users are unwilling to
    wait any longer when they want two single clicks.<br>
    <br>
    <br>
  • uniposter 2005-08-15 17:20
    Anonymous:
    WTF!&nbsp; Double click is the most human interface invented.&nbsp;&nbsp; All
    because back in 1984 Apple wanted to advertise that you couldn't push
    the wrong button.&nbsp;&nbsp; Windows is slowly moving away from
    this.&nbsp;&nbsp;&nbsp; Everyone else is trying too, because it does
    not work.<br>
    <br>
    Have you ever watched an old person try to double click
    something?&nbsp; It is frusterating.&nbsp;&nbsp; It is hard to hold the
    mouse still while clicking within the allotted time (actually holding
    the mouse still while clicking is difficult).&nbsp;&nbsp; The allotted
    time cannot be safely increased because power users are unwilling to
    wait any longer when they want two single clicks.<br>
    <br>
    <br>
    <br>
    <br>
    Yeah I hear they're moving away from monitors and speakers too because they're way too hard for deaf mutes to use.<br>
  • Rank Amateur 2005-08-15 17:20
    <P>
    Anonymous:
    I can't (and won't) defend the implementation, but I wouldn't be surprised if this was the result of one or more users who couldn't master the double click.&nbsp; Some people have a very hard time double clicking for some reason, and the developer may have been told to "Make it work!!!!"&nbsp; <BR>
    </P>
    <P>It would have to be quite the PHB to tell a developer that, because now there's a double click that is even <EM>harder</EM> to use. When you try to double click, sometimes you get a double click, sometimes you get two single clicks even when clicking exactly the same way, depending on some invisible timer event. Or you're trying to single click: You click. Nothing happens (timer event hasn't occurred yet), so you click again. Oops. Double click. You're such a luser.</P>
    <P>Of course, there are lots of users that have trouble with double click, but the solution is to&nbsp;<EM>not use</EM> double click, except as a shortcut for the non-digitally-challenged to do something that can be done with menus or something. </P>
    <P>As for doing this to prevent a single click event firing when double clicking, the WTF is that the developer doesn't understand double clicking. It should <EM>always</EM>&nbsp; do the single click action (generally selection), then augment it some way (e.g., execute dialog box action or open properties box).</P>
    <P>Let me guess: he wants to support double clicking of "buttons." That might explain why he's got clicking and double clicking of labels and images. That's just a plain bad idea. You want some sort of power-user activation of buttons? Try metakey-clicking.</P>
    <P>I bet he supports double clicking of checkboxes too.</P>
    <P>--RA</P>
  • Manni 2005-08-15 17:21
    <P>Wow, damn. I try to defend VB programmers since I know we are not the best in the world, but I can't defend this. Using a timer...to figure out a double click... I suppose the timer thing is an OK way of doing it, but it still feels dirty. Especially when you consider that the DblClick event already exists...</P>
    <P>You heard it here folks, the pro-VB troll just shot down one of his own. Right now Ghandi is having a snowball fight with Mother Theresa in Hell.</P>
  • chb 2005-08-15 17:23
    Now I'm ready for the morse code button<br>Click for short, dblClick for long <br>
    <font style="font-family: courier new;" size="3"><span style="font-weight: bold;">.--&nbsp; -&nbsp; ..-.<br>
    <br>
    <br>
    </span></font>
  • PstScrpt 2005-08-15 17:32
    <P>
    Anonymous:
    Have you ever watched an old person try to double click something?&nbsp; It is frusterating.&nbsp;&nbsp; It is hard to hold the mouse still while clicking within the allotted time (actually holding the mouse still while clicking is difficult).&nbsp;&nbsp; The allotted time cannot be safely increased because power users are unwilling to wait any longer when they want two single clicks.
    </P>
    <P>Settings/Control Panel/Mouse: "Double-click speed" is on the first tab.</P>
  • JamesCurran 2005-08-15 18:02
    <P>
    Rick Mogstad:
    With this based approach, you could have a "1 or the other" type approach, which isn't really possible otherwise.&nbsp;
    </P>
    <P>Nonsense.&nbsp; It's a bit of a nuisance to set up, and does require setting a timer, but the procedure for handling a "double click without doing the single click action" is fairly easy, widely documented and widely used --On any window (in MSWindows) single click on the icon in the upper left corner, and the menu displays.&nbsp; Double click and the window closes without the menu appearing.</P>
    <P>Basically, you tell the control to only send single click notifications. When a click event occurs, you set a timer for the double-click timeout.&nbsp; If a second click arrives before the timer ticks, do the double-click action and kill the timer.&nbsp; If not, on the timer tick, do the single click action (and kill the timer) </P>
    <P>So, basically, he's sorta on the right track.&nbsp; The WTF here is that the timer is constantly going and is asynchronous with the clicks..</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
  • Mung Kee 2005-08-15 18:12
    My "web savvy" wife must be hip to this functionality, since she annoying clicks every link on the web twice.<br>
  • dubwai 2005-08-15 18:27
    <P>
    Hank Miller:
    <BR><BR>Have you ever watched an old person try to double click something?&nbsp; It is frusterating.&nbsp;&nbsp; It is hard to hold the mouse still while clicking within the allotted time (actually holding the mouse still while clicking is difficult).&nbsp;&nbsp; The allotted time cannot be safely increased because power users are unwilling to wait any longer when they want two single clicks.<BR><BR>
    </P>
    <P>Totally.&nbsp; It be nice if there were some way to like, I don't know, set the double-click speed.&nbsp;&nbsp; There isn't one that I know of.&nbsp; Not in the control panel.&nbsp; Definitely not under 'mouse' and not in the 'double click speed' section.</P>
  • Rick Mogstad 2005-08-15 18:57
    JamesCurran:
    <p>
    Rick Mogstad:
    With this
    based approach, you could have a "1 or the other" type approach, which
    isn't really possible otherwise.&nbsp;
    </p>
    <p>Nonsense.&nbsp; It's a bit of a nuisance to set up, and does require
    setting a timer, but the procedure for handling a "double click without
    doing the single click action" is fairly easy, widely documented and
    widely used --On any window (in MSWindows) single click on the icon in
    the upper left corner, and the menu displays.&nbsp; Double click and
    the window closes without the menu appearing.</p>
    <p>Basically, you tell the control to only send single click
    notifications. When a click event occurs, you set a timer for the
    double-click timeout.&nbsp; If a second click arrives before the timer
    ticks, do the double-click action and kill the timer.&nbsp; If not, on
    the timer tick, do the single click action (and kill the timer) </p>
    <p>So, basically, he's sorta on the right track.&nbsp; The WTF here is
    that the timer is constantly going and is asynchronous with the clicks..</p>
    <br>
    <br>
    I guess I should have said "without an approach <span style="font-weight: bold;">LIKE</span>
    this".&nbsp; I am certainly not defending this guy's code by any means,
    just trying to figure out what the intent was.&nbsp; There is no
    standard way to keep a click event from firing while trapping a double
    click.&nbsp; It really doesnt make sense that there should be a way to
    do this standardly, as the first part of the double-click is a
    single-click, which should fire an event.&nbsp; <br>
    <br>
    FWIW, your solution is mighty similar.&nbsp; <br>
  • Andrew Parsons 2005-08-15 19:51
    Just so you all know and don't die wondering, the programmer didn't realise there was a double-click event.<br>
    <br>
    So, don't credit him for forward thinking for triple clicks and the
    like - it was a double-click replacement due to a lack of knowledge
    about VB (and this was from a guy with 3-4 years VB experience).<br>
  • Bellinghman 2005-08-15 20:03
    That wasn't 3-4 years experience. That was 3-4 days, repeatedly.
  • coding slob 2005-08-15 20:08
    <P>
    Anonymous:
    Just so you all know and don't die wondering, the programmer didn't realise there was a double-click event.<BR><BR>So, don't credit him for forward thinking for triple clicks and the like - it was a double-click replacement due to a lack of knowledge about VB (and this was from a guy with 3-4 years VB experience).<BR>
    </P>
    <P>3-4 years VB experience is not enough to <STRIKE>learn</STRIKE> notice dblClick event?</P>
    <P>It used to piss me off when I was looking for a job, and some&nbsp;recruiters wouldn't even talk to me 'cause job requirements asked for 5 years exp., while I only&nbsp; had 3 or&nbsp;4. Now it makes sense... </P>
  • A Wizard A True Star 2005-08-15 20:37
    <P>The code is horrifying, but here's my mild defense: In VB6, there's no _DblClick event on CommandButtons.</P>
    <P>But I think there's a pretty good reason for that.</P>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
  • dance2die 2005-08-15 20:38
    I have a faith in M$ implementation of DblClick event.<br>
    <br>
    But sometimes when you think there is just too many bugs in M$ lib's, you might as well go with "Click2"...<br>
    <br>
    All "Click2" needs now is a GPL license...<br>
  • A Wizard A True Star 2005-08-15 20:40
    JamesCurran:

    <P>On any window (in MSWindows) single click on the icon in the upper left corner, and the menu displays.&nbsp; Double click and the window closes without the menu appearing.</P>
    <P>
    </P>
    <P>Uhhh.. which version of Windows are you using there? When I double click on the icon, the menu does&nbsp;appear for a split-second. </P>
    <P>&nbsp;</P>
  • WIldpeaks 2005-08-15 20:41
    <P>Maybe his boss is the type that expects that clicking many times on a button makes the damn program work faster (like those that expect that pressing again and again on the elevator's button will make it arrive faster), therefore requiring to know how many times the user clicked [:P]</P>
    <P>&nbsp;</P>
    <P>PS: yes, I need sleep, lol..</P>
  • Amit Patankar 2005-08-15 21:07
    <span style="font-family: tahoma;">OMGWTF..... is there a petition
    where i could sign in support of the litigation against that certain
    company? I guess the decision has been made "And the programmer of the
    year award goes to.......for his groundbreaking role in inventing <span style="font-weight: bold;">Click2</span> and saving the computing world". I wish there was a emoticon for screaming out <span style="font-weight: bold;">LOUD</span>.</span><br>
  • Rick Mogstad 2005-08-15 21:14
    A Wizard A True Star:
    JamesCurran:

    <p>On any window (in MSWindows) single click on the icon in the upper
    left corner, and the menu displays.&nbsp; Double click and the window
    closes without the menu appearing.</p>
    <p>
    </p>
    <p>Uhhh.. which version of Windows are you using there? When I double
    click on the icon, the menu does&nbsp;appear for a split-second. </p>
    <p>&nbsp;</p>
    <br>
    <br>
    Now that you mention it, so does mine....<br>
  • ProffK 2005-08-16 02:14
    Anonymous:
    mizhi:
    PstScrpt:
    Damn, even if you didn't know that there was a
    double-click event, why not just keep a LastClickTime variable?
    <br>
    <br>
    That <span style="text-decoration: line-through;">is</span> was a trade secret. [:)]<br>
    <br>
    <br>
    Doh! Apparently I've never used a forum before. I meant to quote this
    and to say that it must be for people who click very slowly. *But
    really*, I think it's a simple case of over-architecting. I do it when
    I get bored [:)] You know, like a Rube-Goldberg illustration. (Please
    don't flame me, It's just a joke!) <br>
    <br>
    <br>
    I won't flame you, but Rube Goldberg needs a flame or two.&nbsp; I'd never seen his work before now, but apart from using <span style="font-weight: bold;">only one </span>of
    his cartoons to describe excess detail/work, the rest a pretty
    useless.&nbsp; Each one is the same joke over again.&nbsp; I fail to
    see how anyone could ever in all time remain amused by these drawings
    longer than halfway through the first one they ever see.<br>
  • Spidey 2005-08-16 03:58
    Y'know, there's nothing in the code that diferentiates between a right
    and a left click here. I think the guy was trying to cook up some sort
    of cool right-left two click event, but his 'mere' 3-4 years experience have
    left him floundering. <br>
    <br>
    I think this might catch on.....but perhaps not.<br>
    <br>
    <br>
    <br>
  • Welcome To The Machine 2005-08-16 04:23
    <P>
    Mung Kee:
    My "web savvy" wife must be hip to this functionality, since she annoying clicks every link on the web twice.<BR>
    </P>
    <P>Mine does too. We should set up a support group or something...</P>
  • Daniel Migowski 2005-08-16 04:49
    Gary R:
    What happens if the user does a genuine double-click?&nbsp; IIRC, you will get <span style="font-weight: bold;">one</span> Click event, then a DblClick event?&nbsp; So this code will count it as a single click?<span style="font-weight: bold;"></span><br>
    <br>
    <br>
    I once wrote an Access-App, that went into Developer Mode, when you
    played a melody with your mouse on the application logo. It was like
    click - diclick-click - .. - click-click! No one would have found
    that!! At it was fun to implement it ;).<br>
    <br>
    How do you guys hide stuff in your apps?<br>
  • RayS 2005-08-16 04:50
    You know, I'm really surprised that nobody else has questioned just <span style="font-weight: bold;">what </span>it is that is being double clicked on this form...<br>
    <br>
    ...a LABEL. If only there were some other GUI elements designed for
    being clicked, like a button or something. Instead we all have to use
    arbitary plain text to click on.<br>
    <br>
    Next task - seamlessly integrate 23 textboxes above each other to
    overcome the problem of not having multi-line textboxes. It'll also
    need a sextuple-click event - that is [left, left, right, left, right,
    left] click. Heck, if the user has enough mouse buttons, assign a note
    to each one and get them to play 'twinkle twinke little star' before we
    perform the action.<br>
  • Daniel Migowski 2005-08-16 04:52
    Gary R:
    What happens if the user does a genuine double-click?&nbsp; IIRC, you will get <span style="font-weight: bold;">one</span> Click event, then a DblClick event?&nbsp; So this code will count it as a single click?<span style="font-weight: bold;"></span><br>
    <br>
    <br>
    I once wrote an Access-App, that went into Developer Mode, when you
    played a melody with your mouse on the application logo. It was like
    click - diclick-click - .. - click-click! No one would have found
    that!! At it was fun to implement it ;).<br>
    <br>
    How do you guys hide stuff in your apps?<br>
  • davidbarrett 2005-08-16 05:07
    <FONT face=Arial size=2>Ok I can understand the speakers but why would a mute have a problem with using a monitor?</FONT>
  • Bellinghman 2005-08-16 05:19
    "How do you guys hide stuff in your apps?"

    A hidden edit field in the About box. One that's not a tab stop, and that has an unusual keyboard shortcut.

    And then you have to type a password ...
  • dhromed 2005-08-16 05:26
    Anonymous:
    Ok I can understand the speakers but why would a mute have a problem with using a monitor?
    <br>
    Because se can't hear all those screaming loud colours used in bad webdesign.<br>
    <br>
    Anonymous:
    How do you guys hide stuff in your apps?
    <br>
    I'm still pondering a creative way to activate the muppet-photos on our company's mugshot page.<br>
    <br>
    Any ideas? I'm thinking clicking a rythm would be too far on the side
    of convoluted, but a single- or double-click on a Secret Place is so
    cliché.
  • dhromed 2005-08-16 05:36
    PS.<br>
    <br>
    About the icons in a Windows titlebar:<br>
    <br>
    Some programs, like IE, allow their icon to be used as a draggable file
    object. If you click on that icon, the menu appears 0.5sec after
    mousedown, or immediately after mouseup if mousedown sustained for 0.5+
    seconds.<br>
    <br>
    If I click on the firefox icon, the menu appears onmousedown immediately.<br>
    <br>
    The latter method allows you to drag onto a menu item, and let go to
    activate. That's fast, but requires more concentration than
    click-choose-click, so I only use it when I'm in a bit of a hurry.<br>
    <br>
    I rarely double-click the icon to close (though more often than
    'never'), and for fast access to the menu I often right-click the
    titlebar, because I always maximise my windows, and that makes the
    titlebar infinitely large, lust like the icon and the Close button. Big
    buttons = faster access. Infinite buttons equals VERY FAST access.<br>
  • slith 2005-08-16 05:40
    Trolls? here? Damn...<br>
    <br>
    You can configure the interval time for a double-click you know...<br>
  • Masklinn 2005-08-16 06:00
    Rick Mogstad:
    The triple click has actually been implemented in a lot of products.&nbsp; For example, in many windows apps you double-click to select a word, then click again (a.k.a triple click) to select the whole line.&nbsp; <BR><BR>The only logical reason I can see for this code to exist (and im stretching a bit here) is so that the single-click event doesnt fire if they double click, and ONLY the double click event fires.&nbsp; Kind of sucks to have to wait .5 seconds (or whatever) for your single click to be processed though.

    <P>And Opera actually manages to fit up to 4clics: nothing, word, line, paragraph</P>
    <P>Granted, they're cheating: there is no timer, clicking multiple times at the same place activates an event that circles between state, but yet... 4 clics...</P>
    <P>I wish Firefox had it though, paragraph selection is nifty</P>
  • RayS 2005-08-16 06:37
    Ah yes, hidden developer backdoors, I've done that one. In a POS system
    for a bookstore, it involved entering a certain invalid ISBN, and when
    prompted for the name (to do a text search) enter "Fake book" or
    whatever it was<br>
    <br>
    Wasn't fun to put together, but at least it worked.<br>
  • lucio 2005-08-16 07:42
    It's the <STRONG>Andrew Parsons</STRONG> <STRONG>Project</STRONG>! (couldn't resist [8-|] )
  • lucio 2005-08-16 07:42
    dubwai:
    My old boss showed me one that he created with a triple right-click once.

    <P>Now THAT's what I call awkward.</P>
  • res2 2005-08-16 08:05
    <P>
    Mung Kee:
    My "web savvy" wife must be hip to this functionality, since she annoying clicks every link on the web twice.<BR>
    </P>
    <P>[:)] I thought my x-wife was the only one who did this [:)]</P>
  • Mung Kee 2005-08-16 09:47
    dubwai:
    My old boss showed me one that he created with a triple right-click once.
    <br>
    <br>
    Triple right-click?!&nbsp; Isn't that like the "triple lindy"?&nbsp; No one has ever done it in competition.<br>
  • RobbieGee 2005-08-16 10:27
    Rick Mogstad:
    The triple click has actually been implemented in a lot of
    products.  For example, in many windows apps you double-click to
    select a word, then click again (a.k.a triple click) to select the
    whole line. 
    <br>


    I'm using Opera as the browser of my choice, and it supports quadruple-clicking to select a paragraph. It also shows the context menu when double, triple or quadruple-clicking. Very handy :-)
  • dubwai 2005-08-16 10:36
    lucio:
    dubwai:
    My old boss showed me one that he created with a triple right-click once.

    <P>Now THAT's what I call awkward.</P>
    <P>
    </P>
    <P>It was a picture of&nbsp;a client's face on the body of papa smurf.</P>
  • dubwai 2005-08-16 10:39
    <P>
    ProffK:
    <BR>I won't flame you, but Rube Goldberg needs a flame or two.&nbsp; I'd never seen his work before now, but apart from using <SPAN style="FONT-WEIGHT: bold">only one </SPAN>of his cartoons to describe excess detail/work, the rest a pretty useless.&nbsp; Each one is the same joke over again.&nbsp; I fail to see how anyone could ever in all time remain amused by these drawings longer than halfway through the first one they ever see.<BR>
    </P>
    <P>You've got to realize that when these drawings were done, there was relatively little entertainment available.&nbsp; It wasn't like now where there are&nbsp;thousands of ways to entertain yourself at any given moment.&nbsp; People were bored.</P>
  • emptyset 2005-08-16 10:43
    <P>
    Bellinghman:
    That wasn't 3-4 years experience. That was 3-4 days, repeatedly.
    </P>
    <P><FONT face="Courier New" size=2>keanu_v("my own private double click") ;</FONT></P>
  • emptyset 2005-08-16 10:46
    <P>
    Anonymous:
    Gary R:
    What happens if the user does a genuine double-click?&nbsp; IIRC, you will get <SPAN style="FONT-WEIGHT: bold">one</SPAN> Click event, then a DblClick event?&nbsp; So this code will count it as a single click?<SPAN style="FONT-WEIGHT: bold"></SPAN><BR>
    <BR><BR>I once wrote an Access-App, that went into Developer Mode, when you played a melody with your mouse on the application logo. It was like click - diclick-click - .. - click-click! No one would have found that!! At it was fun to implement it ;).<BR><BR>How do you guys hide stuff in your apps?<BR>
    </P>
    <P><FONT face="Courier New" size=2>in the comments.&nbsp; your email address has been added to the list of job candidates that we will never hire.</FONT></P>
  • Hank Miller 2005-08-16 10:53
    dubwai:

    <p>Totally.&nbsp; It be nice if there were some way to like, I don't
    know, set the double-click speed.&nbsp;&nbsp; There isn't one that I
    know of.&nbsp; Not in the control panel.&nbsp; Definitely not under
    'mouse' and not in the 'double click speed' section.</p>
    <br>
    <br>
    yeah...&nbsp; And wouldn't it be nice if you could make the speed
    slower without having to double click on something?&nbsp;&nbsp; Too bad
    you can't.&nbsp; (IIRC Windows XP can, previous versions of Windows
    cannot)<br>
    <br>
    None of this changes the fact that double click is a bad
    idea.&nbsp;&nbsp; A mouse needs more than one button so you don't have
    to overload selection with action.<br>
    <br>
    C++ gets a hard time because the shift operators are overloaded for
    output, even though there is no reason you would mean shift on an
    output stream.&nbsp;&nbsp; This is worse, one button is overloaded for
    selection and action, and you will often mean both at different times
    to the same thing.<br>
  • Nevermind 2005-08-16 11:00
    <P>
    Anonymous:
    <BR>yeah...&nbsp; And wouldn't it be nice if you could make the speed slower without having to double click on something?&nbsp;&nbsp; Too bad you can't.&nbsp; (IIRC Windows XP can, previous versions of Windows cannot)<BR><BR>
    </P>
    <P>You can do that in any version of windows without even touching the mouse...</P>
  • dubwai 2005-08-16 11:19
    Hank Miller:
    dubwai:

    <P>Totally.&nbsp; It be nice if there were some way to like, I don't know, set the double-click speed.&nbsp;&nbsp; There isn't one that I know of.&nbsp; Not in the control panel.&nbsp; Definitely not under 'mouse' and not in the 'double click speed' section.</P>
    <P>
    </P>
    <P>...</P>
    <P>None of this changes the fact that double click is a bad idea.&nbsp;&nbsp; A mouse needs more than one button so you don't have to overload selection with action.</P>
    <P>...<BR>
    </P>
    <P>One click selects, a second executes the action.&nbsp; What's hard to understand about that?&nbsp; It's the most intuitive thing in Windows.</P>
    <P>The concept of overloading controls is not bad design.&nbsp; It's actually a very good design.&nbsp; Instead of having 500,000 controls, you a few that are context senstive.</P>
    <P>And another thing.&nbsp; People don't complain about overloaded operators.&nbsp; Proper overloading can make code easier to understand.&nbsp; People don't like it when overloading abused as it often is.</P>
  • dance2die 2005-08-16 12:13
    <P>
    RayS:
    You know, I'm really surprised that nobody else has questioned just <SPAN style="FONT-WEIGHT: bold">what </SPAN>it is that is being double clicked on this form...<BR><BR>...a LABEL. If only there were some other GUI elements designed for being clicked, like a button or something. Instead we all have to use arbitary plain text to click on.<BR><BR>Next task - seamlessly integrate 23 textboxes above each other to overcome the problem of not having multi-line textboxes. It'll also need a sextuple-click event - that is [left, left, right, left, right, left] click. Heck, if the user has enough mouse buttons, assign a note to each one and get them to play 'twinkle twinke little star' before we perform the action.<BR>
    </P>
    <P>&nbsp;</P>
    <P>From the code I see, it doesn't seem to be possible that although the event handler starts with "LBL", it doesn't seem like it is a handler for labels...&nbsp; You never know what kind of naming convention the author of the code has...</P>
  • Xepol 2005-08-16 12:41
    Ah man... I never knew that VB's tag property was as string... As a Delphi programmer would only gets integer tags, I feel cheated!!
  • captain damage 2005-08-16 12:47
    I knew this math professor who lost the ability to double click because of Lyme Disease.<br>
  • mjonhanson 2005-08-16 13:07
    rogthefrog:
    <p>
    whojoedaddy:
    That's just
    funny. They have the ability to extend it beyond two clicks though ...
    triple click anyone?<br>
    </p>
    <p>In fact, it's very easy to make it go to ELEVEN!!!!!!!!!!</p>
    <br>
    <br>
    Supervisor:&nbsp; Can this user interface have a different event if the user clicks 10 times in a row?<br>
    <br>
    Dumb@$$:&nbsp; Yeah, this one goes to eleven?<br>
    <br>
    Supervisor:&nbsp; Maybe we could patent that...<br>
  • otis mukinfus 2005-08-16 13:07
    <P>-.. .&nbsp; -. ..... --. .&nbsp; -.-</P>
    <P>[;)]</P>
  • RP 2005-08-17 07:23
    Anonymous:
    <P>-.. . -. ..... --. . -.-</P>
    <P>[;)]</P>


    "DEN5GEK"?
  • Xepol 2005-08-17 10:44
    "-.. . -. ..... --. . -.-"

    DEN5GEK ???

    Although, this has inspired me to write a morse code translator... Maybe even a new protocol - TCP/MC ??
  • JThelen 2005-08-17 10:49
    Xepol:
    "-.. . -. ..... --. . -.-"

    DEN5GEK ???

    Although, this has inspired me to write a morse code translator... Maybe even a new protocol - TCP/MC ??
    <br>
    <br>
    -.. .- .. .-.. -.-- / .-- - ..-.<br>
    <br>
    I'm inclined to believe that was the actual code he was looking for.. as to a code translator, a quick google found this:<br>
    <br>
    http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A//morsecode.scphillips.com/jtranslator.html&amp;ei=DU4DQ7-gBceGau6zvUI<br>
    <br>
    As to a TCP/MC protocol, there are protocols in place that allow you to
    utilize HAM frequencies for transmittal of data;&nbsp; route that
    through a phone/ethernet bridge and voila!&nbsp; HAM radio internet.<br>
  • enders 2005-08-18 07:20
    <P>Reminds me of using Internet Explorer DLL's (shdocvw.dll)</P>
    <P>There are functions called</P>
    <P>Navigate<BR>Navigate2</P>
    <P>NavigateComplete<BR>NavigateComplete2</P>
    <P>Still wonder what the difference is. Or perhaps if they need to add a new parameter they will create teh Navigate3</P>
    <P>&nbsp;</P>
    <P>CE</P>
    <P>&nbsp;</P>
  • RayS 2005-08-18 09:14
    dance2die:
    <p>
    RayS:
    You know, I'm really surprised that nobody else has questioned just <span style="font-weight: bold;">what </span>it is that is being double clicked on this form...<br><br>...a
    LABEL. If only there were some other GUI elements designed for being
    clicked, like a button or something. Instead we all have to use
    arbitary plain text to click on.<br><br>Next task - seamlessly
    integrate 23 textboxes above each other to overcome the problem of not
    having multi-line textboxes. It'll also need a sextuple-click event -
    that is [left, left, right, left, right, left] click. Heck, if the user
    has enough mouse buttons, assign a note to each one and get them to
    play 'twinkle twinke little star' before we perform the action.<br>
    </p>
    <p>&nbsp;</p>
    <p>From the code I see, it doesn't seem to be possible that although
    the event handler starts with "LBL", it doesn't seem like it is a
    handler for labels...&nbsp; You never know what kind of naming
    convention the author of the code has...</p>
    <br>
    Well labels do have a click event, so it is possible.<br>
    <br>
    Good point though that you just can't be sure. Why am I assuming that
    someone who'd write this would have a sane naming scheme after
    all?&nbsp; :)<br>
  • emptyset 2005-08-18 09:23
    <P>
    Xepol:
    "-.. . -. ..... --. . -.-" DEN5GEK ???
    </P>
    <P><FONT face="Courier New" size=2>and bickity-bam! we have a new internet meme!&nbsp; [&lt;:o)]</FONT></P>
  • nxt 2005-08-19 08:58
    <span id="_ctl0_PostForm_Reply"><i>Any ideas? I'm thinking clicking a rythm would be too far on the side
    of convoluted, but a single- or double-click on a Secret Place is so
    cliché.</i><br>
    </span>
    <br>
    Click2, of course :)<br>
  • Mark Steward 2005-08-20 01:47
    <P>
    JThelen:
    Xepol:
    "-.. . -. ..... --. . -.-" DEN5GEK ??? Although, this has inspired me to write a morse code translator... Maybe even a new protocol - TCP/MC ??
    <BR><BR>-.. .- .. .-.. -.-- / .-- - ..-.<BR><BR>I'm inclined to believe that was the actual code he was looking for.. as to a code translator, a quick google found this:<BR><BR>http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A//morsecode.scphillips.com/jtranslator.html&amp;ei=DU4DQ7-gBceGau6zvUI<BR><BR>As to a TCP/MC protocol, there are protocols in place that allow you to utilize HAM frequencies for transmittal of data;&nbsp; route that through a phone/ethernet bridge and voila!&nbsp; HAM radio internet.<BR>
    </P>
    <P>Actually, not too unusual - unlike implementations of TCP over CP per RFC1149 (<A href="http://www.blug.linux.no/rfc1149/">http://www.blug.linux.no/rfc1149/</A>).</P>
  • kimo_sabe 2005-08-20 14:23
    dhromed:
    Anonymous:
    How do you guys hide stuff in your apps?
    <br>
    I'm still pondering a creative way to activate the muppet-photos on our company's mugshot page.<br>
    <br>
    <br>
    &nbsp; How about CSS display:none; and an alternate style sheet?&nbsp;
    IE won't let you select it, and most Firefox/Opera/etc users probably
    won't notice it's there.<br>
  • bobday 2005-08-22 03:01
    Alex Papadimoulis:
    if a user clicks one time ("Click") a different action is performed than if she clicks two times ("Click2").

    I don't exactly remember where I've seen this but a GUI framework (Qt or Cocoa maybe) allows you to check the number of times a button has been clicked on a component:

    1: single-click
    2: double-click
    ...
    58: 58-clicks
  • Otis Mukinfus 2005-08-28 10:43
    <P>Applying spaces (that are not well done in the code) it is DE N5GE K.</P>
    <P>Translation: DE (This is) N5GE (amateur radio {ham} callsign) K (over)</P>