147 posts
Location
England
Posted 30 October 2012 - 03:36 PM
I want to create a window that pops up in the program so the program is in the background. But I am not sure how to draw the window and how to remove it again without leaving like a blank space on the screen. Help
1548 posts
Location
That dark shadow under your bed...
Posted 30 October 2012 - 04:22 PM
trust me man. that is an absolute nightmare….. best to leave that until you are very experienced
147 posts
Location
England
Posted 30 October 2012 - 05:23 PM
trust me man. that is an absolute nightmare….. best to leave that until you are very experienced
I'm not trying to disrespect anyone but I have seen noobs do it. I am pretty good at understanding, if someone was to provide a written explanation on how to do it then I could probably have a go.
1548 posts
Location
That dark shadow under your bed...
Posted 30 October 2012 - 05:42 PM
weeeel you can make a basic one but when you say "how to remove it again without leaving like a blank space on the screen" it gets complicated. you have to design a screen logger or something which is rediculous
992 posts
Posted 30 October 2012 - 05:55 PM
if the program you are running has a redraw function a function that draws everything on the screen then you can have you program call this after the popup is gone.
This is complex but you can use any part of it in your program and there is a dialog Box function that might be of use to you.
http://www.computercraft.info/forums2/index.php?/topic/5509-advanced-computer-mouse-file-browser/basically structurer you code so that every piece that draws is in one function so you can call it after the box leaves the screen.
my program has a flag variable that tells it to redraw if true and not to if false.