🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #601

Re: Help! No input event, dispatcher, new string to draw, etc...

#601
From: Joerg Ringel
Date: Sat, 26 Sep 1992 12:09
36 lines
1355 bytes
>void App::action() 
>{
>  cout << "type in a new string";
>  cin >> buf;
>// ?????????????? how do I tell Patch I have new label? ?????????
>  patch_ = new Patch(label_);
>  patch_->redraw();
>}


You must write the following:

  patch_->body(kit->label("new text"));
  patch_->reallocate();
  patch_->redraw();


Instead of the Dispatcher you can use the a second time the
Patch class and say redraw when you need to redraw it,
perhaps you must reallocate it first.

If you don't come into the IV event loop you must insert
a loop like this

  Event e;

  while (Session::instance()->pending()) {
    Session::instance()->read(e);
    e.handle();
  }


I hope it will help you,

bye,
		Joerg		(ringel@forwiss.uni-passau.de)
Technical Details
Message-ID: <1992Sep26.120938.14182@tom.rz.uni-passau.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringel
References: <1992Sep25.223435.27176@chpc.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringel
From: ringel@forwiss.uni-passau.de (Joerg Ringel)
Subject: Re: Help! No input event, dispatcher, new string to draw, etc...
Message-ID: <1992Sep26.120938.14182@tom.rz.uni-passau.de>
Sender: news@tom.rz.uni-passau.de (News-Operator)
Nntp-Posting-Host: eldron.forwiss.uni-passau.de
Organization: University of Passau, Germany
References:  <1992Sep25.223435.27176@chpc.org>
Distribution: na
Date: Sat, 26 Sep 1992 12:09:38 GMT
Lines: 38