Jump to content




Window API Problems :(

api

2 replies to this topic

#1 Nicba1010

  • Members
  • 3 posts

Posted 13 July 2014 - 03:00 PM

So, I've benn doing some work, been trying to make a storage program.
Full src: http://pastebin.com/Ru3A2nFe
But, when I do this
alertWindows[par1].setVisible(false)
alertWindows is a window array

It simply does not hide it!
But I can write to it, change text color...
Please help me
Sincerely, Roberto

#2 jf908

  • New Members
  • 1 posts

Posted 13 July 2014 - 05:01 PM

Using .setVisible(false) does not actually undraw your window as it says on the wiki page.

You have to draw something over the top of it for it to disappear.

#3 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 13 July 2014 - 06:12 PM

I believe setVisible does not erase the on screen characters, it simply stops farther renders.
alertWindows[par1].write( "hello" )  --#writes hello
alertWindows[par1].setVisible( false )  --#does nothing visible
alertWindows[par1].write( "world" )  --#does nothing visible

However, if you have another window below it you want to see, you can use window.redraw()





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users