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 


White checkbox label

 
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: Thu Jun 27, 2002 9:13 pm    Post subject: White checkbox label Reply with quote

When using Visual DialogScript 4.5, I encountered a bug with a checkbox label if I try to make it white. Try the example below:
Code:

dialog CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
  dialog ADD,STYLE,WHITE,,,,,WHITE
  dialog ADD,CHECK,CBOX1,168,11,284,18,Show at the Windows Start Up,1,,,WHITE
  dialog SHOW


Of course, you can make a workaround...Dr. Dread created the example below:
Code:

  dialog CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
  dialog ADD,STYLE,WHITE1,,,,BLACK,WHITE
  dialog ADD,CHECK,CBOX1,168,11,18,18,,1,,,WHITE1
  dialog ADD,TEXT,TEXT1,170,30,,,Show at Windows Start Up,,WHITE1,CLICK
  dialog SHOW
:evloop
  wait event
  %%event = @event()
  goto %%event
:TEXT1click
  %a = @sendmsg(@win(~CBOX1),$0F0,0,0)
  if @equal(%A,1)
    %%dummy = @sendmsg(@win(~CBOX1),$0F1,0,0)
  else
    %%dummy = @sendmsg(@win(~CBOX1),$0F1,1,0)
  end
  goto evloop
:CLOSE

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Jun 28, 2002 3:50 am    Post subject: Reply with quote

I don't think it's a bug... Your original code works just fine for me.

-Garrett
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Jun 28, 2002 8:28 am    Post subject: Reply with quote

I still think that it's a bug that Freezingfire stumpled upon. No matter which kind of STYLE I use for the CHECK dialog
element, it just does not take it. But if I use exactly the same line of code and change it to another type of dialog
element (such as COMBO), everything is OK!

The great question is just: Why does it work for Garrett, but not for me and Freezingfire?? Anyone else tried tris?
Which OS do you have? - it's not working on my XP system at any rate.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jun 28, 2002 12:47 pm    Post subject: White Checkbox Label Reply with quote

I have Windows XP Home
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Jun 28, 2002 4:52 pm    Post subject: Reply with quote

I'm running WinME at the moment. I haven't tried it on any of the other boxes here which have 98SE on them.

-Garrett
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Jun 28, 2002 6:24 pm    Post subject: Reply with quote

Shows up white for me in Windows 98.
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Fri Jun 28, 2002 8:09 pm    Post subject: Reply with quote

It does the same thing for me (Windows XP Home). This is not a bug in VDS, as Delphi does the exact same thing. Maybe Microsoft changed something with the common controls library which causes this. Try to include a manifest file and see if it fixes it.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jun 28, 2002 11:29 pm    Post subject: White Checkbox Label Reply with quote

This bug seems to only take effect when being used with a manifest file. For example, VDS uses a manifest file, therefore, when running the programs from VDS, the XP style is incorporated into the dialog. However, when I compiled the program, I ran it, and it worked perfectly. I then tested it by including a manifest file with the program, and the white checkbox label dissappeared. Confused I agree with PGWARE on this...
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sat Jun 29, 2002 12:28 pm    Post subject: Reply with quote

The checkbox copies the dialog's background color. To use a custom color for the
checkbox background, use a custom color for the full dialog:

Code:

  DIALOG CREATE,Dialog,-1,0,240,160,COLOR YELLOW
  DIALOG ADD,CHECK,CHECK1,40,15,,,CHECK1
  DIALOG SHOW
  wait event


Tommy
Back to top
View user's profile Send private message Send e-mail 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