Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

That egg didn't age well...

Status
Not open for further replies.

Chris Miller

Programmer
Oct 28, 2020
4,949
DE
...but it's still there:

Code:
ACTIVATE WINDOW puzzle
The title bar is merely usable to drag the window as the title bar is dominated by the title bar buttons.

Shuffle, play a little, then suddenly win with CTRL+END. <- And that's the easter egg

The only other according to is in Foxpro 1.01 in the About Foxpro Window. Is it really gone?

Anyway, here's another Easter egg of VFP:
Code:
CLEAR

_SCREEN.DRAWWIDTH=4
DrawArc(_screen.Width/2,_screen.height/2, _screen.height/4,180,180)
DrawArc(_screen.Width/2+_screen.height/4, _screen.height/2, _screen.height/2,130,50)
DrawArc(_screen.Width/2-_screen.height/4, _screen.height/2, _screen.height/2,0,50)
DrawArc(_screen.Width/2,_screen.height/2 -_screen.height*.28, _screen.height/8,45,90)

FUNCTION DrawArc
LPARAMETERS X,Y,Radius,DegStart,Degs

_SCREEN.CURRENTX=X+(Radius*COS(DTOR(DegStart)))
_SCREEN.CURRENTY=Y-(Radius*SIN(DTOR(DegStart)))

FOR Deg = DegStart+1 TO DegStart+Degs
	_SCREEN.LINE(X+(Radius*COS(DTOR(Deg))),;
		Y-(Radius*SIN(DTOR(Deg))))
ENDFOR

Happy Easter [egg]

Chriss
 
Good stuff, Chris - just what the forum should be about, rather than all the technical stuff.

Re the puzzle, as far as I can see, you don't have to shuffle or play. You get the result if you just CTRL+END straight away.

I also had a quick look at Dale Gilstrap Leopold's contribution, but it has definitely not survived.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Mike said:
You get the result if you just CTRL+END straight away.
It works straight, but when somebody watches you solving it looks more impressive if you do some fake moves just to finally hit CTRL+END.

Chriss
 
A lot of earlier MSFT products had Easter Eggs. Later on, when security issues got serious, they made it a firing offense to put in an Easter Egg. (Heard that directly from a Microsoft employee, though I can't remember whether it was my son or someone else.)

Tamar
 
The most famous easter egg surely was the flight simulator in Excel. Such things are so self contained that I wonder if the risk assessment is realistic. That makes you wonder why the puzzle window wasn't removed from VFP. I think it was considered harmless. They even designed it so it's not in _Screen.Formcount, though when you DEFINE WINDOW windowname that does increase the _screen.formcount.

And if you DEFINE WINDOW puzzle it does not collide with the easter egg puzzle window. If you double define the same window name the second definition releases the first one.

So they thought of all the side effects such a secret window could have and worked around that. You wouldn't even discover the puzzle window when you DEFINE it yourself and activate it, you activate your own puzzle window.

Chriss
 
Hi Chriss,

Thank you for your creative, funny contribution. Our other subject about VFP and MIDI resulted in the thankfull use of [highlight #4E9A06]VFP[/highlight] playing the next Eastern Hymn on my organ.

Eastern Hymn

Have fun,


Kind regards,

Jan Flikweert
 
Hello Jan,

that's very nice feedback of what you achieved from this hard won Midi callback handling.
Thanks for sharing it with us.

Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top