19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

430 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

DrawMode Color Produced<br />

1 &H00000000& (Black)<br />

2 Not draw And Not display (inverse of #15)<br />

3 display And Not draw (inverse of #14)<br />

4 Not draw (inverse of #13)<br />

5 draw And Not display (inverse of #12)<br />

6 Not display (inverse of #11)<br />

7 draw Xor display<br />

8 Not draw Or Not display (inverse of #9)<br />

9 draw And display<br />

10 Not (draw Xor display) (inverse of #7)<br />

11 display (transparent)<br />

12 display Or Not draw<br />

13 draw (draw color)<br />

14 draw Or Not display<br />

15 draw Or display<br />

16 &H00FFFFFF& (White)<br />

DRAWSTYLE When DrawWidth is 1 for a form or picture box (the default), the property<br />

DrawStyle determines whether graphics are drawn using a solid line or some combinations<br />

of dots <strong>and</strong> dashes. Use a DrawStyle of 0 (the default) for solid lines, 1 for dashed lines, 2<br />

for dotted lines, 3 for dash-dot lines, or 4 for dash-dot-dot lines. A DrawStyle of 5 produces<br />

“invisible” graphics.<br />

When thick lines are drawn as a result of setting DrawWidth to values greater than 1,<br />

graphics are always drawn using solid lines. In this case, DrawStyle can be used either to center<br />

the thick line over where a line with a DrawWidth of 1 would be drawn or, when drawing<br />

closed figures like ellipses <strong>and</strong> rectangles, to place the thick line just inside where the line<br />

with a DrawWidth of 1 would be drawn. To draw thick graphics inside the normal closed figure,<br />

use a DrawStyle of 6. DrawStyles 1 through 4 will center thick graphics over the normal<br />

location.<br />

DRAWWIDTH The property DrawWidth determines the width in pixels of the lines that are<br />

drawn by graphics methods. The default is 1 pixel. Values from 1 to 32,767 are permitted.<br />

DRIVE The Drive property of a drive list box gives the contents of the currently selected<br />

item.<br />

ENABLED The property Enabled determines whether or not a form or control responds to<br />

events. If the Enabled property of a form or control is set to True (the default), <strong>and</strong> if an event<br />

occurs for which an event procedure has been written, the event procedure will be executed.<br />

When the Enabled property of a form or control is set to False, all events relating to that control<br />

are ignored; no event procedures are executed.<br />

END The statement End terminates the execution of the program <strong>and</strong> closes all files. Also,<br />

the statements End Def, End Function, End If, End Select, End Sub, <strong>and</strong> End Type are used<br />

to denote the conclusion of multiline function definitions, function blocks, If blocks, Select<br />

Case blocks, Sub procedures, <strong>and</strong> user-defined, record-type declarations.<br />

ENDDOC The method Printer.EndDoc is used to indicate that the document currently being<br />

printed is complete <strong>and</strong> should be released to the printer.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!