HDTenEightyP/NetNews huggingface dataset:
From: jnpotts@iastate.edu (James N. Potts)
Subject: Re: Can you overlay graphics without obscuring the lower ones?
Organization: Iowa State University, Ames IA
Date: Thu, 21 Jan 1993 23:27:30 GMT

In <1993Jan21.144229.23421@sun1x.actc.res.utc.com> pek@logos.res.utc.com (Paul Kirschner) writes:

>Is there a way to overlay graphic figures (circles, rectangles, etc.)
>so that the underlying figure "bleeds through" the top one?

>I want to make a "business presentation" type bar chart where
>succeeding years are overlaid.  However, the top bar totally obscures
>the one behind it - even with a stripped pattern.  I want to use a
>stripped pattern so that the lower one shows through.

>I can make the same effect "by hand" by drawing the top rectangle
>directly and stripping it line by line.  Unfortunately this is
>resolution dependent for the line spacing.  It would be MUCH easier to
>use the built-in fill patterns and have the BGI do the work!

>Anyone solved this?

Here's one thing that you could do.  After drawing the first figure, draw
the one that would go on top off screen, say to a different graphics page.
Then, do a getimage of the new (offscreen) image, and do an OR putimage to
the screen.  This would let the old figure show through the new.

James.

-- 
_____________________________________________________________________
James N. Potts          |  "To err is human.  To get multiple UAE's 
jnpotts@iastate.edu     |   requires MS Windows."
tabp6@isuvax.iastate.edu|                      - Me
Newsgroups: comp.lang.pascal,comp.os.ms-windows.programmer.misc
From: chard@borland.com (Richard Nelson)
Subject: Re: Give window a caption
Originator: chard@genghis.borland.com
Organization: Borland International
Date: Thu, 21 Jan 1993 18:55:01 GMT

In article <C15rpJ.Izy@cs.vu.nl> martijn@cs.vu.nl (Lemmens ML) writes:
>
>I have created a window (TWindow) with Borland Pascal 7.0 without
>a caption. While the program is running I want to change the looks of
>the window and give it a caption. Is this possible without destroing
>the window and creating a new one?

TWindow has a method called SetCaption to do just that.  Check page
443 in the ObjectWindows Programming Guide for details.
-- 
=========================================================================
 Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
  Had this been Borland's opinion, I would have written it in a manual.
 "...there's no hurry, I'm just sittin' here doing time." - John Lennon
From: zbych@halina.univ.gda.pl
Newsgroups: comp.lang.pascal
Subject: TListBoxer IooI
Date: 28 Jan 93 12:30:59 GMT

Hi Netters!


Turbo Vision 2 questions:

In TListBox when I want to actualize my List, I make a copy,
for instance PomList, and then add or remove particular
elements of the list and at last execute : MyListBox^.NewList(PomList).
I do it, because TListBox.List is readonly, but I have to have 2 times more
memory needed during this operation. Is there any simpler and less
memory_consuming metod of acualizing List in TListBox.

   And the second question? Is there any trick to display long, very long
lists in ListBox and not keep the whole list in memory. In the case of 
approximately 1000 elements of 200B size, it is 200 KB. (and internal
SortedCollection allocations for each element).

Thanks in advance
                   AlexANDer
                   zbych@halina.univ.gda.pl
From: berend@contrast.wlink.nl (Berend de Boer)
Newsgroups: comp.lang.pascal
Subject: BP7-DPMI and Novells-Dos-API
Date: Thu, 21 Jan 1993 14:05:18

Jochen Magnus wrote in a message to All:

 JM> I have strange problems with the new Protected-Mode
 JM> capabilities of   Borland-Pascal (7.0) and the NW-API for
 JM> DOS. All Shell-Requests failed, i.e.   ReadPropertyValue
 JM> from the Bindary, when I compile a protected-mode-app. I't  
 JM> seems, that the REQUEST-Buffer (given in Segment-Registers)
 JM> never reaches the   NETx-Shell. This may be a problem of the
 JM> selector-technique under DPMI, but   this way of datatranfer
 JM> is absolutely usual under DOS. 

 JM> Any hints???

