This is part one of a series I am sending to some of my friends.
It teaches you how to make a pop-up window using scheme, and change the message of the window, position, size, content, etc.
Part two will teach how to link windows together, make them visible, invisible, and if I figure out how to do graphics, I will post a graphics with scheme tutorial as well. The help desk part of scheme is invaluable, I just made this tutorial to condense the huge amount of information in help desk. :D
Step One: Go to www.drshceme.org and download the full version of scheme.
Step Two: Run the installation program and open Dr Scheme.
Step Three: While in the Dr Scheme window, press ctrl and L at the same time. Click on the arrow next to PLT and select graphical from the list before pressing okay.
Then you can begin programming.
This should be your first program: (Fell free to copy and paste!)
(define mywindow (instantiate frame% ("Your mom")(x 300)(y 300)(height 300)(width 300)))
(define mymsg (instantiate message% ("Is the speed limit" mywindow)))
(instantiate button% () (label "press me")(parent mywindow)
(callback (lambda (button event)(send mymsg set-label "is the best"))))
(send mywindow show #t)
That program will give you a window with a title, a message, and a button.
In the first line of code, mywindow is replaceable by any word you can think of.
your mom is also replaceable, and you can change the x y height and width values to any real positive number.
In the second line, mymsg is replaceable, as is "is the speed limit" but now and forever, you will NEED those quotation marks.
Third line of code: The label is changeable, and in the fourth line, you can change what the message changes to.