View previous topic :: View next topic |
Author |
Message |
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 01, 2003 5:45 pm Post subject: STYLE bug and VDS 5 |
|
|
On Windows XP computers using the XP Theme and VDS 5, there seems
to be a bug where the background part of the style doesn't show. Try the
example below using any of the standard Windows XP Themes (not classic)
and using Windows XP and VDS 5:
Code: | DIALOG CREATE,Bug Example,-1,0,220,55,NOMIN
DIALOG ADD,STYLE,STYLE1,,,,GREEN,WHITE
DIALOG ADD,TEXT,TEXT1,7,6,,,On computers running Windows XP this will@cr()not appear as a green box but rather simply@cr()white text.,,STYLE1
DIALOG SHOW
wait event
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Aug 01, 2003 5:47 pm Post subject: |
|
|
Oops just saw this was already posted. This works fine with VDS 4 though.
No problems there.
http://forum.vdsworld.com/viewtopic.php?t=1652 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Aug 11, 2003 11:19 am Post subject: |
|
|
This is because text elements have to be transparent for correct appearance with WinXP themes. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Aug 11, 2003 1:52 pm Post subject: |
|
|
jules wrote: | This is because text elements have to be transparent for correct appearance with WinXP themes. |
I don't understand.
If I add the "TRANSPARENT" style to the code it doesn't work any better.
But when I run that exact code with VDS 4 there is no problem. Only in
VDS 5. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Mon Aug 11, 2003 2:33 pm Post subject: |
|
|
Windows XP by default paints labels and most child controls the parent color when you use a manifest file/new commctrls, you can override this in Delphi though and set the 'ParentColor' property to false and by using a ThemeManager component to override Windows XP common controls management. Should then be possible to change within the vds source. |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Aug 11, 2003 3:25 pm Post subject: |
|
|
I am using a .manifest file with the VDS 4 compiled executable and testing
it in the IDE. There is no problem there. It must have been something
changed in VDS between 4 and 5.
I have to compile without a manifest in VDS 5 but it's just odd with VDS 4
even with a manifest there is no problem. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Mon Aug 11, 2003 3:49 pm Post subject: |
|
|
I'm pretty sure VDS 4 was not using the commctrls correctly either, it was just sticking the manifest file in there without worrying about all the controls and following the Windows XP themes correctly. The new way it draws controls is actually correct even though it's producing an undesirable effect for your program. Try it with any other langauge, delphi, c and you'll see that the labels are supposed to be the parent color. Again there are ways to overcome this but not currently with VDS, you have to take control of the windows theme management and set controls individually to allow modifications or not. |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Aug 11, 2003 4:00 pm Post subject: |
|
|
If this is eventually "fixed", would it be possible to also include a way to
set a background for a checkbox label? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
|