Color Dialog duplicate color "game"... :)
#1
Here's a fun one that I haven't noticed in all these years (or at least have forgot) - in Windows Color dialog there are 48 Basic colors, but in reality only 47, because there is one duplicate. Like they say these days, "You had one job" and still they managed to miss that one and haven't corrected it in so many years. See below if you can find the duplicate one ( %CC_PREVENTFULLOPEN makes it a tiny bit harder).. Smile 
Code:
#COMPILE EXE
#DIM ALL
TYPE custcolors
  clr(15) AS DWORD
END TYPE
'====================================================================
FUNCTION PBMAIN () AS LONG
  LOCAL cc AS custcolors, iCol AS LONG

StartHere:
  DISPLAY COLOR 0, 0, 0, iCol, cc, %CC_PREVENTFULLOPEN TO iCol  '%CC_FULLOPEN

  IF iCol = &H400040 THEN
     MSGBOX "Success - you found the duplicate Basic color!  :)"
  ELSEIF iCol > -1 THEN
     IF MSGBOX("Nope, try again?", %MB_YESNO) = %IDYES THEN GOTO StartHere
  END IF

END FUNCTION
Reply
#2
From what this old foggy brain can remember  it's a classic windows easter egg that existed since Windows 3.1 - Oh the good ole days!   Billy probably never changed it for backwards compatibility.  I know which well known two near identical twin swatches, I see it every day when I pass the third row of traffic lights.  Did you know there actually two duplicate swatches... Prince wrote a wet song using it, I heard it while sitting in the 5th row seats.  Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)