kmx > Win32-GUI-1.11 > Win32::GUI::DialogBox

Download:
Win32-GUI-1.11.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Win32::GUI::DialogBox - Create and manipulate Windows

DESCRIPTION ^

Just like Window, but with a predefined dialog box look: by default, a DialogBox can not be sized, has no maximize box and has -dialogui enabled (eg. interprets tab/enter/esc).

METHODS ^

Common methods apply to most windows, controls and resources.

new

new(%OPTIONS)

Creates a new DialogBox object. See new Win32::GUI::Window().

See also the common options.

EVENTS ^

Common events apply to most windows and controls.

Activate (Win32::GUI::Window)

Activate()

Sent when the window is activated.

Deactivate (Win32::GUI::Window)

Deactivate()

Sent when the window is deactivated.

InitMenu (Win32::GUI::Window)

InitMenu(MENU)

Sent when a menu is about to become active. It occurs when the user clicks an item on the menu bar or presses a menu key. This allows the application to modify the menu before it is displayed.

Maximize (Win32::GUI::MDIChild)

Maximize()

Sent when the window is maximized.

Maximize (Win32::GUI::Window)

Maximize()

Sent when the window is maximized.

Minimize (Win32::GUI::MDIChild)

Minimize()

Sent when the window is minimized.

Minimize (Win32::GUI::Window)

Minimize()

Sent when the window is minimized.

Paint (Win32::GUI::Window)

Paint(DC)

Sent when the window needs to be repainted.

Note that you get the DC of the window object in parameter, and then Validate() the DC to inform Windows that you painted the DC area (otherwise it will continue to call the Paint event continuously). Example:

  sub Graphic_Paint {
      my $DC = shift;
      $DC->MoveTo(0, 0);
      $DC->LineTo(100, 100);
      $DC->Validate();
  }

Resize (Win32::GUI::MDIChild)

Resize()

Sent when the window is resized.

Resize (Win32::GUI::Window)

Resize()

Sent when the window is resized.

Scroll (Win32::GUI::MDIChild)

Scroll(SCROLLBAR, OPERATION, POSITION)

Sent when one of the window scrollbars is moved. SCROLLBAR identifies which bar was moved, 0 for horizontal and 1 for vertical.

OPERATION can be compared against one of the following constants: SB_LINEUP, SB_LINELEFT, SB_LINEDOWN, SB_LINERIGHT, SB_PAGEUP SB_PAGELEFT, SB_PAGEDOWN, SB_PAGERIGHT, SB_THUMBPOSITION, SB_THUMBTRACK, SB_TOP, SB_LEFT, SB_BOTTOM, SB_RIGHT, SB_ENDSCROLL

Related messages: WM_HSCROLL, WM_VSCROLL

Scroll (Win32::GUI::Window)

Scroll(SCROLLBAR, OPERATION, POSITION)

Sent when one of the window scrollbars is moved. SCROLLBAR identifies which bar was moved, 0 for horizontal and 1 for vertical.

OPERATION can be compared against one of the following constants: SB_LINEUP, SB_LINELEFT, SB_LINEDOWN, SB_LINERIGHT, SB_PAGEUP SB_PAGELEFT, SB_PAGEDOWN, SB_PAGERIGHT, SB_THUMBPOSITION, SB_THUMBTRACK, SB_TOP, SB_LEFT, SB_BOTTOM, SB_RIGHT, SB_ENDSCROLL

Related messages: WM_HSCROLL, WM_VSCROLL

Terminate (Win32::GUI::MDIChild)

Terminate()

Sent when the window is closed. The event should return -1 to terminate the interaction and return control to the perl script; see Dialog().

Terminate (Win32::GUI::Window)

Terminate()

Sent when the window is closed. The event should return -1 to terminate the interaction and return control to the perl script; see Dialog().

VERSION ^

Documentation for Win32::GUI v1.11 created 08 Nov 2014

This document is autogenerated by the build process. Edits made here will be lost. Edit docs/per_package.tpl instead.

SUPPORT ^

Homepage: http://perl-win32-gui.sourceforge.net/.

For further support join the users mailing list from the website at http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users. There is a searchable list archive at http://sourceforge.net/p/perl-win32-gui/mailman/perl-win32-gui-users/.

COPYRIGHT and LICENCE ^

Copyright (c) 1997..2014 Aldo Calpini. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: