Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new window

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
Hi all, is there any chance for opening a new window on a button click, so that I can write in the button command of my current window. thanq.
 
You can put any valid sequence of Tcl commands as the parameter for the -command option of a button. So, if I understand your question correctly, you might do something like:

button .b -text <whatever> -command {
toplevel .newWindow
pack [entry .newWindow.e -textvariable bt] -side top
set bt <whatever you want>
}

Is this what you're after?

Bob Rashkin
rrashkin@csc.com
 
hey, that's exactly wat I wanted to do. It's working. thanx a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top