Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

layout manager graphic problem  RSS feed

 
Micah Wedemeyer
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible for a layout manager to do graphics stuff (draw lines, circles, etc) on its parent container during the layoutContainer() method? I'd like to add some lines and circles every time a container is laid out (resized, etc.), so it seemed that putting that stuff directly into the layout manager was the best idea. However, the lines flash, then disappear, as if the container clears itself after painting them.
Micah
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I personally do not think the layout manager is the place for that. It is for just what the name implies laying out the components not for drawing.
 
Micah Wedemeyer
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree, but I just cannot seem to find the right place for it. Right now, we are just doing custom painting in the paint() mehtod for the containers, but if we had a general purpose way of doing it, it would be much nicer.
I'll keep at it.
Micah
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!