DialogBox - Online Linux Manual PageSection : 3pm
Updated : 2020-11-09
Source : perl v5.32.0
Note : User Contributed Perl Documentation
NAMETk::DialogBox − create and manipulate a dialog screen.
SYNOPSIS use Tk::DialogBox
...
$d = $top−>DialogBox(−title => "Title", −buttons => ["OK", "Cancel"]);
$w = $d−>add(Widget, args)−>pack;
...
$button = $d−>Show;
DESCRIPTIONDialogBox is very similar to Dialog except that it allows any widget in the top Frame. DialogBox creates two Frames, top and bottom. The bottom Frame shows all the specified Buttons, lined up from left to right. The top Frame acts as a container for all other widgets that can be added with the add() method.
OPTIONSThe options recognized by DialogBox are as follows: −title Specify the title of the DialogBox. If this is not set, then the name of the program is used. −buttons The button names to display in the bottom Frame. This is a reference to an array of strings containing the text to put on each Button. There is no default value for this. If you do not specify any button names, no Buttons are displayed. −default_button Specifies the default Button that is considered invoked when user presses <Return> on the DialogBox. This Button is highlighted. If no default Button is specified, then the first element of the array whose reference is passed to the −buttons option is used as the default. −cancel_button Specifies the Button that is considered invoked when the user closes the DialogBox using the window manager's close button. If the −cancel_button option is not given, and if there's only one button configured, then this button is also used as the cancel button. Otherwise no button is considered as the cancel button; in such a case Show just returns undef when the user closes the DialogBox. −command A callback which is executed after invoking an action to close the DialogBox, but before restoring focus and grab information. The selected button is passed as the first argument. −focus Specify the widget to receive the initial focus after popping up the DialogBox. By default the −default_button widget receives the initial focus. −showcommand A callback which is executed before displaying the DialogBox and waiting for user input. The DialogBox itself is passed as the first argument.
METHODSDialogBox supports only two methods as of now: add(widget, options) Add the widget indicated by widget. Widget can be the name of any Tk widget (standard or contributed). options are the options that the widget accepts. The widget is advertized as a subwidget of DialogBox. The name of widget is lower-cased and used as the advertised name. If multiple instances of widget are created in the DialogBox, then only the last one gets the advertised name. add() does not automatically pack() or grid() widget into the DialogBox. Show(?−global?) Displays the Dialog until the user invokes one of the Buttons in the bottom Frame. If the grab type −global is specified, then Show uses that grab; otherwise it defaults to a local grab. Returns the name of the Button invoked. The actual Dialog is shown using the Popup method. Any other options supplied to Show are passed to Popup, and can be used to position the Dialog on the screen. Please read Tk::Popup for details. Exit() Close the dialogbox, by emulating a click on the default button.
ADVERTISED WIDGETStop The subwidget reference to the top half of the DialogBox widget, the Frame containing widgets added by the add method. bottom The subwidget reference to the bottom half of the DialogBox widget, the Frame containing the Button widgets. B_``button−text'' Individual subwidget references to the Buttons in the DialogBox widget. The subwidget name is the string B_ concatenated with the Button's −text value.
BUGSThere is no way of removing a widget once it has been added to the top Frame, unless you access the top subwidget and go through the child widgets. There is no control over the appearance of the Buttons in the bottom Frame nor is there any way to control the placement of the two Frames with respect to each other.
AUTHORRajappa Iyer rsi@earthling.net This code is distributed under the same terms as Perl. 0
Johanes Gumabo
Data Size : 15,203 byte
man-Tk::DialogBox.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 192,220
Visitor ID : :
Visitor IP : 3.139.93.168 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Tk::DialogBox.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Tk::DialogBox.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Tk::DialogBox.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Tk::DialogBox.3pm|43|'br══─}─══ |'br══─}─══
)