Window API [NEW TOPIC]
danielsv03 07 May 2017
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 by danielsv03, 07 May 2017 - 04:40 PM.
Would window API be the right choise? and can someone explain how window is usefull etc thanks!
//Daniel
Edited by danielsv03, 07 May 2017 - 04:40 PM.
danielsv03 07 May 2017
CLNinja 07 May 2017
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.
danielsv03 07 May 2017
CLNinja, on 07 May 2017 - 04:12 PM, said:
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
danielsv03 07 May 2017
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
any help would be helpful
//Daniel
CLNinja 07 May 2017
danielsv03, on 07 May 2017 - 04:38 PM, said:
CLNinja, on 07 May 2017 - 04:12 PM, said:
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
danielsv03 07 May 2017
CLNinja, on 07 May 2017 - 04:59 PM, said:
danielsv03, on 07 May 2017 - 04:38 PM, said:
CLNinja, on 07 May 2017 - 04:12 PM, said:
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
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