
srhadden
Novice
Dec 29, 2011, 3:22 PM
Post #2 of 2
(653 views)
|
|
Re: [srhadden] Anyone familiar with TCL/TK and DialogBoxes?
[In reply to]
|
Can't Post
|
|
I figured this out eventually. The second button in the dialogbox is referred to as "button1" internally. I wrote a routine to grab a reference to it, and then I could set the state of it however I wanted. sub getDBButtonRef { my($dialogBox,$nameOfButton) = @_; foreach ($dialogBox->children) { $name = $_->name; $diag_child = $_; if($name =~ /bottom/) { foreach $d ($diag_child->children) { print $d->name; if($d->name =~ /$nameOfButton/){ return $d; } } } } return undef; }
(This post was edited by srhadden on Dec 29, 2011, 3:23 PM)
|