Re: how to create a dialog that is hidden/shown rather than created/destroyed

Liste des GroupesRevenir à cl tcl 
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.tcl
Date : 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).

Date Sujet#  Auteur
21 Jun 24 * how to create a dialog that is hidden/shown rather than created/destroyed7Mark Summerfield
21 Jun 24 +* Re: how to create a dialog that is hidden/shown rather than created/destroyed2Mark Summerfield
21 Jun 24 i`- Re: how to create a dialog that is hidden/shown rather than created/destroyed1Mark Summerfield
21 Jun 24 +* Re: how to create a dialog that is hidden/shown rather than created/destroyed2Mark Summerfield
21 Jun 24 i`- Re: how to create a dialog that is hidden/shown rather than created/destroyed1Rich
21 Jun 24 `* Re: how to create a dialog that is hidden/shown rather than created/destroyed2Rich
22 Jun 24  `- Re: how to create a dialog that is hidden/shown rather than created/destroyed1Mark Summerfield

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal