Michael Leonard | Ken Script - Window Programming, Step 1 - RAW / Unedited video. @InternetOneOS | Uploaded 11 years ago | Updated May 09 2024
First thing you will notice is two windows, opened side by side, one is the running program which I'm making, and the one to the right is a Notepad or text editor which allows me to change/make the program. Both are working/using the same file.
I start of by plugging in the required window code library, which it self loads a multitude of other code files. ~plugin is one of most important commands in the Ken Script language.
Next, I create a new Desktop window, which would be the first level window in an operating system. all other windows will be embedded into the Desktop.
Then I tell the program to place the newly created window to the top left corner, and to have the width and height to have 500 and 200 pixels respectfully. I use the F2 key on my keyboard to save the file, then I refresh my program.
I then change the px symbol (which is short for pixel), and change it to the percent sign, save/refresh my program, and the newly created window now takes on 50% width and height. When using percentages, the window will be that percentage, even while resizing it. Using pixels, the window will stay that size, with or without resizing.
That's it for that video. All windows start with something that looks like a blank layer.
*Note 1 - This is a RAW/Unedited video of the working beta version. Released version will have changes/improvements.
*Note 2 - This video was recorded at the 1080p resolution, so if you have a small screen with lower resolution, you will not see the video the way it was intended. The only fix would be to record a cropped or zoomed in version at a lower resolution, I will post those versions at a later time.
Part 2 - http://www.youtube.com/watch?v=KlULzFDSgOU
First thing you will notice is two windows, opened side by side, one is the running program which I'm making, and the one to the right is a Notepad or text editor which allows me to change/make the program. Both are working/using the same file.
I start of by plugging in the required window code library, which it self loads a multitude of other code files. ~plugin is one of most important commands in the Ken Script language.
Next, I create a new Desktop window, which would be the first level window in an operating system. all other windows will be embedded into the Desktop.
Then I tell the program to place the newly created window to the top left corner, and to have the width and height to have 500 and 200 pixels respectfully. I use the F2 key on my keyboard to save the file, then I refresh my program.
I then change the px symbol (which is short for pixel), and change it to the percent sign, save/refresh my program, and the newly created window now takes on 50% width and height. When using percentages, the window will be that percentage, even while resizing it. Using pixels, the window will stay that size, with or without resizing.
That's it for that video. All windows start with something that looks like a blank layer.
*Note 1 - This is a RAW/Unedited video of the working beta version. Released version will have changes/improvements.
*Note 2 - This video was recorded at the 1080p resolution, so if you have a small screen with lower resolution, you will not see the video the way it was intended. The only fix would be to record a cropped or zoomed in version at a lower resolution, I will post those versions at a later time.
Part 2 - http://www.youtube.com/watch?v=KlULzFDSgOU