Tải bản đầy đủ (.pdf) (72 trang)

Perl in a Nutshell phần 10 ppsx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (6.45 MB, 72 trang )

closest
Finds the item closest to the specified x,y coordinate.
enclosed
Finds all items that are completely enclosed within the specified bounding box.
overlapping
Finds all items that are even partially inside the specified bounding box.
withtag
Finds all items with the specified tag.
gettags
Retrieves a list of all tags associated with an item.
type
Determines the type of the specified item.
focus
Assigns the keyboard focus to the specified item.
postscript
Renders the canvas as PostScript. Options are:
-colormap => \@colorcommand
Specifies a PostScript command for setting color values.
-colormode => mode
Sets the mode to "color" (full color), "gray" (grayscale), or "mono" (black and
white).
-file => filename
The name of the file to store the PostScript output.
-fontmap => \@fontspec
Specifies a font name and point size.
-height => size
The height of the area to print.
-pageanchor => position
The anchor position of the page. Values are "center" (default), "n", "e", "s", and
"w".
-pageheight => height


The height of the printed page.
[Chapter 18] 18.12 The Canvas Widget
(10 of 12) [2/7/2001 10:38:00 PM]
-pagewidth => width
The width of the printed page.
-pagex => x
The x positioning point.
-pagey => y
The y positioning point.
-rotate => boolean
Whether to rotate to landscape orientation. Default is 0.
-width => size
The width of the area to print.
-x => x
The left edge of the canvas.
-y => y
The top edge of the canvas.
scale
Changes the scaling of the canvas or any individual items. For example, to scale the entire canvas
to half its dimensions:
$canvas->scale("all", 0, 0, .5, .5);
xview
Manipulates the canvas area in view. With no arguments, returns a list of two numbers between 0
and 1, defining what portion of the canvas is currently hidden on the left and right sides,
respectively. With arguments, the function of xview changes:
moveto
Moves the specified fraction of the text to the left of the visible portion.
scroll
Scrolls the canvas left or right by the specified number of units or pages. Used primarily as a
callback to a scrollbar; pressing on an arrow would move by units (characters), and pressing

on the trough would move by pages. The number is either 1 or -1, to move forwards or
backwards, respectively.
yview
Manipulates the canvas in view. With no arguments, returns a list of two numbers between 0 and
1, defining what portion of the canvas is currently hidden on the top and bottom, respectively.
With arguments, its function changes:
moveto
[Chapter 18] 18.12 The Canvas Widget
(11 of 12) [2/7/2001 10:38:00 PM]
Moves the specified fraction of the canvas area to the top of the visible portion.
scroll
Scrolls the canvas up or down by the specified number of units or pages. Used primarily as a
callback to a scrollbar; pressing on an arrow would move by units (lines), and pressing on
the trough would move by pages. The number is either 1 or -1, to move forwards or
backwards, respectively.
18.11 The Text Widget 18.13 The Scale Widget
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Chapter 18] 18.12 The Canvas Widget
(12 of 12) [2/7/2001 10:38:00 PM]
Chapter 18
Perl/Tk

18.13 The Scale Widget
Create a "slider" widget representing a numeric value with the Scale method.
$parent->Scale(options);
The standard configuration options that apply to Scale are: -activebackground, -background,
-bg, -borderwidth, -bw, -cursor, -font, -foreground, -fg, -highlightbackground,
-highlightcolor, -highlightthickness, -relief, -state, -takefocus, and -width.
Other options are:

-bigincrement => amount
The amount to change the slider when using large increments. Default is 0, which means 1/10 of
the scale.
-command => callback
Pointer to a function that will be called for every incremental change in the slider.
-digits => amount
The number of digits to keep when converting from a number to a string.
-from => n
Low end of the scale (default = 0).
-label => string
The string to use as a label for the slider.
-length => amount
The length of the slider.
-orient => direction
The orientation of the slider. Values can be either 'vertical' (default) or 'horizontal'.
-repeatdelay => milliseconds
Determines the number of milliseconds to hold down an arrow before it will auto-repeat. Default is
300.
[Chapter 18] 18.13 The Scale Widget
(1 of 3) [2/7/2001 10:38:02 PM]
-repeatinterval => milliseconds
Determines the number of milliseconds between auto-repeats once it is started. Default is 100.
-resolution => value
The increments that the scale will change by (default = 1).
-showvalue => boolean
Whether to show the current value of the slider (default = 1).
-sliderlength => amount
The size of the slider. Default is 25 pixels.
-tickinterval => n
The number of "ticks" to display for the slider. Default is 0 (no ticks).

