Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Jon David Sawyer
> btw, all classes are implicit descendants of TObject. If you don't > specify any base class, the class will be derived from TObject directly: > > type > TMyClass = class > procedure Something; > ... > end; > > TMyClass is automatically inherited from TObject > > Both postings sound

[fpc-pascal]Working with pictures in FPC - how?

2003-03-23 Thread Rainer Hantsch
Hello! I would like to write a program which works with pictures. For that, I will need two procedures for reading and writing a picture in/out to/from memory and hereby decoding/encoding it into a usable format which can be handled easily from FPC. I can imagine four lists of byte for CMYK (wher

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Sebastian Günther
On Sun, 2003-03-23 at 16:00, Jon David Sawyer wrote: > > for descendants of TObject, there's a method 'ClassType', e. g. > > > > *** > > begin > > if MyObject.ClassType = CCalculator then begin > > bla bla > > end else bla bla > > end; > > *** > > > > see reference manual - system unit. t

[fpc-pascal]error msg when compiling gluttest example under linux

2003-03-23 Thread Karim Forsthofer
Hello I installed FPC 1.0.6 on my Mandrake System. All in the default path /usr/local I tried to compile some programs, it worked only with console programs, who not need a special lib or unit. I tried to compile a gluttest.pp, from the example package, but there comes allways the error msg .

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Jon David Sawyer
> for descendants of TObject, there's a method 'ClassType', e. g. > > *** > begin > if MyObject.ClassType = CCalculator then begin > bla bla > end else bla bla > end; > *** > > see reference manual - system unit. this only works if a descendant of > TObject has been assigned to MyObject.

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Anton Tichawa
hi, Jon! > Heya ^_^ Is it possible to identify the class type? > > For example TypeOf(MyClass) = TypeOf(MyClass)? > > Is it possible to register diffrent types of classes at startup and then > identify them later? > > This is probably a simple matter solvable with a few calls from the > System un