home *** CD-ROM | disk | FTP | other *** search
- Path: news.ifm.liu.se!stenmark
- From: stenmark@lysator.liu.se (Andreas Stenmark)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Subclasses of groupgclass (BOOPSI)
- Date: 22 Jan 1996 22:03:50 GMT
- Message-ID: <4e11k6$2ec@newsy.ifm.liu.se>
- NNTP-Posting-Host: kristina.lysator.liu.se
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- Keywords: BOOPSI
- X-Newsreader: NN version 6.5.0 #24 (NOV)
-
- Hi net!
-
- Does anyone know if there's any special kind of magic to be considered
- when you need to have subclasses of groupgclass be members of other
- subclasses of groupgclass? I have been trying to make this work this
- entire weekend, but so far all I see is failure.
-
- To be a little more specific, I have a ScrollBar class (whose
- superclass is groupgclass) that consists of a (custom) proportional
- gadget and two (optional) arrow buttons. When used from a normal test
- program this works without any problems. And then, I have another
- class, ListBox (whose superclass is groupgclass as well) that wants to
- use this ScrollBar class among one or two other classes. Trying to use
- the ScrollBar class from ListBox invariably ends in failure (Enforcer
- hit and machine lock-up), and I can't understand why. If the ScrollBar
- class is added to ListBox and no gadgets are added to ScrollBar there
- seem to be no problems, but as soon as anything is added to ScrollBar,
- the whole thing goes down in flames. And this appears to be independent
- of the gadgets added to ScrollBar btw. I've tried adding just a simple
- instance of frbuttonclass too, but that won't work either. Besides,
- when I add the custom prop and button classes directly to ListBox,
- everything works just perfectly, but I'd really like to have it
- organized as I've described above.
-
- Is this enough info for you BOOPSI experts out there, or do I need to
- be even more specific? Thanks in advance.
-
-
- -Andreas
- --
- Andreas Stenmark, stenmark@lysator.liu.se
- Windows programming for money, Amiga programming for pleasure
- "Guilt is the most efficient form of manipulation."
-