0% found this document useful (0 votes)
2 views

HAND OUT Programming - Button Attributes

The document provides a list of options and descriptions for configuring button attributes in a graphical user interface. Each option includes details such as background color, foreground color, border width, command function, font, dimensions, and other visual properties. It also includes information on how to handle text display and interaction states for the button.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HAND OUT Programming - Button Attributes

The document provides a list of options and descriptions for configuring button attributes in a graphical user interface. Each option includes details such as background color, foreground color, border width, command function, font, dimensions, and other visual properties. It also includes information on how to handle text display and interaction states for the button.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Sr.

N Option & Description


o.
1 Activebackground
activebackground Background color when the button is under the cursor.

2 Activeforeground
Foreground color when the button is under the cursor.
3 Bd
Border width in pixels. Default is 2.
4 Bg
Normal background color.
5 Command
Function or method to be called when the button is clicked.
6 Fg
Normal foreground (text) color.
7 Font
Text font to be used for the button's label.
8 Height
Height of the button in text lines (for textual buttons) or pixels (for images).

9 Highlightcolor
The color of the focus highlight when the widget has focus.
10 Image
Image to be displayed on the button (instead of text).
11 Justify
How to show multiple text lines: LEFT to left-justify each line; CENTER to center
them; or RIGHT to right-justify.
12 Padx
Additional padding left and right of the text.
13 Pady
Additional padding above and below the text.
14 Relief
Relief specifies the type of the border. Some of the values are SUNKEN, RAISED,
GROOVE, and RIDGE.
15 State
Set this option to DISABLED to gray out the button and make it unresponsive.
Has the value ACTIVE when the mouse is over it. Default is NORMAL.

16 Underline
Default is -1, meaning that no character of the text on the button will be
underlined. If nonnegative, the corresponding text character will be underlined.

17 Width
Width of the button in letters (if displaying text) or pixels (if displaying an
image).
18 Wraplength
If this value is set to a positive number, the text lines will be wrapped to fit
within this length.

# 00 to FF 00 to FF 00 to FF
CODE: RED amount GREEN BLUE
“Hexadecimal” amount amount

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy