Hello, my name is Stephen and I live in Canada.  In Egypt there lives a man named Mahmoud Fayed.  Mahmoud is a programmer, and he has created PWCT, or Programming without Coding Technology.  PWCT brings the power and speed of the C/C++ programing language to the beginner programmer, and that is what I will demonstrate for you today.

I am not a professional programmer.  For a quarter century I have been a computer hobbyist.  In that time I have learned to program in Qbasic, Microsofts original user friendly language.  I have also learned how to fumble along in a half dozen other high level languages, but have mastered none.

The C/C++ language is the most highly developed, powerful, widely used language in the programming world, and not surprisingly, the windows operating system is made with it.  The language is also one of the most complex, difficult to learn, and easy to make errors with.  With the aid of the Harbour/xHarbour database language as an intermediary, Mahmoud has created PWCT.  A technology that simplifies access to C/C++ will be welcomed by the non-professional programming world.  So, lets begin.

Before you is my Vista desktop.  Yes, it is ugly right now, because I have it set up to make this movie.  PWCT was created on the Vista platform, and is compatable with many earlier version of windows.  Some of the keyboard tricks I will use today may not be available in earlier versions, so I hope these users will find other ways to do things.  That's part of programming.  Now, to reach this point, you will have already downloaded PWCT, unzipped it, found the setup folder, clicked the setup program, allowed the wizard to do its magic and create this PWCT shortcut icon.

As you see, when I move my mouse pointer around, the various shortcut icons become selected, and of course, a left click would start their programs.  Now, stop right here, because programming with a mouse is the slow way.  All of the help files in PWCT use screen shots to teach the beginner the slow way.  My purpose is to demonstrate the fast way, using the keyboard only.  So now I am going to park the mouse pointer in the corner, and put the mouse out of my reach.

To get around the desktop, use the arrow keys.  However, they do not allow you to access the Start button and other areas.  To do that you need to use the Tab key.  The first Tab press highlites the start button area.  Keep pressing to see the cycle, then stop at the desktop again.  Use the arrow keys to highlite the PWCT icon and press the Enter key.  A couple of splash screens will show on your new installation.  Press Enter to move on.  Then, here we are, in the PWCT programming environment.

Along the top of the window are familiar menus.  Down the left side are four words.  Bottom left, is the word Ready.  Here is where you will receive messages as you do various operations.  The open server window relates to the word Server on the left.  The next line in the server window showing File will display the file path to the program we will create.  Everything else in this window is beyond the scope of this introduction, so we will ignore this window from now on.

Now, press the left alt key.  Notice that file in the main body top left is selected.  Use the right arrow key to get over to help and down arrow to open.  The help file link is highlited.  Press Enter and the help file opens.  Hold down the alt key and press the space bar.  A small menu opens.  Use the arrow keys to access maximize and press enter.

In brief, Mahmoud Programming Language contains all the tutorials about the components for programming.  RPWI Environment shows how to create PWCT and any other application, how to modify its components and make your own components.  DoubleS (Super Server) Paradigm explains the complete overview of this technology.  This encompasses many more aspects of programming than I  knew existed, before I discovered PWCT.  This is a complete programming package, free and open source.  But enough, lets make a program.  Before we go, one last help key.  To move from the table of contents window to the main body window, and back, use the F6 key.

So now to get back to our progamming environment.  Hold down the left alt key with your left thumb and press the tab key with your left forefinger.  A graphical menu opens with one of our open windows highlited.  Each tab press moves the highlite.  When the letter M is selected, release the keys.


To begin a new program, hold down the Ctrl key and press N for new.  The new file window opens and the template "Console Application - without coding" is highlited.  This would make a program that opens a black window with white print.  Good for behind the scenes work, but we live in a world with windows.  So we will use "GUI Application - without coding".  Arrow down and press enter.  The window closes and software designers will note the "create server" window opens, with the cursor flashing in the file name box.  Time to name our program.

Now, there is a tradition in the programming world that the first program is the Hello world program, which is a tiny throw away program used to confirm that all systems are operating properly.  I don't like to make useless throw aways, so I'm going to make something useful.  I'm going to name this program "Hello".  Isn't that original.  You will notice that the create button is highlited, so we can just press enter.  The window closes and note the first line in the server window has changed.

