🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.tcl
Article #50

Re: menu

#50
From: Mariusz Marzec
Date: Thu, 09 Jun 2005 07:42
26 lines
1640 bytes
> Użytkownik "Googie" <googie@no.spam.org> napisał w wiadomości
news:d88o0q$o9$1@srv.cyf-kr.edu.pl...
> Tworzę sobie menu za pomoc? komendy: menu .m
> Potem dodaję do niego kilka pozycji.
> Następnie pokazuję to menu za pomoc?: .m post 20 20
>
> Działa. Ale...
>
> Problem w tym, że aby to menu zniknęło, to muszę co? z niego wybrać. Nie
> znika, gdy kliknię gdziekolwiek indziej - a nie zawsze mogę chcieć co?
> wybrać. Jak to zrobić?
>
> Platforma to Win2000.

Platforma też Win2000. Menu tworzę tak:

menu .s -tearoff 0
     .s add command -label {label1} -command {polecenie1}
     .s add command -label {label2} -command {polecenie2}

Wywołuję (z listbox'a):

bind kontrolka <Double-Button-1> {tk_popup .s %X %Y}

I gdy powinno to znika.
Technical Details
Message-ID: <d88rsf$hqc$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
References: <d88o0q$o9$1@srv.cyf-kr.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: "Mariusz Marzec" <mm_news@poczta.onet.pl>
Newsgroups: pl.comp.lang.tcl
Subject: Re: menu
Date: Thu, 9 Jun 2005 09:42:06 +0200
Organization: news.onet.pl
Lines: 27
Sender: mm_news@poczta.onet.pl@pa92.gryfice.sdi.tpnet.pl
Message-ID: <d88rsf$hqc$1@news.onet.pl>
References: <d88o0q$o9$1@srv.cyf-kr.edu.pl>
NNTP-Posting-Host: pa92.gryfice.sdi.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1118302927 18252 217.98.204.92 (9 Jun 2005 07:42:07 GMT)
X-Complaints-To: abuse@onet.pl
NNTP-Posting-Date: 9 Jun 2005 07:42:07 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit