10 More Discussions You Might Find Interesting
1. Programming
Does anyone know how to change the font size into a larger one, in a basic Motif application? (1 Reply)
Discussion started by: JenniferKuiper
1 Replies
2. Solaris
An application was getting built using Motif 1.2 that used come along Solaris 6 OS for compiling and linking. Application is run using Motif 2.1 on Solaris 10 and it is working fine.
Application compilation and linking is working fine on Solaris 10 with Motif 2.1.0 but running the application... (0 Replies)
Discussion started by: shafi2all
0 Replies
3. Solaris
Hello,
I used to compile and link the code on Solaris 6 using Motif 1.2 (that used to come as part of Operating System)
I would like to use the same version of Motif 1.2 for compilation and linking on Solaris 10. But Solaris 10 has Motif 2.1.0 as default.
Is Motif 1.2 supported on... (0 Replies)
Discussion started by: shafi2all
0 Replies
4. Shell Programming and Scripting
I'm trying to make a gui to automate several tasks. I have already set up most of the labels and buttons, but am stuck on this...
I need to ssh into a specific password protected server, when attempting to login using the button on my gui, it asks for the password on the terminal window instead... (0 Replies)
Discussion started by: melloyello294
0 Replies
5. HP-UX
hello everyone,
where can i download motif compatible with HP-UX 11.11.which motif version i have to use.
can i use openmotif 2.3 for HP-UX 11.11.
pls somebody suggest a solution .it's very urgent.
any help appreciated.
with regards,
Srini (0 Replies)
Discussion started by: mannam srinivas
0 Replies
6. Programming
Hi everyone, I am new in motif programming and I want to learn how to program it. I use Fedora core 3 and every time I compile the program, there are always some errors appear. One of the errors said that I do not have the Xm/xxxx.h However, I do not know precisely how to install header files. I... (0 Replies)
Discussion started by: qqq
0 Replies
7. Shell Programming and Scripting
I was reluctently content with the fact that I am stuck using ksh88 until, perderabo, I believe, posted in another thread that Solaris provides ksh93 in the form of dtksh (/usr/dt/bin/dtksh). I read the man page for dtksh and it shows scads of X related information.
I have run some test... (9 Replies)
Discussion started by: tmarikle
9 Replies
8. Programming
Can somebody help me...
I have insalled RedHat 7.3 on my computer
and there is motif 2.x and i want to compile a cource code but it doesn't work it says
Xm/PushB.h not found..something like that..
I'm trying like this :
gcc -o x x.c -lXm -lXt -lX11
pleas help me (3 Replies)
Discussion started by: CreamHarry
3 Replies
9. Programming
Do you think that Motif programming is old...should I learn it... (3 Replies)
Discussion started by: CreamHarry
3 Replies
10. Programming
I am very glad to be a member of you.
where can i look for the resource programe examples about motif?
please help me!Thanks a lot. (3 Replies)
Discussion started by: q30
3 Replies
label(n) Tk Built-In Commands label(n)
__________________________________________________________________________________________________________________________________________________
NAME
label - Create and manipulate label widgets
SYNOPSIS
label pathName ?options?
STANDARD OPTIONS
-activebackground -disabledforeground -padx
-activeforeground -font -pady
-anchor -foreground -relief
-background -highlightbackground -takefocus
-bitmap -highlightcolor -text
-borderwidth -highlightthickness -textvariable
-compound -image -underline
-cursor -justify -wraplength
See the options manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
[-height height] Specifies a desired height for the label. If an image or bitmap is being displayed in the label then the value is in
screen units (i.e. any of the forms acceptable to Tk_GetPixels); for text it is in lines of text. If this option is not specified, the
label's desired height is computed from the size of the image or bitmap or text being displayed in it. [-state state] Specifies one of
three states for the label: normal, active, or disabled. In normal state the button is displayed using the foreground and background
options. In active state the label is displayed using the activeForeground and activeBackground options. In the disabled state the dis-
abledForeground and background options determine how the button is displayed. [-width width] Specifies a desired width for the label. If
an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to Tk_GetPixels);
for text it is in characters. If this option is not specified, the label's desired width is computed from the size of the image or bitmap
or text being displayed in it.
_________________________________________________________________
DESCRIPTION
The label command creates a new window (given by the pathName argument) and makes it into a label widget. Additional options, described
above, may be specified on the command line or in the option database to configure aspects of the label such as its colors, font, text, and
initial relief. The label command returns its pathName argument. At the time this command is invoked, there must not exist a window named
pathName, but pathName's parent must exist.
A label is a widget that displays a textual string, bitmap or image. If text is displayed, it must all be in a single font, but it can
occupy multiple lines on the screen (if it contains newlines or if wrapping occurs because of the wrapLength option) and one of the charac-
ters may optionally be underlined using the underline option. The label can be manipulated in a few simple ways, such as changing its
relief or text, using the commands described below.
WIDGET COMMAND
The label command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget.
It has the following general form:
pathName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for label widgets:
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the label com-
mand.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available
options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then
the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value
returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget
option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted
by the label command.
BINDINGS
When a new label is created, it has no default event bindings: labels are not intended to be interactive.
EXAMPLE
# Make the widgets
label .t -text "This widget is at the top" -bg red
label .b -text "This widget is at the bottom" -bg green
label .l -text "Left
Hand
Side"
label .r -text "Right
Hand
Side"
text .mid
# Lay them out
pack .t -side top -fill x
pack .b -side bottom -fill x
pack .l -side left -fill y
pack .r -side right -fill y
pack .mid -expand 1 -fill both
SEE ALSO
labelframe(n), button(n), ttk::label(n)
KEYWORDS
label, widget
Tk 4.0 label(n)