Sujet : Re: how to create a dialog that is hidden/shown rather than created/destroyed
De : mark (at) *nospam* qtrac.eu (Mark Summerfield)
Groupes : comp.lang.tclDate : 21. Jun 2024, 12:58:56
Autres entêtes
Message-ID : <tIacnWqFmMSd9uj7nZ2dnZfqnPGdnZ2d@brightview.co.uk>
References : 1 2
User-Agent : Pan/0.154 (Izium; 517acf4)
On Fri, 21 Jun 2024 11:49:54 +0000, Mark Summerfield wrote:
I figured it out.
I replaced this:
catch { tkwait visibility $form }
with
catch {
tkwait visibility $form grab release $form
}
and now it works.
Actually, it doesn't work. Firstly it stops the Options form from being
modal. Secondly, if you leave it up you can click the main form or the
About button.
What I'm trying to do is create a show/hide form (so it preserves state
between appearances).