-to => n
The top value of the scale (default is 100).
-troughcolor => color
Changes the color of the trough.
-variable => \$variable
Assigns the value of the slider to the specified variable.
18.13.1 Scale Methods
In addition to configure and cget, the following methods are defined for the Scale widget:
get
Returns the current value if given no arguments. If given x and y coordinates as the first and
second arguments, returns the value of the scale at that position.
set
Assigns the value associated with the scale.
coords
Returns the x and y coordinates associated with the value given in the first argument.
identify
Returns "slider", "trough1", "trough2", or "", depending on which part of the scale
corresponds to the given x, y coordinates.
18.12 The Canvas Widget 18.14 The Menubutton
Widget
[Chapter 18] 18.13 The Scale Widget
(2 of 3) [2/7/2001 10:38:02 PM]
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Chapter 18] 18.13 The Scale Widget
(3 of 3) [2/7/2001 10:38:02 PM]
Chapter 18
Perl/Tk

18.14 The Menubutton Widget

Create a menubutton with the Menubutton method. For example:
$mainwindow->Menubutton(-text => "File",
-menuitems => [ [ 'command' => "New",
"-command" => \&newfile,
"-underline" => 0 ],
[ 'command' => "Open",
"-command" => \&openfile,
"-underline" => 0 ],
"-",
[ 'command' => "Save",
"-command" => \&savefile,
"-underline" => 0 ],
[ 'command' => "SaveAs",
"-command" => \&saveasfile,
"-underline" => 4 ] ] );
The -menuitems option takes a list of lists describing the menu items. For each menu item, an embedded
anonymous list describes the type of menu item, the label to use, and the action to take when it is selected along
with any other options desired to configure the menu item. In this example, each of the menu items is the
'command' type, and we use the -command option for each item to point to the callback to execute when the
menu item is selected. We also use the -underline option to enable the user to select a menu item using
keystrokes. (The \[quotedbl]-" represents a separator between menu items.)
In addition to 'command', other types of menus are:
'cascade'
Embeds a cascade menu.
'checkbutton'
Treats the menu item as a checkbutton.
'command'
Executes a callback.
'radiobutton'
Treats the menu item as a radiobutton.

[Chapter 18] 18.14 The Menubutton Widget
(1 of 4) [2/7/2001 10:38:06 PM]
You can configure both the menu itself and the individual menu items. The configuration options that apply to
Menubutton are: -activebackground, -activeforeground, -anchor, -background, -bg,
-bitmap, -borderwidth, -bw, -cursor, -disabledforeground, -font, -foreground, -fg,
-height, -highlightbackground, -highlightcolor, -highlightthickness, -image,
-justify, -padx, -pady, -relief, -state, -takefocus, -underline, -width, and
-wraplength.
Other Menubutton options are:
-indicatoron => boolean
Determines whether or not to display an indicator.
-menu => $menu
Display the menu associated with $menu.
-menuitems => list
Specifies items to create in the menu as a list of lists. See the description at the beginning of this section.
-tearoff => boolean
Whether or not to allow the menu to be "torn off." Default is 1.
-text => string
Specifies the text to display as a label for the button.
-textvariable => \$variable
Points to the variable containing text to be displayed in the menubutton. Button text will change as
$variable does.
18.14.1 Menu Item Options
In addition to the menu itself, each individual menu item can be configured. The widget configuration options
that apply to menu items are: -activebackground, -background, -bg, -bitmap, -font,
-foreground, -fg, -image, -state, and -underline. Other options are:
-accelerator
Displays an accelerator key sequence for the menu item. The key sequence must be independently defined
with a bind.
-command => callback

Pointer to a function that will be called when the menu item is selected.
-indicatoron => boolean
Determines whether or not to display an indicator.
-label => string
The string to use as a label for the menu item.
-menu => $submenu
For a cascade menu, points to the menu to embed.
-offvalue => newvalue
[Chapter 18] 18.14 The Menubutton Widget
(2 of 4) [2/7/2001 10:38:06 PM]
For a checkbutton, specifies the value used when the checkbutton is "off."
-onvalue => newvalue
For a checkbutton, specifies the value used when the checkbutton is "on."
-selectcolor => color
For a checkbutton or radiobutton, color of the indicator when "on."
-selectimage => imgptr
For a checkbutton or radiobutton, defines the image to be displayed instead of text when the radiobutton is
"on". Ignored if -image is not used.
-value => value
For a radiobutton, sets $variable to the specified value when the radiobutton is selected (default is 1).
-variable => \$variable
Associates the value of the menu item to the specified variable.
18.14.2 Menubutton Methods
In addition to configure and cget, the following methods are defined for Menubutton widgets:
AddItems
Adds menu items to the end of the menu. The arguments to AddItems are lists configuring each menu
item, similar to the lists defined with the -menuitem option.
$menubutton->AddItems(["command" => "Print",
"-command" => \&printscreen ],
["command" => "Exit",

"-command" => \&exitclean ]);
command
Adds a command item to the end of the menu. The above example could have read:
$menubutton->command(-label => "Print", -command => \&printscreen);
$menubutton->command(-label => "Exit", -command => \&exitclean);
checkbutton
Adds a checkbutton item to the end of the menu.
$menubutton->checkbutton(-label => "Show Toolbar",
[-variable => \$toolbar");
radiobutton
Adds a radiobutton item to the end of the menu.
$menubutton->radiobutton(-label => "Red", -variable => \$color");
$menubutton->radiobutton(-label => "Blue", -variable => \$color");
separator
Adds a separator line to the end of a menu.
cascade
[Chapter 18] 18.14 The Menubutton Widget
(3 of 4) [2/7/2001 10:38:06 PM]
Adds a cascade item to the end of the menu.
menu
Returns a reference to the menu.
entrycget
Gets information on a menu entry given an index and option to query.
entryconfigure
Changes information on a specific menu item given an index.
18.13 The Scale Widget 18.15 The Menu Widget
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming |
Perl Cookbook ]
[Chapter 18] 18.14 The Menubutton Widget
(4 of 4) [2/7/2001 10:38:06 PM]

Chapter 18
Perl/Tk

18.15 The Menu Widget
Create a menu with the Menu method, to be displayed later with the post method.
$menu = $parent->Menu(options)
The standard configuration options that apply to Menu are: -activebackground,
-activeforeground, -background, -bg, -borderwidth, -bw, -cursor,
-disabledforeground, -font, -foreground, -fg, -relief, and -takefocus.
Other options are:
-activeborderwidth => amount
Sets the width of the edges for the active menu item.
-menuitems => list
Specifies items to create in the menu as a list of lists.
-postcommand => callback
The command to invoke before the menu is posted, for example, to update the state of the menu items.
-tearoff => boolean
Whether or not to allow the menu to be "torn off." Default is 1.
-selectcolor => color
Color of the selection box for checkbuttons or radiobuttons.
18.15.1 Menu Indexes
Menus have indexes for manipulating individual menu items. They are:
n
Menu item n, with 0 representing the first item.
'active'
The current menu item.
'end' or 'last'
The last menu item.
[Chapter 18] 18.15 The Menu Widget
(1 of 3) [2/7/2001 10:38:13 PM]

'none'
No menu item.
@n
The menu item closest to the y coordinate specified by n.
'pattern'
The first menu item whose text matches the pattern.
18.15.2 Menu Methods
In addition to configure and cget, the following methods are defined for the Menu widget:
add
Adds items to the end of a menu. The first argument is the type of menu item to add, and additional
arguments are options to the menu item. For example:
$menu = $mainwindow->Menu;
$menu->add( 'commnd', -label => "New", "-command" => \&newfile );
entrycget
Gets information on a specific menu item given an index.
entryconfigure
Changes information on a specific menu item given an index.
post
Displays the menu widget.
unpost
Removes the menu widget from display.
postcascade
Unposts a submenu and then posts the cascade menu associated with the menu item at the specified
index.
delete
Removes menu items from the menu.
index
Given a named index, returns the numerical index for that menu item.
insert
Inserts a menu item at the specified index. Same as add, except that it takes an index as the first

argument.
invoke
Invokes the menu item at the specified index as if it were selected.
type
[Chapter 18] 18.15 The Menu Widget
(2 of 3) [2/7/2001 10:38:13 PM]
Returns the type of menu item at the specified index.
yposition
Returns the y coordinate of the top-most pixel of the menu item.
18.14 The Menubutton
Widget
18.16 The Optionmenu
Widget
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming |
Perl Cookbook ]
[Chapter 18] 18.15 The Menu Widget
(3 of 3) [2/7/2001 10:38:13 PM]
Chapter 18
Perl/Tk

18.16 The Optionmenu Widget
Use the Optionmenu method to create an option menu, in which the selected item is the value
displayed. For example:
$mainwindow->OptionMenu(-textvariable => \$platform,
-options => [ [ "UNIX", "unix" ],
[ "Windows NT", "winnt" ],
[ "Macintosh", "mac" ] ]) -> pack;
The -options argument takes a list of menu items. If the description of the menu items that are
displayed are different from the values stored, the menu items are themselves written as two-item lists.
The standard configuration options that apply to Optionmenu are: -activebackground,

-activeforeground, -background, -bg, -bitmap, -borderwidth, -bw, -cursor,
-disabledforeground, -font, -foreground, -fg, -highlightbackground,
-highlightcolor, -highlightthickness, -image, -justify, -relief, -state,
-takefocus, -underline, -width, and -wraplength.
Other options are:
-command => callback
The command to execute when a selection is made, with its arguments being the values of the
-textvariable and -variable options.
-indicatoron => boolean
Determines whether or not to display an indicator.
-menu => $menu
Displays the menu associated with $menu.
-options => list
Lists the menu options, as described above.
-tearoff => boolean
Whether or not to allow the menu to be "torn off." Default is 1.
-text => string
[Chapter 18] 18.16 The Optionmenu Widget
(1 of 2) [2/7/2001 10:38:15 PM]
Specifies the text to display as a label for the option menu.
-textvariable => \$variable
Points to the variable containing text to be displayed in the option menu.
-variable => \$variable
Points to a variable containing a stored value, distinct from the value shown in the option menu.
18.15 The Menu Widget 18.17 The Frame Widget
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Chapter 18] 18.16 The Optionmenu Widget
(2 of 2) [2/7/2001 10:38:15 PM]
Chapter 18

Perl/Tk

18.17 The Frame Widget
Create a frame for enclosing other widgets using the Frame method. For example:
$parent->Frame( options )
The standard configuration options that apply to Frame are: -background, -bg, -borderwidth,
-bw, -cursor, -height, -highlightbackground, -highlightcolor,
-highlightthickness, -relief, -takefocus, and -width.
Other options are:
-class => name
The class associated with the frame.
-colormap => \$window
Specifies another window to share the colormap with. You can point to another window or use the
value "new" to specify a new colormap. Default is undef.
-label => string
The string to use as a label for the frame.
"-labelPack
Specifies options for the pack command.
-labelVariable => \$variable
Specifies a variable containing the text for the label.
-visual => type n
For the X Window System, changes the depth of colors.
18.16 The Optionmenu
Widget
18.18 The Toplevel Widget
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
[Chapter 18] 18.17 The Frame Widget
(1 of 2) [2/7/2001 10:38:17 PM]
Programming | Perl Cookbook ]
[Chapter 18] 18.17 The Frame Widget

(2 of 2) [2/7/2001 10:38:17 PM]
Chapter 18
Perl/Tk

18.18 The Toplevel Widget
Create a toplevel widget, displayed independently from the main window with the same decoration as the
window system, using the Toplevel method.
The standard configuration options that apply to Toplevel are: -background, -bg,
-borderwidth, -bw, -cursor, -height, -highlightbackground, -highlightcolor,
-highlightthickness, -relief, -takefocus, and -width.
Other options are:
-class => name
The class associated with the toplevel widget.
-colormap => \$window
Specifies another window to share the colormap with. You can point to another window or use the
value "new" to specify a new colormap. Default is undef.
-screen => screen
The screen to place the toplevel widget on.
-visual => type n
For the X Window System, changes the depth of colors.
18.18.1 Toplevel Methods
In addition to cget and configure, the following methods are supported by the Toplevel widget.
Note that since the MainWindow is a Toplevel widget, each of these methods applies to the
MainWindow as well.
aspect
Returns the constraints to the aspect of the window. The four-item list returned corresponds to the
minimum width, the minimum height, the maximum width, and the maximum height.
client
Assigns a name to the toplevel window.
[Chapter 18] 18.18 The Toplevel Widget

(1 of 3) [2/7/2001 10:38:20 PM]
colormapwindows
For the X Window System, passes a list of windows to the window manager that have private
colormaps. Controls the WM_COLORMAP_WINDOWS property.
command
For the X Window System, returns the command used to start the application.
deiconify
Displays an iconified window.
focusmodel
Gives up the keyboard focus to another window.
frame
Returns the ID of the parent widget as a hexadecimal string.
geometry
For the X Window System, gets the geometry of the toplevel widget.
grid
Changes the size of the toplevel's grid.
group
Makes the widget the group leader of a set of related windows.
iconbitmap
Identifies a bitmap to use as an icon when the window is iconified.
iconify
Iconifies the window.
iconmask
Specifies a mask for the icon bitmap.
iconname
Assigns text to be associated with the icon.
iconposition
Specifies a position for the icon on the desktop.
iconwindow
Specifies a widget to use in place of an icon when iconified.

maxsize
Specifies the largest size for the window.
minsize
[Chapter 18] 18.18 The Toplevel Widget
(2 of 3) [2/7/2001 10:38:20 PM]
Specifies the smallest size for the window.
overrideredirect
Removes window decorations from the window.
positionfrom
Returns either "program" or "user", to tell you whether the user or window manager requested its
current position.
protocol
Given one of the window managers WM_DELETE_WINDOW, WM_SAVE_YOURSELF, or
WM_TAKE_FOCUS, allows you to define a callback to execute when an associated event is
detected.
resizable
Takes boolean values representing whether the window can be resized in width and height,
respectively.
sizefrom
Returns either "program" or "user", to tell you whether the user or window manager requested its
current size.
state
Returns "normal", "iconic", or "withdrawn", indicating the current state of the window.
title
Changes the title at the top of the window.
transient
Indicates to the window manager that the window is transient.
withdraw
Makes the window non-visible.
18.17 The Frame Widget VIII. Win32

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Chapter 18] 18.18 The Toplevel Widget
(3 of 3) [2/7/2001 10:38:20 PM]
Part VIII

