Re: Manifest bug in Win32Lip 0.60.4
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 24, 2004
- 585 views
CoJaBo wrote: > > Run this demo in Win XP using a manifest file: > }}} <eucode> > include Win32lib.ew > without warning > > > -------------------------------------------------------------------------------- > -- Window Window1 > constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300, > 0, 0 ) > constant PushButton2 = createEx( PushButton, "Button", Window1, 8, 8, 88, 28, > 0, 0 ) > constant Group3 = createEx( Group, "Group", Window1, 8, 44, 308, 204, 0, 0 ) > constant PushButton4 = createEx( PushButton, "Button in a group", Group3, 12, > 16, 88, 28, > 0, 0 ) > constant Group5 = createEx( Group, "Group in a group", Group3, 8, 56, 148, 60, > 0, 0 ) > constant PushButton6 = createEx( PushButton, "Button in a group in a group", > Group5, 4, 20, > 136, 28, 0, 0 ) > constant VScroll8 = createEx( VScroll, "Disabled scroll", Window1, 372, 28, > 16, 148, 0, 0 > ) > setEnable( VScroll8, False ) > --------------------------------------------------------- > > > WinMain( Window1,Normal ) > </eucode> {{{ > > "Button" and "Group" look fine, but the rest are fairly garbled. Well "fairly garbled" might be a bit strong, I suspect. The buttons inside groups are being drawn by Windows as if WS_EX_TRANSPARENT was set on them. This means that the area they occupied is drawn as a solid black background then the button is correctly drawn on top of that, thus giving it a solid black border. The nested group control has two issues. The caption is the wrong font size, and the group border is being drawn underneath the caption. I've tried all sorts of things to get around these but failed so far. So I'll keep trying but any hints are most welcome. The third issue is that a disabled scroll bar has being rendered with the same color as its background, thus making it disappear (except for the up/down arrows). This one I've found a fix for. -- Derek Parnell Melbourne, Australia