Tk::form

Tk::form is a Perl module with a geometry manager based on attachment rules.
Download

Tk::form Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nick Ing-Simmons
  • Publisher web site:
  • http://search.cpan.org/~ni-s/

Tk::form Tags


Tk::form Description

Tk::form is a Perl module with a geometry manager based on attachment rules. Tk::form is a Perl module with a geometry manager based on attachment rules.SYNOPSIS $widget->form?(args)? $widget->formOption?(args)?The form method is used to communicate with the form Geometry Manager, a geometry manager that arranges the geometry of the children in a parent window according to attachment rules. The form geometry manager is very flexible and powerful; it can be used to emulate all the existing features of the Tk packer and placer geometry managers (see pack, place). The form method can have any of several forms, depending on Option:$slave->form?(options)?Sets or adjusts the attachment values of the slave window according to the -option=>value argument pairs.-b => attachmentAbbreviation for the -bottom option.-bottom => attachmentSpecifies an attachment for the bottom edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.-bottomspring => weightSpecifies the weight of the spring at the bottom edge of the slave window. See "USING SPRINGS" below.-bp => valueAbbreviation for the -padbottom option.-bs => weightAbbreviation for the -bottomspring option.-fill => styleSpecifies the fillings when springs are used for this widget. The value must be x, y, both or none.-in => $masterPlaces the slave window into the specified $master window. If the slave was originally in another master window, all attachment values with respect to the original master window are discarded. Even if the attachment values are the same as in the original master window, they need to be specified again. The -in flag, when needed, must appear as the first flag of options. Otherwise an error is generated.-l => attachmentAbbreviation for the -left option.-left => attachmentSpecifies an attachment for the left edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.-leftspring => weightSpecifies the weight of the spring at the left edge of the slave window. See "USING SPRINGS" below.-lp => valueAbbreviation for the -padleft option.-ls => weightAbbreviation for the -leftspring option.-padbottom => valueSpecifies the amount of external padding to leave on the bottom side of the slave. The value may have any of the forms acceptable to Tk_GetPixels.-padleft => valueSpecifies the amount of external padding to leave on the left side of the slave.-padright => valueSpecifies the amount of external padding to leave on the right side of the slave.-padtop => valueSpecifies the amount of external padding to leave on the top side of the slave.-padx => valueSpecifies the amount of external padding to leave on both the left and the right sides of the slave.-pady => valueSpecifies the amount of external padding to leave on both the top and the bottom sides of the slave.-r => attachmentAbbreviation for the -right option.-right => attachmentSpecifies an attachment for the right edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.-rightspring => weightSpecifies the weight of the spring at the right edge of the slave window. See "USING SPRINGS" below.-rp => valueAbbreviation for the -padright option.-rs => weightAbbreviation for the -rightspring option.-t => attachmentAbbreviation for the -top option.-top => attachmentSpecifies an attachment for the top edge of the slave window. The attachment must specified according to "SPECIFYING ATTACHMENTS" below.-topspring => weightSpecifies the weight of the spring at the top edge of the slave window. See "USING SPRINGS" below.-tp => valueAbbreviation for the -padtop option.-ts => weightAbbreviation for the -topspring option.$master->formCheckThis method checks whether there is circular dependency in the attachments of the master's slaves (see "CIRCULAR DEPENDENCY" below). It returns the Boolean value TRUE if it discover circular dependency and FALSE otherwise.$slave->formForgetRemoves the slave from its master and unmaps its window. The slave will no longer be managed by form. All attachment values with respect to its master window are discarded. If another slave is attached to this slave, then the attachment of the other slave will be changed to grid attachment based on its geometry.$master->formGrid?(x_size, y_size)?When x_size and y_size are given, this method returns the number of grids of the $master window in a pair of integers of the form (x_size, y_size). When both x_size and y_size are given, this method changes the number of horizontal and vertical grids on the master window.$slave->formInfo?(-option)?Queries the attachment options of a slave window. -option can be any of the options accepted by the form method. If -option is given, only the value of that option is returned. Otherwise, this method returns a list whose elements are the current configuration state of the slave given in the same option-value form that might be specified to form. The first two elements in this list list are "-in=>$master" where $master is the slave's master window.$master->formSlavesReturns a list of all of the slaves for the master window. The order of the slaves in the list is the same as their order in the packing order. If master has no slaves then an empty string is returned. Requirements: · Perl


Tk::form Related Software