Part VIII: Win32
Chapter 19: Win32 Modules and Extensions
Chapter 20: PerlScript
18.18 The Toplevel Widget 19. Win32 Modules and
Extensions
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Part VIII] Win32
[2/7/2001 10:38:21 PM]
Chapter 19

19. Win32 Modules and Extensions
Contents:
Win32::Clipboard
Win32::Console
Win32::ChangeNotification
Win32::Eventlog
Win32::File
Win32::FileSecurity
Win32::Internet
Win32::IPC
Win32::Mutex
Win32::NetAdmin
Win32::NetResource

Win32::Process
Win32::Registry
Win32::Semaphore
Win32::Service
Win32::Shortcut
Win32 Extensions
OLE Automation
If you use Perl on a Win32 system, a number of extension modules are available to provide
Windows-specific functionality. Extension modules consist of a regular module written in Perl and a
library written in C or C++ that can implement native Windows calls. The core of available modules is
bundled together as lib-win32 on CPAN, and with ActivePerl, Activestate's version of Perl for Win32.
They provide such functionality as managing Windows processes, NT user administration, registry
modification, and OLE automation.
The Win32 modules were originally written for Windows NT systems, so much of the functionality of
the Win32 library is only applicable to Perl running on Windows NT. Many modules check to see which
system they are on before installing. Many of the NT-specific modules such as NetAdmin and EventLog
do not install at all on Windows 95. Modules like Registry do their best to work on both systems, despite
[Chapter 19] Win32 Modules and Extensions
(1 of 3) [2/7/2001 10:38:25 PM]
the differences in their registries.
This chapter covers most of the modules and extensions included in lib-win32 and distributed with
ActivePerl. Additional Windows modules are available at CPAN.
The following modules are described in this chapter:
Win32::Clipboard
Provide Windows clipboard interaction
Win32::Console
Provide Windows console interaction
Win32::ChangeNotification
Create and use ChangeNotification objects
Win32::EventLog

