611 612




Visual Basic 6 Black Book:Working With Graphics
function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { var end = document.cookie.indexOf (";", j); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(j, end)); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } var m1=''; var gifstr=GetCookie("UsrType"); if((gifstr!=0 ) && (gifstr!=null)) { m2=gifstr; } document.write(m1+m2+m3);            Keyword Title Author ISBN Publisher Imprint Brief Full  Advanced      Search  Search Tips Please Select ----------- Components Content Mgt Certification Databases Enterprise Mgt Fun/Games Groupware Hardware IBM Redbooks Intranet Dev Middleware Multimedia Networks OS Prod Apps Programming Security UI Web Services Webmaster Y2K ----------- New Titles ----------- Free Archive To access the contents, click the chapter and section titles. Visual Basic 6 Black Book (Publisher: The Coriolis Group) Author(s): Steven Holzner ISBN: 1576102831 Publication Date: 08/01/98 function isIE4() { return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)=='4') ); } function bookMarkit() { var url="http://www.itknowledge.com/PSUser/EWBookMarks.html?url="+window.location+"&isbn=0"; parent.location.href=url; //var win = window.open(url,"myitk"); //if(!isIE4()) // win.focus(); } Search this book:  














Previous
Table of Contents
Next




Layering Graphics With The AutoRedraw And ClipControls Properties
When you create graphics in Visual Basic, bear in mind that graphical controls and labels, nongraphical controls, and graphics methods appear on different layers. The behavior of these layers depends on three things: the AutoRedraw property, the ClipControls property, and whether graphics methods appear inside or outside the Paint event. Usually the layers of a form or other container are as follows:

•  Front layer—Nongraphical controls like command buttons, checkboxes, and file controls.
•  Middle layer—Graphical controls and labels.
•  Back layer—Drawing space for the form or container. This is where the results of graphics methods appear.

Anything in one layer covers anything in the layer behind it, so graphics you create with the graphical controls appear behind the other controls on the form, and all graphics you create with the graphics methods appear below all graphical and nongraphical controls. Combining settings for AutoRedraw and ClipControls and placing graphics methods inside or outside the Paint event affects layering and the performance of the application. You can find the effects created by different combinations of AutoRedraw and ClipControls and placement of graphics methods in Table 18.3.
Table 18.3 Layering with AutoRedraw and ClipControls.

AutoRedraw
ClipControls
Methods In/Out Paint Event
Description

True
True (default)
Paint event ignored
Normal layering.

True
False
Paint event ignored
Normal layering. Forms with many controls that do not overlap may paint faster because no clipping region is calculated or created.

False (default)
True (default)
In
Normal layering.

False
True
Out
Nongraphical controls in front. Graphics methods and graphical controls appear mixed in the middle and back layers. Not recommended by Microsoft.

False
False
In
Normal layering, affecting only pixels that were previously covered or that appear when resizing a form.

False
False
Out
Graphics methods and all controls appear mixed in the three layers. Not recommended by Microsoft.





Previous
Table of Contents
Next






Products |  Contact Us |  About Us |  Privacy  |  Ad Info  |  Home Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited.



Wyszukiwarka

Podobne podstrony:
609 611
0 611 235 708 GBH 7 DE
Vzduchovka Slavia 612
612,17,artykul
611 (2)
0 611 238 703 GBH 2 24 DFR
Motyw ojczyzny w literaturze staropolskiej I literatury ~612
MAXa0 i 612
609 612
Ch18 pg593 612
0 611 222 703 GBH 4 DSC

więcej podobnych podstron