Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


BoxColor in 2nd box not Full Size

Keywords: 	  boxcolor

Question:

In the following code, I want the 2nd box color to fill the 2nd box, but it's only coloring a smaller area of box #2. What's up?
BoxesUp("0,0,1000,1000", @zoomed) 
boxcolor (1, "0,0,128",4)
BoxCaption(1, "DialUp Networking Health Checkup Part 2 of 3")
BoxDrawRect( 1, "0,0,1000,1000", 2) 


BoxNew(2,"200,300,800,600",1)
BoxColor(2,"255,255,0",3)
BoxDrawRect( 2, "200,300,800,600", 2) 	  ;<== OLD value

BoxTextColor(2,"255,255,255")
BoxTextFont(2,"Times Roman",100,0,0) 
BoxDrawText(2, "300,381,700,365", "DialUp Networking Health Checkup Part 2 in progress.%@crlf%When completed with part 2, KSETUP will reboot%@CRLF%and automatically begin part 3.", @FALSE, 1)


Delay(5)

Answer:

The rectangle that you draw in the 2nd box needs to be drawn at 100% of the 2nd box size. Therefore, in virtual units, it needs to be "0,0,1000,1000",e.g.:
BoxesUp("0,0,1000,1000", @zoomed) 
boxcolor (1, "0,0,128",4)
BoxCaption(1, "DialUp Networking Health Checkup Part 2 of 3")
BoxDrawRect( 1, "0,0,1000,1000", 2) 


BoxNew(2,"200,300,800,600",1)
BoxColor(2,"255,255,0",3)
BoxDrawRect( 2, "0,0,1000,1000", 2) 		  ;<== NEW value at 100% size of 2nd box
;BoxDrawRect( 2, "200,300,800,600", 2) 	  ;<== OLD value

BoxTextColor(2,"255,255,255")
BoxTextFont(2,"Times Roman",100,0,0) 
BoxDrawText(2, "300,381,700,365", "DialUp Networking Health Checkup Part 2 in progress.%@crlf%When completed with part 2, KSETUP will reboot%@CRLF%and automatically begin part 3.", @FALSE, 1)


Delay(5)

Article ID:   W14138
Filename:   BoxColor in 2nd Box not Full Size.txt