Read from and write to the Windows NT event log
Win32::File
Manage file attributes (read-only, system, hidden )
Win32::FileSecurity
Manage ACLs in Perl
Win32::Internet
Provide extensions for Internet services
Win32::IPC
Wait for objects (processes, mutexes, semaphores)
Win32::Mutex
Create and use mutexes
Win32::NetAdmin
Administer users and groups
Win32::NetResource
Manage resources (servers, file shares, printers)
Win32::Process
Start and stop Win32 processes
Win32::Registry
Read and manage the Win32 Registry
Win32::Semaphore
Create and use semaphores
[Chapter 19] Win32 Modules and Extensions
(2 of 3) [2/7/2001 10:38:25 PM]
Win32::Service
Manage Windows NT services
Win32::Shortcut
Provide shell link interface
The reference material for the Clipboard, Console, Internet, and Shortcut modules was graciously
provided by Aldo Capini, author and maintainer of many Win32 modules
( />The final section of this chapter describes OLE automation in Perl programs and details the Win32::OLE

modules.
19.1 Win32::Clipboard
The Win32::Clipboard module allows you to manipulate the Windows clipboard. You can use the
clipboard as an object with the following syntax:
$clip = Win32::Clipboard();
This functions as an implicit constructor. If you include a text string as an argument, that text will be
placed on the clipboard. You can just use the package-qualified method names instead of the object
syntax, since the clipboard is a single entity.
$text = Win32::Clipboard::Get();
Win32::Clipboard::Set("blah blah blah");
Win32::Clipboard::Empty();
Alternatively, you can use the clipboard as an object with this syntax:
$Clip = Win32::Clipboard();
$text = $Clip->Get();
$Clip->Set("blah blah blah");
$Clip->Empty();
VIII. Win32 19.2 Win32::Console
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl
Programming | Perl Cookbook ]
[Chapter 19] Win32 Modules and Extensions
(3 of 3) [2/7/2001 10:38:25 PM]
Chapter 19
Win32 Modules and Extensions

