forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


STYLE bug and VDS 5

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 5:45 pm    Post subject: STYLE bug and VDS 5 Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 01, 2003 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Aug 11, 2003 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Aug 11, 2003 1:52 pm    Post subject: Reply with quote

jules wrote:
This is because text elements have to be transparent for correct appearance with WinXP themes.


I don't understand. Confused

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
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Mon Aug 11, 2003 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Aug 11, 2003 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Mon Aug 11, 2003 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Aug 11, 2003 4:00 pm    Post subject: Reply with quote

If this is eventually "fixed", would it be possible to also include a way to
set a background for a checkbox label? Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group