Re: [WIN] Win32lib v0.55 RText problem
- Posted by ddparnell at bigpond.com Feb 21, 2001
- 458 views
Hi Jim, the current version v0.55.1 divides controls into those having Button Face Color and those having Window Color. This was done because some controls looked wrong under the older scheme were all had Button face color. However, I can see from your request that if the parent window doesn't have ButtonFace color ('cos you ran setWindowBackColor()), then some controls are now the "wrong" color when created. To remedy this, I propose that certain controls take their parent's color when created. Others like EditText and MleText will still have Window Color. As a workaround, you could always run setWindowBackColor() on controls to fix this scheme before rendering the controls. object ParentColor ParentColor = getControlInfo(ChildWin, {CONTROLINFO_bcolor}) ParentColor = ParentColor[1] Label1 = create( RText, "Enter earliest YEAR to process", ChildWin, 18, 30, 250, 20, 0 ), setWindowBackColor( Label1, ParentColor ) ------ Derek Parnell Melbourne, Australia (Vote [1] The Cheshire Cat for Internet Mascot) ----- Original Message ----- From: "Jim Duffy" <futures8 at earthlink.net> To: "EUforum" <EUforum at topica.com> Sent: Wednesday, February 21, 2001 11:35 AM Subject: [WIN] Win32lib v0.55 RText problem > > Hi all, > > Recently switched from using Win32lib v.50 to v.55 to be able to use doEvent(). > > The background color of the RText control is now a shaded gray, whereas in v. 0.50 > it took the background color of the window in which it exists. I much prefer the > v .50 appearance (i.e., RText having the background color of its window). > > Here's the line in question: > > Label1 = create( RText, "Enter earliest YEAR to process", ChildWin, 18, 30, 250, 20, 0 ), > > I suspect that the very last parameter (0 in this case) has something to do > with the result I'm getting, but I'm not sure. > > Any suggestions as to how I can get back to RText having the color of the window, > and not the shaded gray, will be much appreciated. > > Thanks. > > Regards, > > Jim > >