mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Scroll-area can not be opaque #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Scrollareas do not have an opaque setting, therefore always drawing its
background color.

This creates problems if you place widgets within the scrollarea that you
want to have as opaue=false.

Version guichan 0.8.0

Should add opaque variable to the scrollarea class and check it before
calling drawBackground(graphics) in draw().

There could also be more widget that could benefit from having an opaque
setting. 

Original issue reported on code.google.com by dejan.b...@gmail.com on 10 Apr 2008 at 10:47

GoogleCodeExporter commented 9 years ago
Should have been reported as an Enhancement but I have no idea how to change 
that.

Original comment by dejan.b...@gmail.com on 10 Apr 2008 at 10:49

GoogleCodeExporter commented 9 years ago
But since drawBackground (and all other drawing methods I think) are virtual, 
there
is no problem in creating your own ScrollArea class that doesn't draw its 
background.
Usually you'll want to subclass anyway to apply your own style to the GUI, so I 
don't
see this as a huge issue.

But of course it can be useful for those happy with how the ScrollArea looks by 
default.

Original comment by b.lindeijer on 11 Apr 2008 at 5:56

GoogleCodeExporter commented 9 years ago
Has been added.

Original comment by olof.nae...@gmail.com on 12 Apr 2008 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by b.lindeijer on 15 May 2008 at 2:58