From: Keith Seitz <kseitz@firetalk.com>
To: Nicholas_Karagas@cirilium.com
Cc: insight@sourceware.cygnus.com
Subject: Re: modal dialog boxes
Date: Wed, 21 Jun 2000 08:40:00 -0000 [thread overview]
Message-ID: <3950E1E8.227512D9@firetalk.com> (raw)
In-Reply-To: <OF3F41C3B0.646A4016-ON07256904.00765580@cirilium.com>
Nicholas_Karagas@cirilium.com wrote:
>
> Hello again...
>
> This time my problem is with modal dialog boxes (modal.tcl). How can I
> pass the on_top parameter to the post method of ModalDialog? For instance,
> I want the ignorable warning message dialog boxes (warning.tcl) to always
> pop to the top, or else they can get covered by another Insight window, and
> there's problems (this is all under NT, btw). I tried making the "after
> 500 keep_raised $top" in ModalDialog::post unconditional, and this works
> great for the warning dialogs, but it breaks the combo boxes in the target
> selection dialog box (and probably numerous other places). Can anyone
> help?
>
Ummm... You mean you want to ModalDialog::post to execute the "after 500
keep_raised $top" stuff?? Tcl has default values, just like C++.
ModalDialog::post is declared as:
class ModalDialog {
public method post {{on_top 0}} {}
}
This is the same as the following in C++:
class ModalDialog
{
public:
void post (bool on_top = false};
};
It works, the same way, to:
set dialog [MyDialog <arguments>]
$dialog post 1; # on_top is 1
$dialog post; # on_top defaults to 0
Keith
prev parent reply other threads:[~2000-06-21 8:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-20 14:40 Nicholas_Karagas
2000-06-21 8:40 ` Keith Seitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3950E1E8.227512D9@firetalk.com \
--to=kseitz@firetalk.com \
--cc=Nicholas_Karagas@cirilium.com \
--cc=insight@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).