From: Kevin A. <al...@se...> - 2005-08-02 17:50:49
|
On Aug 2, 2005, at 10:29 AM, bra...@om... wrote: > > Alex Tweedly <al...@tw...> wrote on 08/01/2005 05:31:59 PM: > > >> bra...@om... wrote: > > > >> One thing my users miss now that we've transitioned away from > > >FileMaker is the color. > >> In FileMaker, specific regions of a form were colored to help = break > >> up the window > >> into visual groupings. This was accomplished in FileMaker through=20= > the use of > >> a rectangle widget. > >> Does anyone have any recommendations for how to bring more color = to > >> PythonCard layouts? > > > imageButton with no file (image) specified. set to visible, > > disabled, border =3D none and set the backgroundColor to what you > > want. =A0(just watch your layer order =A0:-) > > That sounds like a nifty solution, but it didn't work when I tried it=20= > on > the Mac. It just turns gray and is unresponsive to changes in the > backgroundColor or foregroundColor. If I set the border to = transparent, > the whole image button turns transparent (still gray), but when the > border is None, the image button obscures any overlapping widgets, > even the ones that are supposedly in front. > > The Image widget worked a little better, in that I could change the > color, but it still obscures all overlapping widgets. > > I'm using PythonCard .82 (latest CVS) and wxPython 2.5.3 on Mac OS=20 > 10.4.2 > with Python 2.3.5. Since I'm at home today, I don't have access to my > work PC, but tomorrow I can try it on Windows XP. IIRC, z-order and overlapping widgets is going to be a problem on the=20 Mac in the foreseeable future. wx doesn't really support overlapping=20 widgets anyway, it is just that there are certain situations you can=20 get away with them on Windows and Linux. Another possibility might be=20 to use a background image which has the rectangles you want and will be=20= drawn instead of the normal background window pattern; see the proof=20 sample for an example of the use of a background image. The downside is=20= that the background image you create will need to be tweaked as your=20 layout changes, window grows, etc. but it should work on all platforms. ka= |