home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!gabriel
- From: gabriel@netcom.com (Gabriel Beccar-Varela)
- Subject: Re: Question about tWindow in TVision
- Message-ID: <9+ln!lk.gabriel@netcom.com>
- Date: Thu, 03 Sep 92 04:34:14 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <1992Sep2.122445.22682@rz.uni-karlsruhe.de>
- Lines: 34
-
- In article <1992Sep2.122445.22682@rz.uni-karlsruhe.de> ul1f@hp850.uni-karlsruhe.de writes:
- >Hi everybody,
- >
- >today, i've a question about Turbo Pascal 6.0 Turbo Vision. I tryed to
- >open a window _without_ a frame.
- >
- >First, i set the Options to _no_ Frame (Options := Options and not ofFramed;)
- >within the init-constructor. Nothing happens (the Option ofFramed is never set
- >in my opinion).
- >
- >Second, i defined a new object tMyWindow = object(tWindow) with the method
- >InitFrame.
- >
- >procedure tMyWindow.InitFrame;
- >begin
- > Frame := nil;
- >end;
- >
- >but something happy was the result. I got a frame, but not a full one. The botton
- >line was not there (only corrupted).
- >
- >Now, my question. How is the right way to open a Window _without_ a frame.
- Make sure that you set the Options flag AFTER you call the
- ancestor's constructor:
-
- constructor TMyWindow.init;
- begin
- TWindow.init;
- Options := Options and not ofFramed;
- end;
-
- That should work.
-
- Gabriel.
-