calling win.draw() of parent rather than child - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

calling win.draw() of parent rather than child

I've seen a lot of interesting graphic displays, but I haven't been able to program this:

You have 2 windows. One window in front of the other.
Your computer already calls draw() of each window based on position from top to bottom.

What if, the window on top were to have a draw() where part of it or all of it calls the draw() of the window behind it? Wouldn't that be cool? Like invisibility. Then we can call these windows actually windows where you see through them.

just a thought.
Sign In or Register to comment.