realbasic-nug
[Top] [All Lists]

Multiple inheritence?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Multiple inheritence?
From: knee <knee at ihug dot co dot nz>
Date: Fri, 1 Aug 2003 10:10:46 +1200
I have an app with various sub-classes of EditField. One sub-class is called "NumberOnlyField" and accepts only numerals, one is a "DateField" and transforms input into an abbreviated date, one is a "ClientField" and intelligently guesses a client's name as you start typing. You get the picture.

I would like another class of EditField called "NeverDisableMe" so I can do something like:

if EditField(n) not Isa NeverDisableMe then EditField(n).enabled = false

I would like SOME of the NumberOnlyFields and SOME of the DateFields to be also NeverDisableMe fields, as well as being plain old ordinary EditFields. Is there any way to do this?


   Ian

                    ------------------------------
                    Ian G. Morris   -   Tonewright
                         ian at igmusic dot co dot nz

 Small wonder we have so much trouble with air pollution in the world
           when so much of it has passed through saxophones.


   Ian

                    ------------------------------
                    Ian G. Morris   -   Tonewright
                         ian at igmusic dot co dot nz

       "If there really was a UFO cover-up, do you think NASA
     would be a civilian organization reduced to orbiting in a
     20-year-old space shuttle observing how plants germinate?"


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>