please
nobody make any post until i am done writing all my posting to this thread.
i will make a final post when i am done/finished and probably make an announcement in the cafe section when i am through so
if there is anybody wanting to help this thread out can do so.
i am a very slow writer and communicator with words on paper and it takes me long periods of time to create something and proof read it.
thanks for the courtesy you extended me.
i have edits and post to add and we are in a holiday season with little time to spare.
i do not want to have to ask the forum supervisor to erase any unnecessary posting by others at this time.
FINALLY! FINALLY! FINALLY!
I HAVE SEEN THE LIGHT OF GUI PROGRAMMING IN POWERBASIC.
I want to share with others and if somebody wants to edit my writing so other will understand clearer or where i might of picked the wrong words, please do so and do so entirely so i can delete my words or maybe i can copy and give you credit and you can delete the a post where we have one continuous thought and we can have a join post for the person to read and not be confused with several posting in this threads
I have finally gotten the picture of how programming for windows works. I thought i would never understand and was so frustrated over the idea of even programming with a windows gui interface.
I am going to attempt to communicate the "how to program" for people wanting to use powerbasic for windows compiler to create a gui program.
I wish that i could communicate somethings in a illustration, this would some much easier to understand what is actually happening. Maybe somebody would do this, as i have little skills in the drawing.
all discussion i am using is on the compiler language of "Powerbasic Compiler for Windows"
i am a beginner and want to share my thoughts right this minute as a beginner to others before i forget about the basics and start looking and using the compiler as a more advanced user.
so lets start
LESSON ONE
You can use the compiler to produce executable code into a EXE or DLL file.
The program you create does not even have to have a graphical user interface (GUI) at for the user. There many things you can do with a program other than display information or ask the user for input.
While using windows operating systems, there are many things happening all at the same time, it is a multitasking operating system. You may want to start something, control something, change something or perform some kind of operation, all not ever needing a GUI.
Windows is a operating environment where messages are constantly being created and sent somewhere to cause an event to occur. The key words in the last line are messages and events.
Powerbasic compiler(PB) gives us the tools by which we can program to create those messages or receive those events. When programming for windows operation system (OS), there are many many windows functions that can be used from the compiler. To make use of those functions, the programmer only has to learn the function, what the function does, and then place code in the program to call that function. These functions are call API function.
So using PB you can do some powerful programming inside of an EXE or DLL without ever creating and using a GUI. A DLL a file that executable code line an EXE, but the DLL is different in that it contains functions that an EXE can call to make use of.
so the first lesson is that you can write a program in PB that does not even have to use a GUIi to perform some kind to task.
One reason for not using a GUI in a program, is you may want your program to monitor something in the background.
LESSON TWO
It is very important to understand that when anything that happens, that is an an event and when an event happens, that event creates a message. An example of that is a click of a mouse is an event. When you click the mouse, that event creates and sends a message. In order for a programmer to make use of a gui for a user, the programmer has to catch the message and interpet the message. So ever action(event) creates a message and the program reacts on the message.
LESSON THREE
Now onto using a graphical user interface(GUIi)
In most cases your program will be displaying information or interacting with a user.
In order to do this, you must create a window.
In PB that window is called a dialog, so in order to create a window, you use the dialog commands.
We are now going to refer to a window as a dialog.
In helping to understand what a dialog is all about, i like to think of a dialog as just like a dialog between two people. One person talks to the other person, one person talks, the other person listens. There is always a message sending and a message being received.
When a dialog displays text or graphics or plays music, a user is the person listening with their senses. The user maybe listening with sound coming to their ears, seeing the display with their eyes, feeling with hands(maybe the user has a game that vibrates a joystick), but it comes down to one thing, the user is listening.
Now, on the other side of that dialog is the user.
When the user uses a keyboard, mouse, joystick, or any kind of input, it creates a message and sends the message to the dialog. The dialog is now listening. The dialog can also listen using any of the computers senses This is just my way of explaining something in a non technical way, but i hope you understand the dialog listens also.
So that is how i picture a dialog in my mind, communications having the ability to go both ways.
So now we understand a window is a dialog.
LESSON FOUR
It has taken me so long to really understand the above. It is already time for a break. If you can understand the above now without programming in PB, you are much farther than it took me several years to understand the fundmentals of windows programming.
While taking that break and read the glossary that is in the back of your book on Powerbasic Compiler for Windows.
I am very serious about the next sentence and you should be tool
If you do not have a book, get a book written by Powerbasic for the compiler Powerbasic Compiler for Windows, if you are not going to get a book and do not need a book, then you are much to advanced to be needing to read this on how to program for windows GUI, i can not help you, maybe you need to be helping me.
Read the glossary at the back of the books slowly so we can communicated much better. Maybe not to other people, but the glossary is worth the price of the book itself, although not very long, it condenses down subjects need for the beginner. There is even a line in the book itself that suggest this very act. If you are a beginner or new to powerbasic compiler and you are not going to get a book, i really believe you are not interested that much about programming with powerbasic. The best thing you can do for yourself is purchase a book and you will not be sorry that you ever did.
lesson five will be a new post in this thread and while i am writing it, if you do not have that book, go ahead and order it.
nobody make any post until i am done writing all my posting to this thread.
i will make a final post when i am done/finished and probably make an announcement in the cafe section when i am through so
if there is anybody wanting to help this thread out can do so.
i am a very slow writer and communicator with words on paper and it takes me long periods of time to create something and proof read it.
thanks for the courtesy you extended me.
i have edits and post to add and we are in a holiday season with little time to spare.
i do not want to have to ask the forum supervisor to erase any unnecessary posting by others at this time.
FINALLY! FINALLY! FINALLY!
I HAVE SEEN THE LIGHT OF GUI PROGRAMMING IN POWERBASIC.
I want to share with others and if somebody wants to edit my writing so other will understand clearer or where i might of picked the wrong words, please do so and do so entirely so i can delete my words or maybe i can copy and give you credit and you can delete the a post where we have one continuous thought and we can have a join post for the person to read and not be confused with several posting in this threads
I have finally gotten the picture of how programming for windows works. I thought i would never understand and was so frustrated over the idea of even programming with a windows gui interface.
I am going to attempt to communicate the "how to program" for people wanting to use powerbasic for windows compiler to create a gui program.
I wish that i could communicate somethings in a illustration, this would some much easier to understand what is actually happening. Maybe somebody would do this, as i have little skills in the drawing.
all discussion i am using is on the compiler language of "Powerbasic Compiler for Windows"
i am a beginner and want to share my thoughts right this minute as a beginner to others before i forget about the basics and start looking and using the compiler as a more advanced user.
so lets start
LESSON ONE
You can use the compiler to produce executable code into a EXE or DLL file.
The program you create does not even have to have a graphical user interface (GUI) at for the user. There many things you can do with a program other than display information or ask the user for input.
While using windows operating systems, there are many things happening all at the same time, it is a multitasking operating system. You may want to start something, control something, change something or perform some kind of operation, all not ever needing a GUI.
Windows is a operating environment where messages are constantly being created and sent somewhere to cause an event to occur. The key words in the last line are messages and events.
Powerbasic compiler(PB) gives us the tools by which we can program to create those messages or receive those events. When programming for windows operation system (OS), there are many many windows functions that can be used from the compiler. To make use of those functions, the programmer only has to learn the function, what the function does, and then place code in the program to call that function. These functions are call API function.
So using PB you can do some powerful programming inside of an EXE or DLL without ever creating and using a GUI. A DLL a file that executable code line an EXE, but the DLL is different in that it contains functions that an EXE can call to make use of.
so the first lesson is that you can write a program in PB that does not even have to use a GUIi to perform some kind to task.
One reason for not using a GUI in a program, is you may want your program to monitor something in the background.
LESSON TWO
It is very important to understand that when anything that happens, that is an an event and when an event happens, that event creates a message. An example of that is a click of a mouse is an event. When you click the mouse, that event creates and sends a message. In order for a programmer to make use of a gui for a user, the programmer has to catch the message and interpet the message. So ever action(event) creates a message and the program reacts on the message.
LESSON THREE
Now onto using a graphical user interface(GUIi)
In most cases your program will be displaying information or interacting with a user.
In order to do this, you must create a window.
In PB that window is called a dialog, so in order to create a window, you use the dialog commands.
We are now going to refer to a window as a dialog.
In helping to understand what a dialog is all about, i like to think of a dialog as just like a dialog between two people. One person talks to the other person, one person talks, the other person listens. There is always a message sending and a message being received.
When a dialog displays text or graphics or plays music, a user is the person listening with their senses. The user maybe listening with sound coming to their ears, seeing the display with their eyes, feeling with hands(maybe the user has a game that vibrates a joystick), but it comes down to one thing, the user is listening.
Now, on the other side of that dialog is the user.
When the user uses a keyboard, mouse, joystick, or any kind of input, it creates a message and sends the message to the dialog. The dialog is now listening. The dialog can also listen using any of the computers senses This is just my way of explaining something in a non technical way, but i hope you understand the dialog listens also.
So that is how i picture a dialog in my mind, communications having the ability to go both ways.
So now we understand a window is a dialog.
LESSON FOUR
It has taken me so long to really understand the above. It is already time for a break. If you can understand the above now without programming in PB, you are much farther than it took me several years to understand the fundmentals of windows programming.
While taking that break and read the glossary that is in the back of your book on Powerbasic Compiler for Windows.
I am very serious about the next sentence and you should be tool
If you do not have a book, get a book written by Powerbasic for the compiler Powerbasic Compiler for Windows, if you are not going to get a book and do not need a book, then you are much to advanced to be needing to read this on how to program for windows GUI, i can not help you, maybe you need to be helping me.
Read the glossary at the back of the books slowly so we can communicated much better. Maybe not to other people, but the glossary is worth the price of the book itself, although not very long, it condenses down subjects need for the beginner. There is even a line in the book itself that suggest this very act. If you are a beginner or new to powerbasic compiler and you are not going to get a book, i really believe you are not interested that much about programming with powerbasic. The best thing you can do for yourself is purchase a book and you will not be sorry that you ever did.
lesson five will be a new post in this thread and while i am writing it, if you do not have that book, go ahead and order it.
Comment