66 posts
Location
Minecraft world
Posted 07 May 2017 - 11:31 AM
Hello! So i want to make like dragable multishell windows in my Graphical Operative system.
Would window API be the right choise? and can someone explain how window is usefull etc thanks!
//Daniel
Edited on 07 May 2017 - 03:40 PM
38 posts
Posted 07 May 2017 - 12:37 PM
Checkout my Oblox OS. The code should be easy enough to understand.
66 posts
Location
Minecraft world
Posted 07 May 2017 - 02:28 PM
Checkout my Oblox OS. The code should be easy enough to understand.
I'm looking at it right now but its pretty hard for me too understand
Thoo i'wd be happy if someone like had a titorial or something
194 posts
Posted 07 May 2017 - 05:12 PM
Making dragable windows is out of my realm, but i get the basic premise. You need to have windows setup (So yes, window API would be the best idea for part of it) that listen for click events, and then tell if you've let go or not. If you havnt and you move your cursor, move the window to the proper position.
66 posts
Location
Minecraft world
Posted 07 May 2017 - 05:38 PM
Making dragable windows is out of my realm, but i get the basic premise. You need to have windows setup (So yes, window API would be the best idea for part of it) that listen for click events, and then tell if you've let go or not. If you havnt and you move your cursor, move the window to the proper position.
But is it possible to like run programs inside a window instead of a tab
66 posts
Location
Minecraft world
Posted 07 May 2017 - 05:43 PM
SO this contiunes on my last topic if window api for be the right choise for multishell windowed programs but is it possibel to like run programs inside windowes maybe by usin window API or something like that insstead of tabs. I know this is possbile by simply having the program code inside the program that is runing the windows but in my case i can't do that
any help would be helpful :)/>
//Daniel
1220 posts
Location
Earth orbit
Posted 07 May 2017 - 05:49 PM
Yes, it is, take a look at
Lyqyd OS
194 posts
Posted 07 May 2017 - 05:59 PM
Making dragable windows is out of my realm, but i get the basic premise. You need to have windows setup (So yes, window API would be the best idea for part of it) that listen for click events, and then tell if you've let go or not. If you havnt and you move your cursor, move the window to the proper position.
But is it possible to like run programs inside a window instead of a tab
Yes, its completely possible. If you create a window with the window API and redirect term to that, anything that happens will effectively be limited to the area of that box.
66 posts
Location
Minecraft world
Posted 07 May 2017 - 06:12 PM
Making dragable windows is out of my realm, but i get the basic premise. You need to have windows setup (So yes, window API would be the best idea for part of it) that listen for click events, and then tell if you've let go or not. If you havnt and you move your cursor, move the window to the proper position.
But is it possible to like run programs inside a window instead of a tab
Yes, its completely possible. If you create a window with the window API and redirect term to that, anything that happens will effectively be limited to the area of that box.
So i tried to do somethinglike this
myWindow = window.create(term.current(),15,5,20,10)
myWindow.setBackgroundColor(colors.white)
myWindow.clear()
term.redirect(mywindow)
print("hello")
But it says like invalid redirect
797 posts
Posted 07 May 2017 - 06:20 PM
You wrote mywindow not myWindow in the term.redirect call.
66 posts
Location
Minecraft world
Posted 07 May 2017 - 06:23 PM
You wrote mywindow not myWindow in the term.redirect call.
Thanks!
8543 posts
Posted 07 May 2017 - 07:11 PM
Threads merged. Please stick to one topic for series of related questions.