Copyright (C) 2000-2012 |
Manpages DIALOGSection: User Contributed Perl Documentation (1)Updated: 2000-04-18 Index Return to Main Contents NAMETk::Dialog - Create modal dialog and wait for a response.SYNOPSIS$dialog = $parent->Dialog(-option => value, ... );DESCRIPTIONThis procedure is part of the Tk script library - its arguments describe a dialog box. After creating a dialog box, Dialog waits for the user to select one of the buttons either by clicking on the button with the mouse or by typing return to invoke the default button (if any). Then it returns the text string of the selected button.While waiting for the user to respond, Dialog sets a local grab. This prevents the user from interacting with the application in any way except to invoke the dialog box. See Show() method. The following option/value pairs are supported:
METHODS
EXAMPLE$dialog = $mw->Dialog(-text => 'Save File?', -bitmap => 'question', -title => 'Save File Dialog', -default_button => 'Yes', -buttons => [qw/Yes No Cancel/);KEYWORDSbitmap, dialog, modal, messageBox
IndexThis document was created by man2html, using the manual pages. Time: 19:04:32 GMT, April 19, 2024 |