🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #943

IV 2.6 event handling

#943
From: William A. Hoffman
Date: Mon, 22 Apr 1991 19:05
36 lines
1108 bytes
I am using IV 2.6.

I need to check some IPC and io sockets in 
a Run method.

Here is my Run method:

void Tedit::Run () 
{
  Event e;
  int done = false;
  
  while(done != true)
    {
      // check sockets for new events and process if found
       selectSockets();

      // check Interviews events
      if(Check())
	{
	  Read(e);
	  Handle(e);
	  done = ButtonStates();
	}
    }
}

Without the if(Check()), the application waits for a new event
before processing the sockets.  With the if(Check()), pulldown
menus don't work.  They pulldown, but the highlight bar is not
seen.  

Is there anyway to do this in IV 2.6?

Bill Hoffman (hoffman@crd.ge.com)
Technical Details
Message-ID: <18758@crdgw1.crd.ge.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!nunki!hoffman

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!nunki!hoffman
From: hoffman@nunki.crd.ge.com (William A. Hoffman)
Newsgroups: comp.windows.interviews
Subject: IV 2.6  event handling
Keywords: Run, event, Read, Check, sockets
Message-ID: <18758@crdgw1.crd.ge.com>
Date: 22 Apr 91 19:05:41 GMT
Sender: news@crdgw1.crd.ge.com
Reply-To: hoffman@nunki.crd.ge.com (William A. Hoffman)
Lines: 36