Tk Configuration Options : MainWindow « GUI « Perl

Home
Perl
1.Array
2.CGI
3.Class
4.Data Type
5.Database
6.File
7.GUI
8.Hash
9.Language Basics
10.Network
11.Regular Expression
12.Report
13.Statement
14.String
15.Subroutine
16.System Functions
17.Win32
18.XML
Perl » GUI » MainWindow 
Tk Configuration Options
   
Option                 Use
-activebackground      background color when widget is active.
-activeborderwidth     width of border when widget is active.
-activeforeground      foreground color when widget is active.
-anchor                one of n, ne, e, se, s, sw, w, nw, or center.
-background            normal background color.
-bg                    normal background color, same as ¨Cbackground
-bitmap                bitmap to error, gray50, gray25, hourglass, info, questhead, question, or warning.
-borderwidth           widget border width.
-bd                    widget border width, same as ¨Cborderwidth
-cursor                cursor shape.
-disabledforeground    foreground color used when widget is disabled.
-exportselection       Allows for copy and paste between applications.
-font                  font. 
-foreground            foreground color.
-fg                    normal foreground color, same as Cforeground.
-highlightbackground   highlighted background color.
-highlightcolor        color of highlight rectangle.
-highlightthickness    thickness of highlight rectangle.
-image                 widget to display an image.
-insertbackground      background color for insertion cursor.
-insertborderwidth     width of border around insertion cursor.
-insertwidth           width of insertion cursor. 
-jump                  Makes scrolling widgets jump, rather than move smoothly, when set to true.
-justify               Controls how lines of text within the widget line up; set to left, center, or right;.
-orient                Controls orientation of scroll bars; set to horizontal or vertical.
-padx                  Pads extra space (in pixelshorizontally.
-pady                  Pads extra space (in pixelsvertically.
-relief                Controls 3D border around widget, one of raised, sunken, flat (no relief), ridge, solid, or groove.
-selectbackground      Sets background color for selected items.
-selectborderwidth     Controls width of border for selected items.
-selectforeground      Sets foreground color for selected items.
-text                  Controls text to be displayed.
-underline             Specifies index of character to underline, used for menu choices.

   
    
    
  
Related examples in the same category
1.Create empty window
2.Destroy a window in button action
3.tkphone - Phone another X Display and have a line-mode conversation
4.Create two windows
5.Setting Border Width for Frame
6.Advanced Hello World program using two MainWindows
7.Adding components to the Client Area of a Window with Menu Bar
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.