🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #459

Re: best approach for popup windows

#459
From: Billy & Monica
Date: Thu, 27 Jul 2000 00:00
41 lines
2065 bytes
trying using a global variable

using a boolean variable

ie calander:boolean;

on startup set calendar to false

calander:=false;

on double click goto calendar subroutine

procedure calander.prog;
begin
if calander=true then exit; {check to see if calendar is running}
calander:=true; {set variable to true ie calendar is running}
{do whatever your doing}
calander:=false; {allow the calendar subroutine to be called again}
end;

hope this helps

karl

On Wed, 26 Jul 2000 18:31:13 GMT, mscasey@fnord.io.com (Casey
Claiborne) wrote:

>Hi,
>
>I have an applet that when double-clicking on a date entry field, a
>calendar pops up that will let the user choose a date. The problem is if
>the user clicks on the entry field more than once, then there will be 2 or
>more calendars present. 
>
>How can one design code so that when double-clicking on the field, the
>calendar will appear once?
>
>Any help, hints or advice on the matter is truly appreciated.
>
>TIA
>Casey ;-)
Technical Details
Message-ID: <apouns8gb2k61i4ujd0103h5eijonjishj@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <R7Gf5.378815$MB.5979510@news6.giganews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3a053d1d18a3e31c
X-Google-Attributes: gid111d45,public
X-Google-Thread: fd817,3a053d1d18a3e31c
X-Google-Attributes: gidfd817,public
X-Google-Thread: 112ac2,3a053d1d18a3e31c
X-Google-Attributes: gid112ac2,public
X-Google-Thread: 10a146,3a053d1d18a3e31c
X-Google-Attributes: gid10a146,public
From: Billy & Monica <president@whitehouse.gov>
Subject: Re: best approach for popup windows
Date: 2000/07/27
Message-ID: <apouns8gb2k61i4ujd0103h5eijonjishj@4ax.com>
X-Deja-AN: 651619796
Content-Transfer-Encoding: 7bit
References: <R7Gf5.378815$MB.5979510@news6.giganews.com>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@theplanet.net
X-Trace: news6.svr.pol.co.uk 964742430 16632 62.136.14.91 (28 Jul 2000 00:00:30 GMT)
Organization: Customer of Planet Online
Mime-Version: 1.0
NNTP-Posting-Date: 28 Jul 2000 00:00:30 GMT
Newsgroups: comp.lang.java.programmer,alt.comp.lang.borland-delphi,netscape.public.mozilla.ui,borland.public.jbuilder.java.swing