Debian Codegraph @

doc/html/tk_path_name.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <STYLE type="text/css">
4 H1 {color: black }
5 H2 {color: maroon }
6 H3 {color: #007090 }
7 A.head:link {color: #0060a0 }
8 A.head:visited {color: #3040c0 }
9 A.head:active {color: white }
10 A.head:hover {color: yellow }
11 A.red:link {color: red }
12 A.red:visited {color: maroon }
13 A.red:active {color: yellow }
14 </STYLE>
15 </HEAD>
16 <TITLE>Magic-7.3 Command Reference</TITLE>
17 <BODY BACKGROUND=graphics/blpaper.gif>
18 <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3">
19 <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1>
20
21 <H2><I>tk_path_name</I></H2>
22 <HR>
23 Execute a window command in the indicated window.
24 <HR>
25
26 <H3>Shortcuts:</H3>
27 <BLOCKQUOTE>
28 Key macro <B>:</B> (colon) implements the command <I>tk_path_name</I>
29 by prepending the window name to the command typed on the command
30 line when the command is executed. This action is, however,
31 transparent to the end user.
32 </BLOCKQUOTE>
33
34 <H3>Usage:</H3>
35 <BLOCKQUOTE>
36 <I>tk_path_name command_name</I> <BR><BR>
37 <BLOCKQUOTE>
38 where <I>command_name</I> is any valid window command
39 for the type of window indicated by <I>tk_path_name</I>.
40 </BLOCKQUOTE>
41 </BLOCKQUOTE>
42
43 <H3>Summary:</H3>
44 <BLOCKQUOTE>
45 The <I>tk_path_name</I> command is unique for each window
46 that is created in magic. The name of the window is
47 registered as a command name with the Tcl interpreter.
48 When the window name is used as a command, the arguments
49 of the command are passed to the <B>magic</B> command
50 interpreter to be executed in the context of that
51 specific window. Effectively, it is the same as typing
52 the macro "<B>:</B>" (colon) in a layout window, and then
53 typing the command on the command line. <P>
54
55 For example, the default first window that is created in
56 the Tcl GUI version of magic is <B>.layout1.magic</B>.
57 Upon creation, the command name <B>.layout1.magic</B> is
58 registered with the Tcl interpreter. Subsequently, any
59 command on the command-line will be executed in relation
60 to that window if it is specified as an option to the
61 <B>.layout1.magic</B> command:
62 <BLOCKQUOTE>
63 <B>.layout1.magic box 0 0 10 10</B>
64 </BLOCKQUOTE>
65 which is exactly the same as putting the X11 pointer
66 cursor in the layout window, typing the "<B>:</B>"
67 (colon) macro, then typing the command <B>box 0 0 10 10</B>
68 into the command line and hitting the <B>return</B> key. <P>
69
70 Similarly to layout windows, windows created with the
71 <B>specialopen</B> command have their Tk path names registered
72 as commands with the Tcl interpreter, and can be passed
73 commands recognized by the specific window type (e.g.,
74 netlist commands in the netlist special window).
75 </BLOCKQUOTE>
76
77 <H3>Implementation Notes:</H3>
78 <BLOCKQUOTE>
79 <I>tk_path_name</I> is implemented as a built-in command
80 in <B>magic</B> which is registered with the Tcl interpreter
81 when the window is created and unregistered when the
82 window is destroyed.
83 </BLOCKQUOTE>
84
85 <P><IMG SRC=graphics/line1.gif><P>
86 <TABLE BORDER=0>
87 <TR>
88 <TD> <A HREF=commands.html>Return to command index</A>
89 </TR>
90 </TABLE>
91 <P><I>Last updated:</I> October 16, 2004 at 1:54pm <P>
92 </BODY>
93 </HTML>