home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!gatech!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!constellation!a.cs.okstate.edu!greaham
- From: greaham@a.cs.okstate.edu (GREAHAM DARIN DONA)
- Subject: Need Help with Resource and Init
- Message-ID: <1993Jan26.223719.16694@a.cs.okstate.edu>
- Organization: Oklahoma State University, Computer Science, Stillwater
- Date: Tue, 26 Jan 93 22:37:19 GMT
- Lines: 34
-
-
-
- I am attempting to place a derivation of a dialog box's Init constructor
- into a resource file. The problem that arises is that the HandleEvent for
- the dialogbox no longer works. I seem to be doing something dreadfully
- wrong but can't quite put my finger on it. Simple type declaration:
-
- Type
- PBox = ^TBox;
- TBox = Object(TDialog)
- constructor Init;
- destructor ...
- procedure HandleEvent...
- end;
-
-
- Now that the Init is all in a resource file, using
- Box := New(PBox,Init)
-
- won't work, of course. But
- Box := PBox(ResFile.Get('DialogBox'));
-
- will but the HandleEvent doesn't respond. I'm not for sure what to do
- past this point. I've tried numerous things but nothing works.
-
- BTW: The dialog box that is in the resource file is NOT inherited from
- PBox, should it??
-
-
-
- Thanks for any help.
-
- Darin...
-
-