See next message which descripes all(?) kinds of problems you get with
protected mode program and interrupts and a solution (or at least an
attempt) is given.


Groetjes,

Berend. (-:
fido: 2:281/527.23
email: berend@contrast.wlink.nl
From: lee@cpu.us.dynix.com (Lee Crites)
Newsgroups: comp.lang.pascal
Subject: Re: Borland Pascal 7.0 : How many megs ?
Date: 25 Jan 93 16:32:47 GMT

On 24 Jan 1993, Klaus Hartnegg wrote:
> robk@wswiop01.win.tue.nl (Rob Knubben) writes:
> > Can anybody tell me how many megabyte Borland Pascal 7.0 uses ?
> > (On harddisk I mean). 
> The german Borland Magazine 6/92 claims that
> it needs 23 MByte if one installs everything.
>          ^^^^^^^^

Let me make one thing about this question clear, at least on MY computer....
The \BP\BIN subdirectory alone has 27meg of files.  I had to have 33meg
available for everything to reside in, and nearly 40meg of disk spave
available, so that the compressed files could also reside on disk while
being uncompressed.  Now, I'm in the middle of the U.S., so there might be
real differences here.

           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            lee@us.dynix.com | If it ain't broke yet,
                             |   let me have a shot at it....
           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Newsgroups: comp.lang.pascal
From: chard@borland.com (Richard Nelson)
Subject: Re: Getting in touch with Borland
Originator: chard@genghis.borland.com
Organization: Borland International
Date: Wed, 27 Jan 1993 22:15:31 GMT

In article <1993Jan23.135055.9156@wariat.org> sjsobol@wariat.org (Steven J. Sobol) writes:
>Borland is on the net.. I have talked with one or two people from that
>company.
>
>Last I checked the only email address open to outsiders was bugs@borland.com
>for bug reports. The story then was that they had just started with e-mail and
>were not able to offer tech support through e-mail at that time.

That's basically correct. There is no formal tech support available
over the Internet at this time. In addition to the bugs address, there
is a Customer Service address (I think it's actually
customer-support@borland.com) you can write to with questions about
orders, shipping, etc.

>There are two people I know of that are around Usenet... one is Richard
>Nelson, who is a technical writer, and the other one is Wayne Davison (I
>don't know what his title is, but he wrote TRN). One of them might be able
>to answer this question. Richard, are you reading this?

Nope, I never read this stuff.  :-)

Um...which question was I answering?  Wayne's job?  :-)  Basically
there are lots of Borland folks reading various newsgroups of
interest, but participation is all informal and voluntary.  Some of us
try to answer questions when we can, fan the flames of holy wars, all
those good things....
-- 
=========================================================================
 Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
  Had this been Borland's opinion, I would have written it in a manual.
      "How can love survive in such a graceless age?" - Don Henley
From: lfosdal@falcon.no (Lars Fosdal)
Newsgroups: comp.lang.pascal
Subject: Re: TPW: How to get a pointer from a handle
Date: 28 Jan 93 07:58:45 GMT
Organization: Falcon Information Services AS, Oslo, Norway

focke@gmd.de (Stefan Focke) writes:

> In article <9ysZXB1w165w@falcon.no> lfosdal@falcon.no (Lars Fosdal) writes:
> >  :
> >  IF GetObject(hBM, SizeOf(TBitMap), @BM)<>0
> >  THEN BEGIN {We've got a valid bitmap)
> >    BM.bmBits now points to the bitmap bits.
> >  END;
> Ok, I tried this:
[...deleted some lines...] 
>      BM.bmBits = nil
> 
> So, this function does not help.

I don't know why it doesn't work...(I must admit I didn't try it...)

 
> 2)  GetObject with a TLogBrush-parameter has no address entry.

If TLogBrush.lbStyle is bs_DIBPattern, the TLogBrush.lbHatch field
is supposed to be a handle to a packed DIB, according to the doc's. 
 
> 3)  I need a fast output of colored rectangels. PatBlt seems to be the 
>     fastes GDI-function. But it is not fast enough. So I would like to write 
>     directly to memory. I try serveral possiblities, for example bitmaps. 
>     Writing into a buffer and transfering it with SetBitmapBits to the 
>     bitmap is to slow. I would like to write directly to bitmap-memory. 

Have you examined the SetDIBitsToDevice (WinProcs unit) function ?

> 
> Stefan 

Lars F.
--
/ Mr.Lars Fosdal              / Falcon AS            / lfosdal@falcon.no  /
/ Software Developer          / Stranden 1           / Tel. +47 22831310  /
/ Financial Analysis Systems  / N-0250 OSLO, Norway  / Fax. +47 22831290  /
----=* All opinions are personal and does not reflect company policy *=----
From: lee@cpu.us.dynix.com (Lee Crites)
Newsgroups: comp.lang.pascal
Subject: Re: ADT & BTW7.0??? Help me!
Date: 25 Jan 93 19:47:56 GMT


On 25 Jan 1993, Duncan Murdoch wrote:
> 
> What's an abstract data type?
> 

ADT is, like OOP, a way of 'encapsulating' the data and
procedures/functions that operate on that data.  We have built all of our
Pascal Units with ADT in mind, which is one reason why we are able to
convert them into OOP as easily as we are.

In a nutshell, an ADT is, by definition, in a separately compiled module
(unit).  I contains all of the TYPE, VAR, CONST definitions, all needed
setup (in the BEGIN/END. block), and all of the procedures and functions
needed to manipulate the information. 

It appears to me to be an intermediate step into OOP, in that the data and
'methods' are put together.  Of course, there is nothing like inheritence,
since it is a basic unit, but the basic data/method thought is there. 

We use it like this:  There is one UNIT that manipulates the .INI file. 
Nobody needs to know what the .INI file looks like, or how it is being
read or written to.  The only person who changes the source is the one
programmer that has responsibility for INI.PAS.  The rest of us simply
include INI in our USES clause.  There are functions that return values,
etc, that we use, and who cares how they work.  All that matters is that
they work.  Each UNIT has a person responsible for keeping it up to date. 
Everybody else simply uses the function/procedure calls as needed.

You have 'abstracted' the data, and the functionality needed to keep it
up, from the end-user programmer/staff.  If the indexing methodology
changes, or the file-layout itself changes, you, the end-user programmer
neither know or care.

We actually went to the length of adding some security to each unit so
that if you didn't have the proper authorization code, you couldn't do
everything (delete records, change setup parameters, etc), further
'abstracting' the information.  This was quite useful in such applications
as employee file manipulation, where some field(s) and some functions were
not available to everyone.

Does this make it clear as mud?!?

           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            lee@us.dynix.com | If it ain't broke yet,
                             |   let me have a shot at it....
           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:  A7101DAA@helios.edvz.univie.ac.at
Newsgroups: comp.lang.pascal
Subject:      TV-question1
Date: 26 Jan 93 17:02:15 GMT

Hallo!
I am looking for a possibility of updating the TurboVision
MenuBar. The Menu items may be variables. But if I change the variables
the menu bars stay the same.
    Thanx in advance
Newsgroups: comp.lang.pascal
Subject: Re: HPGL BGIs ?
From: CHEGC@LURE.LATROBE.EDU.AU (Graeme Cross)
Date: Thu, 21 Jan 1993 23:02:58 GMT
Organization: La Trobe University, Australia
X-News-Reader: VMS NEWS 1.24

In <hdupless.3.727430233@stellenbos.csir.co.za> hdupless@stellenbos.csir.co.za writes:

> Before I start to write a whole Turbo Pascal unit to drive our HP Plotters, 
> I would like to know if there are any HPGL BGIs available somewhere out 
> there ?
> 

There are a number of commercial BGI packages that offer HP plotter (HPGL
support). A quick look through a programming magazine such as Dr Dobb's Journal
or PC Techniques will reveal a few companies such as Fleming Software and Ryle
Design who offer BGI packages with HPGL support.


Graeme Cross                   |  chegc@lure.latrobe.edu.au
Dept. of Chemistry             |
La Trobe University            |  One day, by accident or design, a .sig will 
Bundoora, Victoria, Australia  |  just mysteriously appear here...
From: h198@hosp.med.umich.edu  (Gene Mangum)
Newsgroups: comp.lang.pascal
Subject: Print to serial-connected printer?
Date: Mon, 25 Jan 1993  13:31 EDT
Organization: Univ of Michigan Hospitals
Distribution: world
NNTP-Posting-Host: condor.hosp.med.umich.edu
X-Newsreader: FTPNuz (DOS) v1.0

Hi Folks,
 
I'm including a print feature in a program I'm writing, and I want to 
support serial as well as parallel printers.   Do I need to do anything
more than open a file pointing to device COMx?   I don't have access to
a serial printer...
 
Thanks for any help,

+=================================+=========================================+  
| Gene Mangum                     |  OS/2 ver 2 - Increased productivity    |
| Univ of Michigan Hospitals      |               through the use of a      |
| h198@hosp.med.umich.edu         |               "dead" operating system.  |
+=================================+=========================================+
From: icsu0237@cs.montana.edu (Jeff Patterson)
Newsgroups: comp.lang.pascal
Subject: Help with Graphics Saving!  {:-(
Date: 26 Jan 93 21:17:07 GMT
Organization: Montana State University, Dept. of Computer Science, Bozeman MT 59717

I have a question regarding graphics formats for files.  I am working on
a landscape generator and am coming along very well.  You can zoom through
the terrain and rotate the map, but I would like to be able to save the
graphics page to a common graphics file (.gif, .pcx...) but have as of
yet been unsuccessful.  Can anyone out there please help me out?  Mail me
direct or post, whichever you like.

I have been successfull in saving and reloading pictures, but it is in
a "house format", that is, it is not standardized, just something I came
up with.  It is an 8 bit file format and I think that I might have
something close to a standard .BIF (binary file format.)  Anyway, any help
would be greatly appreciated.  I am working in BP6 with a 386dx33mhz in
VGA.  Thanks in advance
Newsgroups: comp.lang.pascal
From: chard@borland.com (Richard Nelson)
Subject: Re: BPW: Closing MainWindow ???
Originator: chard@genghis.borland.com
Keywords: cm_Exit
Organization: Borland International
Date: Wed, 27 Jan 1993 22:28:50 GMT

In article <1993Jan22.144222.8672@scf.loral.com> andres@scf16.scf.loral.com (Jeff Andres) writes:
>Using BPW and the resource workshop, I've used the skelton features
>of a Borland program to begin hacking/programming in windows. The
>program I started with (as I recall) didn't have an Exit function
>but it did of course have the standard window close call. I wanted
>to add the Exit feauture so I went into RW and created one with some
>bogus return code (99). My program could capture this but I couldn't
>quite figure out how to shutdown the windows....yes, RTFM...I see
>CanClose, but not CLOSE...I see DESTROY, but that doesn't appear
>to really shutdown/clean-up gracefully....hints ???
>
>After getting frustrated, I decided that Borland had to have added this
>feature into one of their examples and stumbled upon HeapSpy. Glancing
>through their code I could not find where their Exit was called. I
>opened their Menu using RW (HeapSpy.res) and found out that their return
>code was set to something like 23400. So I took a chance and changed my
>code of 99 to 23400 and BAM, it worked...what is so special about this
>number and where is it documented....are there other reserved return
>codes ???

That's the standard behavior of all ObjectWindows applications.  That
magic number you stumbled onto is the value of cm_Exit, the constant
for the menu command on the standard File|Exit menu item.

TWindowsObject has a method called CMExit. The application normally
dispatches the message containing the cm_Exit command to the
application's main window, calling the CMExit method.  CMExit checks
with CanClose, and if CanClose returns True, terminates the
application.

I just noticed that this isn't really explained in the appropriate
place in the chapter on application objects.  This time, anyway.  :-)
-- 
=========================================================================
 Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
  Had this been Borland's opinion, I would have written it in a manual.
      "How can love survive in such a graceless age?" - Don Henley
From: mike.dickson@almac.co.uk (Mike Dickson)
Newsgroups: comp.lang.pascal
Subject: Re: Runtime error
Date: 25 Jan 93 13:52:00 GMT
Reply-To: mike.dickson@almac.co.uk (Mike Dickson)
Organization: Almac BBS Ltd. +44 (0)324 665371

TS..>I have a program which was written in Pascal, and I think using Turbo Pasca
TS..>which keeps giving a runtime error 005 could someone please tell me what th
TS..>is.
TS..Besides RTFM you can use the Turbo Pascal IDE help to get the
TS..meaning of runtime errors.

Timo, it might be that this person has literally only 'got a program' and
is trying to work out why it isn't running. Put it this way, if he had
the source code to it then he'd have the compiler and if he had the
compiler he'd certainly know what language it was written in.

/\/\ | |< |.                                     mike.dickson@almac.co.uk
---
 . SLMR 2.1a . Fancy a .QWKie?
                                                                                                                  
Newsgroups: comp.lang.pascal
From: achristo@pons.uio.no (Alf Christophersen)
Subject: Re: Questions about Constructors and pointers to objects in TP 6
Organization: University of Oslo
Date: Sat, 23 Jan 1993 15:30:19 GMT


I think maybe you lost something important in the TDerived
decalration!

>
>    type
>      PBase = ^TBase;
>      TBase = object
>        constructor Init(...);
>        destructor  Done; virtual;
>        function    IsA: string; virtual;
>      end;
>
>      PDerived = ^TDerived;
>      TDerived = object(TBASe)
                        ^^^^^^^ <- You need to declare what
                        TDerived is derived from to have this
                        example to work :-)
>        constructor Init(...);      { if necessary }
>        destructor  Done; virtual;  { if necessary }
>        function    IsA: string; virtual;
>      end;
>      ...

Alf Christophersen
Dep. of Nutrition Res.
University of Oslo, Norway
Newsgroups: comp.lang.pascal
From: hrpdko@pnv.palm.cri.nz (Dale K. Ogilvie)
Subject: Re: Constructing TDialogs with only a Handle
Organization: DSIR, Palmerston North, New Zealand
Date: Thu, 28 Jan 93 01:32:35 GMT

In article <1993Jan27.095112.23954@sol.ctr.columbia.edu> gtd543a@sol.crt.columbia.edu (death) writes:

>Stefan Ludwig (ludwig@cat.de) wrote:
>: TDialog-Constructor Init takes a PWindowsObject as an argument. Id like to
>: construct one without the parent beeing a PWindowsObject. The situation: I
>: wrote a DLL which is called from within a third party program (which I dont
>: have the source for). I can get the handle of the applications main window
>: in the DLL's code. Now I would like to generate Dialogs which are modal and
>: have the applications main window as a parent.

>Unfortunately, according to Borland (I wanted to do this also) you
>cannot use OWL in a DLL, which is a real bummer.
>--
>Death: the high price of living
>========================================================================
>Disclaimer:  I am not bubba.

I second this, I couldn't get OWL working in a DLL either. Anyone have a 
different view?

Dale Ogilvie

Newsgroups: comp.lang.pascal
From: frigault@gla.ecoledoc.ibp.fr (Laurent FRIGAULT)
Subject: Re: Problems with BP 7.0 IDE text editor
Reply-To: frigault@gla.ecoledoc.ibp.fr
Organization: Dess GLA
Date: Thu, 28 Jan 1993 08:51:59 GMT

In article 1@fencer.cis.dsto.gov.au, st_waldman@fencer.cis.dsto.gov.au () writes:
> I am using Borland Pascal 7.0 with its protected mode IDE. I have
> encountered a problem when scrolling through text in the IDE editor
> window. The problem occurs when I continuosly hold down the up-arrow or
> down-arrow keys. I find that the characters "8" and "2" will get
> dropped in regions where the cursor has been.
> 
> As you can see, this is quite annoying, and requires editing
> corrections to be made before you can compile. I was wondering whether
> it is a common problem. I have a Microsoft mouse and the driver is the
> one that came with Windows 3.1, so it is fairly recent.
...
[stuff deleted]
...
> 
> Thanks...
> 
> +------------------------------+--------------------------------------+
> | Witold Waldman               | Aeronautical Research Laboratory     |
> | Senior Professional Officer  | 506 Lorimer St                       |
> | Airframes & Engines Division | Fishermens Bend VIC 3207             |
> | Tel: +61 3 647 7488          | Melbourne, Australia                 |
> | Fax: +61 3 646 7771          | eMail: witold@hotblk.aed.dsto.gov.au |
> +------------------------------+--------------------------------------+
> 

I had the same problem when i was using a special keyboard driver loaded in umb by 386max 6.01 . I switch back to the msdos keyb.com loaded in umb by the same 386max 6.01 and my troubles are over.
I hope this could be usefull for somebody

	Regards

Laurent

---
*******************************************
*                                         *
* Laurent FRIGAULT                        *
*                                         *
* Universite Pierre & Marie Curie Paris 6 *
* DESS de Genie des Logiciels Applicatifs *
*                                         *
* administrateur systeme                  *
*                                         *
* frigault@gla.ecoledoc.ibp.fr            *
*                                         *
*******************************************
From: lee@cpu.us.dynix.com (Lee Crites)
Newsgroups: comp.lang.pascal
Subject: Re: Interupts
Date: 26 Jan 93 21:39:19 GMT

On Mon, 25 Jan 1993, Mr Timothy Green wrote:
> >
> > It would take us too far to explain all needed interrupts and registers at
> > call, study interrupt 33h of "RALPH BROWN's PC interrupt list", which is in
> > bookform (ISBN 0-201-57797-6) and can be downloaded from many BBS's.
> >  
> > Hope this helps,
> >  
> > Michel.
> >  
> Could you please give an example of a BBS which has this book, preferably one
> on the internet/bitnet.
> 

FTP to pd.byu.edu, and there are three items there that have what sounds
like you are looking for.  I don't know the names right off the top of my
head, but they are in the msdos subdirectory.  There isn't that much
there, so you should be able to find it/them fairly easily.

           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            lee@us.dynix.com | If it ain't broke yet,
                             |   let me have a shot at it....
           =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Newsgroups: comp.lang.pascal
From: umbrzez0@xenon.cs.umanitoba.ca (Andrzej Brzezinski)
Subject: Help! How to increase # of file handles in BP7 protected mode?
Keywords: DPMI File Handles
Organization: Computer Science, University of Manitoba, Winnipeg, Canada
Distribution: all
Date: Thu, 21 Jan 1993 21:04:16 GMT

Hi everybody!
I have a real problem. I am using Borland Pascal 7.0 to write a protected-
mode application. I need to increase the number of file handles (to at least
50). I tried to use DOS function Set Handles Count (DOS >= 3.3):
var
  R :Registers;
begin
  R.AX := $67; { DOS function number }
  R.BX := 50; { number of file handles }
  MsDos(R);
  ....
end.

Can anybody tell me why it does not work and how to accomplish the task?
Thanks in advance.

-- 
------------------
Andrzej Brzezinski, umbrzez0@silver.cs.umanitoba.ca
University of Manitoba, CANADA