19.2 Win32::Console
Win32::Console implements the Win32 console and character mode functions. They give you full control
on the console input and output, including: support of off-screen console buffers (e.g., multiple screen
pages); reading and writing of characters, attributes, and whole portions of the screen; and complete
processing of keyboard and mouse events.
The new constructor is used to create a console object. It can take two forms:

$con = Win32::Console->new(standard_handle);
$con = Win32::Console->new(accessmode, sharemode);
The first form creates a handle to a standard channel. standard_handle can be one of
STD_OUTPUT_HANDLE, STD_ERROR_HANDLE, or STD_INPUT_HANDLE.
The second form creates a console screen buffer in memory, which you can access for reading and
writing as a normal console, and then redirect on the standard output (the screen) with Display. In this
case, you can specify accessmode to be GENERIC_READ, GENERIC_WRITE, or both, determining
the permissions you will have on the created buffer.
sharemode affects the way the console can be shared. It can be specified either as
FILE_SHARE_READ, FILE_SHARE_WRITE, or both. If you don't specify any of those parameters, all
four flags will be used.
Methods supported by the Win32::Console module are:
Alloc●
Attr●
Cls●
Cursor●
Display●
FillAttr●
FillChar●
Flush●
Free●
[Chapter 19] 19.2 Win32::Console
(1 of 3) [2/7/2001 10:38:28 PM]

×