delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/14/23:18:16

From: "Valkir" <jfd50 AT videotron DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Oriented Object
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <QMD54.242$87.15384@weber.videotron.net>
Date: Tue, 14 Dec 1999 22:12:07 -0500
NNTP-Posting-Host: 24.200.151.149
X-Complaints-To: abuse AT videotron DOT net
X-Trace: weber.videotron.net 945227952 24.200.151.149 (Tue, 14 Dec 1999 22:19:12 EST)
NNTP-Posting-Date: Tue, 14 Dec 1999 22:19:12 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hello!
How can I do fast and usefull evenmentiel object?
Like I my my desktop class define like that (it's not finish yet)

class cDesktop{
 private:
 public:
  cDesktop();
  ~cDesktop();
  void Calculate();
  void Refresh();
  cItem Menu;
  cItem Icone;
  cItem Obj;
  cItem Opt;
  cItem Image;
}

and cItem that way
class cItem{
 private:
  uint xDebut;
  uint xFin;
  uint yDebut;
  uint yFin;
  void ItemsInIt();
 public:
  void ChangeForm(uint xD,uint yD, uint xF, uint yF);
  void Draw();
 }


What I want to do, if it's the Menu, When I ise Menu.ItemsInIt it do Menu()
function... if I do Icone.ItemsInIt it will do Icone() function... things
like that.  Hope I'm clear.
It's like with Delphi... with the evenment onclick say...

Help you can help,
Valkir, thanks


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019