View previous topic :: View next topic |
Author |
Message |
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jun 27, 2002 9:13 pm Post subject: White checkbox label |
|
|
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 |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Jun 28, 2002 3:50 am Post subject: |
|
|
I don't think it's a bug... Your original code works just fine for me.
-Garrett |
|
Back to top |
|
|
Dr. Dread Professional Member
Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Fri Jun 28, 2002 8:28 am Post subject: |
|
|
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 |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jun 28, 2002 12:47 pm Post subject: White Checkbox Label |
|
|
I have Windows XP Home _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Jun 28, 2002 4:52 pm Post subject: |
|
|
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 |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Jun 28, 2002 6:24 pm Post subject: |
|
|
Shows up white for me in Windows 98. _________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Fri Jun 28, 2002 8:09 pm Post subject: |
|
|
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 |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jun 28, 2002 11:29 pm Post subject: White Checkbox Label |
|
|
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. I agree with PGWARE on this... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sat Jun 29, 2002 12:28 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|