FYI - there is one other issue that I have. The color of the
dLabel.Caption.
Using the light to darker gradient for the background, the color of the
dLabel.Caption becomes important depending on the location on the gradient.
Where the color is a light color the standard black color of the Caption
works. But as the label is placed lower on the gradient where the
background color is darker the standard black color of the text has less
contrast and becomes harder to read.
This is only an issue if I set the color combinations with a major
difference between the top color and bottom color (and the colors are
closer to black such as dark blue).
This idea of the gradient is to simulate the natural light source that
humans are accustomed to in daily life. I'm not to sure that it true
that the computer screen should simulate nature but there are lots of
'user design' people who claim that it should.
I'll post my results.
Johnf
On 09/17/2013 07:40 AM, John Fabiani wrote:
On 09/17/2013 07:31 AM, Ed Leafe wrote:
On Sep 17, 2013, at 9:27 AM, John Fabiani <[email protected]> wrote:
def onPaint(self, evt):
#trying to simulate the MS windows gradient background
dc = wx.PaintDC(self)
x = 0
y = 0
w, h = self.GetSize()
dc.GradientFillLinear((x, y, w, h), 'light blue',wx.Color(0,
100, 254), 1)
What is the advantage of this over the included drawGradient() method?
-- Ed Leafe
Hi Ed,
None that I could see. Of course I did not benchmark the routines. I
used wx.onPaint because I was hoping I'd get a different result and
that it would allow a dynamic color change as I resized the form. I
guess getting at a lower direct level seemed to be a better plan.
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance:
http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]