Now, we have a goal.  That is, to create a program.  Hold down the alt key and press G, for goal.  The goal designer window opens.  This is where our programming will be displayed.  The first step is where we will begin to compose.  Now I will show you a speed method.  The first thing I want to do is make a window.  So, I will press the W key, for window.  The components browser window opens, notice the letter W is on the search line, and a component starting with the letter W is highlited.  We have to define a new window first, so up arrow.  Notice that the OK button is not pre-selected for us.  It will be blue in the next version.  If we were to try to get to it with the arrow keys, we would lose our "define new window" selection.  The TAB key comes to our rescue again.  Notice now the Select Domain area.  In the file tree, the Windows is faintly greyed.  Press the tab key and it becomes blue.  Another tab press and the black selection box appears around our define new window.  There are some visibilty issues here, that are to be addressed in the next version, so for now just trust me that these things are happening.  The next tab takes me to OK.  Tabbing further will go to Close, then the Search box, and then back to Windows.  At this time, Version 1.0, pressing enter at "define new window" will work, but showing the tab key function is instructional.  Press enter.




The component browser window closes and the "define new Window" component opens.  Here are all the ways to define your window.  There are keyboard navigation issues that need improving here and will be addressed in the next version, so for now we will accept the default settings.  Now I will introduce you to the main speed key.  Ctrl W is designated to be the general purpose accept/OK/Enter/close window key.  We didn't use it for the previous component browser window because there is a little problem there that Mahmoud is working on.  So, Ctrl W.

Now we see a pre-made code block for creating a window.  Let's make it.  We press Ctrl R, for run.  There is a default window.  The first thing I want to change is Window title.  PWCT does not allow two instances of a program to run at the same time.  If I go to modify now, focus will be transfered to that operation and later I will have to use alt tab to get back to this open window to close it.  The standard Microsoft key for closing a running window is Alt F4.  To modify anything from the keyboard, first highlite it with the arrow keys, then press Ctrl Y.  And we're back at our define new window component.   I use the arrow keys to get to window title and make my own.  Then Ctrl W, then Ctr R.

Now to do something with this window.  I will use controls called buttons.  First, close the window.  Notice window controls is already selected.  Type B.  There it is.  Enter.  We will set the buttons properties.  In the caption box I will type the caption to be displayed on the button.  I happen to know I need a button 220 wide so I will set that now.  Ctrl W.  Notice that our button has another option - button events.  Ctrl R.  The button is placed at coordinates 10,10, the default setting.  Alt F4 to close.  

This is fine, but let's make it a little fancier.  I want to use more buttons.  I'll now add two more buttons, default size, without captions, each 50 pixels below the previous button.

Now, to make these buttons do more than just lay there, I will have to define blocks of code called procedures.  Then I will have to link the procedures to the buttons with events.  Being button controls, those events will be clicks.  A procedure is programming, not windows or controls, so I have to select the first step.  So let's search for that command.  define pr - and there it is, in the Structure Programming Domain.  Enter.  I will call the first procedure Really.  Again.  Now two more empty procedures called Hurrah and Goodbye.  Ctrl W.  There they are, at the bottom of our program.  

In a code block, I have to state what I want a procedure to do.  I want Really to put a caption on blank button 2.  This is done with button classes.  So b - There's button, but it's of the controls domain.  Tab - down arrow - Tab - and highlite button classes - enter.  So, object name - value - properties describe the value - caption - set property - ctrl w.










Hurrah - I want this caption to flash.  To do this, I will make a continous loop to be broken out of by a button press.  Caution - A continous loop without a breakout method is an endless loop that can only be broken by Ctrl Alt Delete/task manager/quit program.  First I will assign a variable a value.  "A" takes us right there.  x=1,  value. Now I will set a while loop. W,h - and the condition is x=1.  In the while loop code block it's button classes win1.btn3 - my message - caption - set.  Now, I do it again without a caption. Ctrl w.  Now I want the loop to pause.  That is sleep. sl - 1 second - and again. Ctrl W.  Now I want to move one of these sleep commands.  Tab eventually gets to the up button.  enter, and now it is where I want it.

With Goodbye we want to break the flashing loop by closing the window.  So this is in window classes.  Notice that in this component, the page 1 box is different.  By tabbing to it and using the down arrow, we get to the invoke method page.  To the right is the release command.

Now to bring our buttons to life.  So I highlite button1 button event and type b.  There's button, wrong domain again.  Click is what we want.  Action data will be our procedure Really.  The necessary closed brackets tell PWCT that this is a procedure or a function.  And action type - call function/procedure.  I then set the other two buttons, and I'm finished.

**demo it**

Of the five hello files you will find saved, you only need the stand alone .exe file.  Now I can take it, zip it up, and send it to my sweety.  She can unzip it on her windows computer, click it with her mouse, and it will run.  And I will have impressed her.  And that, my friends, is a useful Hello program.

Now to wrap up.  Mahmoud asked me to make this movie because, although his programming and written English are extremely good, he feels his spoken English is poor.  In my opinion, PWCT is fabulous, because I know just how complex the c/c++ language is.  If you understand programming theory, that's all you need for PWCT.  Once you learn a very few shortcut keys, you can compose almost fast as your imagination.  For designers, the RPWI Environment uses a simple intermediate code of 15 commands with 5 punctuations.  No more searching for that misplaced curley bracket.  My personal hope is that this movie will attract the attention of programmers skilled in making 3D graphics applications.  Hopefully they could contribute some of their expertise to the component base.  PWCT is still in ongoing development, so check in occaisionally for version updates.

This concludes our introduction to Programming Without Coding Technology.  I hope you enjoyed it.  Goodbye.



**console**
To begin a new program, hold down the Ctrl key and press N for new.  The new file window opens and the template "Console Application - without coding" is highlited.  This is what we want so press enter.  The window closes and software designers will note the "create server" window opens, with the cursor flashing in the file name box.  Time to name our program.

Now, there is a tradition in the programming world that the first program is the Hello world program, which is a tiny throw away program used to confirm that all systems are operating properly.  I don't like to make useless throw aways, so I'm going to make something useful.  I'm going to name this program "Hello".  Isn't that original.  You will notice that the create button is highlited, so we can just press enter.  The window closes and note the first line in the server window has changed.

Now, we have a goal.  That is, to create a program.  Hold down the alt key and press G, for goal.  The goal designer window opens.  This is where our programming will be displayed.  The first step is where we will begin to compose.  Now I will show you a speed method.  The first thing I want to do is print a line of text to the console.  I type p.  The component browser window opens, the letter p is in the search box, and a component starting with p is highlited.  R, is added in the search box - I - and there it is.  Press enter.  Now my message.  Then again.  An empty line.  Again.  Another message.  Now I am finished with this component so I use the close key - Ctrl W.

And there you have it, three lines of programming.  Now, I'm not finished yet.  I want to make my message a little fancy, and of course I have to sign it.  I want another blank line now, so I use the arrow keys to highlite the blank line code we've already made.  Then I press Ctrl C to copy it to a buffer in the memory.  Then I highlite the first step and will press Ctrl V.  Now, I know it's not P for paste, but at this time, that's the way it is.  So, Ctrl V, and there is the fourth line of programming.

Now, for my fancy part, I want to print one line numerous times.  Here we can use a component, called the For loop.  I know it's name so I will just press F.  There it is, highlited in the component browser window.  Ctrl W, and its window opens.  This default setting will do fine - Ctrl W.  The logic of this loop is easy to see.  Now I will compose my code block that I want to repeat 10 times.  P,R,I - Ctrl W - my message - Ctrl W.  Now, one more blank line.  And now sign it.  And one more blank line.

Now, I want to give my sweety time to read the message.  Right now, the console window will just flash and close too quickly to be read.  I want it to wait before closing.  You guessed it - W, A - and there is the component I want.  Here, we have two options, with toggle boxes to turn them on or off.  I can have my program wait for a key press, or, close after a number of seconds.  I want the first, it happens to be selected, so Enter.  You can toggle it off with Enter again.  And my message.  Ctrl W

My program is finished.  Now all we have to do is Save our work, Build an .exe file, and Run it.  I'll bet you thought it is Ctrl S, or Ctrl B.  Sorry, its Ctrl R, for run.  The program is saved - the .exe file is being built - the .exe file has been started - and there it is.

Please notice the file path at the top of the window.  After the last back slash is "Hello.exe" - our program.  If you go to this location on your C drive, you will find five files named Hello, with various extentions.  The only one you need is the .exe file.  Now, just to show that this program does end, I will press any key.  

Now I can take the Hello.exe file, zip it up, and send it to my sweety.  She can unzip it on her windows computer, click it with her mouse, and it will run.  And I will have impressed her.  And that, my friends, is a useful Hello program.