HDTenEightyP/NetNews huggingface dataset:
From: omar@wucs1.wustl.edu (Omar El-Ghazzawy)
Subject: Insertion Markers
Organization: Washington University, St. Louis MO
Date: Fri, 22 Jan 1993 21:51:53 GMT

I am having trouble with the insertion marker? in entries and in text
widgets.  It does not show up when the mouse cursor is in the entry, but
does show itself when I move the mouse cursor just outside the entry.
I have similar problems with text widgets.  Also, how can I set the color
or shape of the insertion marker?


Thanks Again!

Newsgroups: comp.lang.tcl
From: mgc@cray.com (M. G. Christenson)
Subject: Re: Canvases - what do YOU use them for?
Reply-To: mgc@cray.com
Organization: Cray Research, Inc.
Date: 22 Jan 93 11:57:21 CST

In article <1993Jan21.211011.18466@bcars6a8.bnr.ca>, Norm MacNeil writes:
>Now that I've become a little acustomed to writing/using TCL/TK, I've started
>looking at some of the more "finer" programming details.  One thing is the
>canvas and although I've seen a few articles on it, I still don't quite have
>an example of what it would be used for.
>
>So my question is, of those of you TK programmers out there, what do YOU use
>canvases for?  What application type?  Why canvas and not something else (if
>anything else would be applicable?)
>
>Thanks, 
>Norm.
>
>+-----------------------------------------------------------------------+
>Norm MacNeil                     Phone: (613) 763-3372
>Data Systems                     Fax:   (613) 765-2854
>Bell-Northern Research Ltd.      EMail: norm@bnr.ca (INTERNET)
>#include <disclaimer.std>       "Roller bladers do it in-line!"

I use a canvas widget in a printed circuit layout application.  I draw
various components, drag them around, rotate them, etc.  There is an
interface to an automatic circuit router, from which I take the output
and draw the traces on the canvas.

Mark
From: ouster@sprite.Berkeley.EDU (John Ousterhout)
Newsgroups: comp.lang.tcl
Subject: Re: How to determine selection owner in Tk?
Keywords: Selection, XA_PRIMARY, CLIPBOARD
Date: 22 Jan 93 22:44:44 GMT
Organization: U.C. Berkeley Sprite Project
NNTP-Posting-Host: tyranny.berkeley.edu

In article <1993Jan20.165216.22749@crd.ge.com>, kennykb@dssv01.crd.ge.com (Kevin B. Kenny) writes:
|> Is there a way in Tk for an application that has multiple widgets with
|> `-exportSelection true' to find which among them (if any) currently
|> owns the PRIMARY selection?
|> 
|> 73 de ke9tv/2, Kevin KENNY	GE Corporate R&D, Niskayuna, New York, USA

There's no way to do this in Tk 3.0, but Tk 3.1 (which I hope will be
out in a couple of weeks) will have several improvements to the selection,
including a "selection own" command that can be used to query the widget
that has the selection (but only if it's in the same application), and
new targets APPLICATION and WINDOW_NAME, which can be used to find out
the application name and widget containing the selection, regardless
of which application has the selection (but only if the application with
the selection is a Tk application).
Newsgroups: comp.lang.tcl
From: gandalf@Csli.Stanford.EDU (Juergen Wagner)
Subject: uplevel return?
Organization: Stanford University CSLI
Date: Thu, 28 Jan 1993 13:55:57 GMT

It seems to me that "uplevel return" does not work deterministically.
In a short program like

proc foo {x} {
  puts stdout "start foo"
  bar $x
  puts stdout "end foo"
}

proc bar {x} {
  puts stdout "start bar"
  baz $x
  puts stdout "end bar"
}

proc baz {x} {
  puts stdout "start baz"
  uplevel return
  puts stdout "end baz"
}

everything works fine. However, when I tried similar things in a more complex
example, the "return" didn't have any effect at all.

Is there a clear definition of the semantics of "uplevel return"? Does Tcl
support non-local exits at all?

Thanks for your help,
--Juergen Wagner (J_Wagner@iao.fhg.de)
Newsgroups: comp.lang.tcl
From: bytor@grumpy.NoSubdomain.NoDomain (Ross Huitt)
Subject: Re: How difficult is a restricted tcl shell ?
Keywords: shell user supervisor interpreter
Organization: Bellcore
Date: Fri, 22 Jan 93 14:26:51 GMT


This is _exactly_ what I was intending on doing in one of my applications.
The longer I work with Tcl, the more good uses I find for multiple
interpreters.

      -bytor@bellcore.com

In article <C198w7.6Jv@ux1.isu.edu>, simmdan@ux1.isu.edu (Daniel Simmons) writes:
|> In article <brucet.727682251@extro.ucc.su.OZ.AU> brucet@extro.ucc.su.OZ.AU (Bruce Tulloch) writes:
|> >Is something along the lines of a restricted tcl shell or "user" and
|> >"supervisor" mode easily implemented ? For example, in supervisor mode,

|> Well, I'm just at the thought/dream't state at the moment, but...
|> 
|> As a part of a Campus Wide Information System for Idaho State University,
|> I've been implementing a menu system based on Tcl.  Menu definitions are
|> all in Tcl, and the users actually get a Tcl interpreter to type menu
|> choices into (they just don't know it).  That is, the user is presented
|> with a menu of numbered options and a command prompt.  When they type
|> number "5" for instance, they are actually calling a Tcl procedure named
|> "5" which carries out the action named on the menu.
|> 
|> Anyway, at the moment, they have full access to the interpreter, but it
|> is my plan to eventually have two interpreters.  One is for the users
|> and will have most everything disabled (ie. no exec or any other way to
|> get to a subshell, etc.).  It will also have at least one command added
|> from C which will be used for choosing menu items.  In this case, when
|> they type "1", it will actually call a C procedure which will pass the
|> command "go 1" into a separate interpreter.  The second interpreter 
|> will have the full set of Tcl commands plus the application specific
|> commands.
|> 
|> Does this kind of describe what you're thinking about?  Anyone else
|> have thoughts/comments?
|> 
|> Danny
|> -- 
|> Daniel Simmons          electronic mail : simmdan@isu.edu
|> Idaho State University       voice mail : (208) 236-3199
|> Computer Center              snail mail : Box 8037, Pocatello
From: garfield@cs.tu-berlin.de (Sven Delmas)
Newsgroups: comp.lang.tcl
Subject: A note about XF 2.0 (was: Re: file selecor box wanted)
Date: 22 Jan 1993 15:03:36 GMT
Organization: Techn. Univ. Berlin (Germany)
Distribution: world
NNTP-Posting-Host: avalanche.cs.tu-berlin.de

In article <C124w2.IuL@fs7.ece.cmu.edu> svoboda@transam.ece.cmu.edu (David Svoboda) writes:

   I had the same need for a file selection widget, so I did some surgery on
   Xf's file selection widget, and managed to extract it from the rest of XF
   (BTW, if you have the source for xf, go through it, you'll learn a lot.) I
   haven't run this selector widget or xf under Tk 3.0. I've decided to sit
   this version out and wait for Tk 3.1, so you might have similar problems.
   Give it a try, and see if you get better results...
Well, I hope I can get XF 2.0 out shortly after Tk 3.1 is released.
The porting to Tk 3.0 is almost completely done. I am now working on
the reduction of my TODO list. As soon as Tk 3.1 shows up I will stop
adding new features (for a few hours :-), and make a interim release
that supports Tk 3.1 (and Tk 2.3 and 3.0). This release will contain
an improved file selector box, and hopefully the documentation I
promised so many times to so many people.

Greetings Sven
--
----
  Sven Delmas (Techn. Univ. Berlin)
    garfield@cs.tu-berlin.de
----
  For every problem there is a solution which is simple, clean and wrong.
                                                  Henry Louis Mencken
Xref: sparky comp.lang.pascal:8474 comp.os.msdos.programmer:12372
From: pshuang@zurich.ai.mit.edu (Ping Huang)
Newsgroups: comp.lang.pascal,comp.os.msdos.programmer
Subject: Re: Borland Pascal with Objects 7.0
Followup-To: comp.os.msdos.programmer
Date: 23 Jan 93 13:21:33
Organization: M.I.T. Artificial Intelligence Lab.
NNTP-Posting-Host: freeside.ai.mit.edu
In-reply-to: dmurdoch@mast.queensu.ca's message of Wed, 20 Jan 1993 15:08:38 GMT

Can somebody who has Borland Pascal 7.0 tell me if the manuals which
come with it describe the technical details of the compiler output code?
(For example, TP 3.0 manuals described parameter passing conventions on
the stack, register usage, etc.) I would like to know in particular if
it has useful details on how it implements calling functions from .DLL's
from both DOS and Windows code.

Please note I have added a "Followup-To:" line.

--
| Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
| "One Thing to name them all, One Thing to define them,
|  One Thing to place them in environments and bind them..."
From: ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
Newsgroups: comp.lang.pascal
Subject: Re: RFD: comp.cs.undergrad
Date: Thu, 21 Jan 1993 08:12:53 GMT
Organization: INSA  CENTRE INFORMATIQUE DU 1er CYCLE
NNTP-Posting-Host: pc110-02.insa-lyon.fr

In article <C163CM.G1r@dcs.ed.ac.uk> gk@dcs.ed.ac.uk (Gavin Kerr) writes:
>From: gk@dcs.ed.ac.uk (Gavin Kerr)
>Subject: RFD: comp.cs.undergrad
>Date: 20 Jan 93 19:26:46 GMT

>R E Q U E S T   F O R   D I S C U S S I O N
>-------------------------------------------

>This is a request for discussion on the creation of a newsgroup
>for worldwide Computer Science Undergraduates.

A good idea.
  I have about 100+ students that will join that group if created.
ppollet@cismibm.univ-lyon1.fr (Patrick POLLET)
--------------------------------------------------------
Dr Patrick L.Pollet
Institut National des Sciences Appliquees
Centre Informatique du 1er Cycle  Bat 110
20 Avenue A.Einstein
69621 Villeurbanne Cedex France
--------------------------------------------------------
Phone: 72 43 83 80 -   la premiere erreur c'est
Fax  : 72 43 85 33 -   de se lever le matin  ... GASTON
-------------------------------------------------------
Newsgroups: comp.lang.pascal
From: koert@dutentb.et.tudelft.nl (Koert van der Lingen)
Subject: Re: TP: Compiling to .obj?
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Mon, 25 Jan 1993 08:02:34 GMT

In <jnpotts.727733992@vincent1.iastate.edu> jnpotts@iastate.edu (James N. Potts) writes:

>I'd like to make an object file containing functions to be used by another
>program.  How can I turn my pascal file into object code?

>James

You can achieve the same thing by using TP units. 


--------------------------------------------------------------------------------
Koert v.d. Lingen                 | 
Electronics Research Laboratory   |
Faculty of Electrical Engineering |
Delft University of Technology    | Life is like a puzzle. The solution
Mekelweg 4                        | is known but we don't know by which
2628 CD Delft                     | way we will reach it.
The Netherlands                   |
                                  |
E-mail:k.vdlingen@et.tudelft.nl   |
--------------------------------------------------------------------------------
Newsgroups: comp.lang.pascal
Subject: Problems with BP 7.0 IDE text editor
From: st_waldman@fencer.cis.dsto.gov.au
Date: 27 Jan 93 09:04:49 +1100
Organization: D.S.T.O. Aeronautical Research Laboratory

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.

Another interesting quirk of BP 7.0 is that the block selection mode
seems to be activated of its own accord when I am scrolling through
a text file. This is also annoying, and sometimes it is difficult
to switch off and resume the normal editing mode. Pressing the 
shift key on its own seems to make it easier to get back to the normal
editing mode.

I should mention that I have syntax highlighting active. As yet, I
have not worked with it deactivated.

Any suggestions as to how to fix these problems would be greatly
appreciated.

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 |
+------------------------------+--------------------------------------+

Xref: sparky comp.lang.pascal:8534 comp.programming:3592 aus.mac:1466 comp.sys.mac.apps:20528 comp.sys.mac.misc:22324 comp.sys.mac.programmer:22169
From: B.C.Phillips@massey.ac.nz (Brenden Phillips)
Newsgroups: comp.lang.pascal,comp.programming,aus.mac,comp.sys.mac.apps,comp.sys.mac.misc,comp.sys.mac.programmer
Subject: MAC Pascal for first year teaching
Summary: Wanted: ideas for implementation of pascal for 1st year teaching
Keywords: pascal, programming, teaching, mac
Date: 25 Jan 93 23:00:41 GMT
Article-I.D.: massey.bphillip.37.728002841
Organization: School of Maths and Info Sciences, Massey University, NZ.

Hi,

we are currently using Mac LC's running system 6.0.7 ( System 7 next year )
in 4MB of RAM for teaching our first year courses. Our first year 
programming paper has been using MacPascal, which is now unsuitable. We 
would like to know what you use to introduce your students to Pascal 
programming.

Thanks in advance

Brenden
--
B.C.Phillips@massey.ac.nz
Computer Consultant
School of Maths and Info Sciences
Massey University
Palmerston North
New Zealand
"Du t Gvrnmnt bggt cts ths sgntr hs bn thrgh lssy cmprssn"
From: gordo@phsbbs.princeton.nj.us (Gordon Davidescu)
Newsgroups: comp.lang.pascal
Subject: TurboVision
Date: Tue, 26 Jan 93 08:06:51 EST
Organization: Princeton High School, Princeton, New Jersey

I am now attempting to put an element of WINDOWS and PULL-DOWN MENUS in 
the game I am creating, in which you go around a dungeon, fighting groups 
of monsters (With a party of adventurers) and finding treasure.  Namely, 
when you do a character stats check, it opens a window with that info, 
and then you can play the game (By going to the window above it).  
However, the Help feature is NOT HELPING ANY as it is more confusing than 
most anything I've ever seen.  (They should use REAL examples, not just 
examples with "Such-And-Such should go here" but true, non-confusing 
examples.  In any case, could anyone help me attempt to put TVision into 
the program?


-----
Gordon Davidescu, Princeton High School BBS
DNS: gordo@phsbbs.princeton.nj.us      UUCP: ...!princeton!phsbbs!gordo
Disclaimer: Author bears full responsibility for this message.
Newsgroups: comp.lang.pascal
From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
Subject: Re: NaN and comp type
Keywords: comp, NaN
Organization: Queen's University
Date: Sat, 23 Jan 1993 13:51:35 GMT

In article <1993Jan23.072940.22388@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
>According to the TP6 manual, NaN is represented for the comp type
>by a value of 0, with a sign bit of 1. But if you *create* such a
>value TP 5.5 and TP 6.0 both treat it as a *large* negative 
>number (-9.22337203685478E+0018) 

>So is it broken, or are the docs wrong? I was *hoping* to use it 
>to mark uninitialized values. <sigh>

According to the Intel manual (the one I'm using is the 486 Programmer's
Reference, but I've seen the same thing in the 80x87 manuals) the thing 
described in the TP manual is returned as the result of a calculation that 
produces a NaN, but is treated as a number when read from memory.  There's 
no encoding for the integer types that reads as a NaN.

Duncan Murdoch
dmurdoch@mast.queensu.ca
Newsgroups: comp.lang.pascal
From: favre@medsun.unige.ch (Eric Favre)
Subject: Re: TurboPower - Address and Products ?
Organization: University of Geneva	
Date: Tue, 26 Jan 1993 17:25:03 GMT

Jens writes:
|> Hi,
|> could anyone please be so kind to post the address of TurboPower?
|> BTW, maybe this person could drop one or two words on their products
|> too (name, price, description, rating) :-)

The address of Turbo Power is the following:
  TurboPower Software
  P.O. Box 49009
  Colorado Springs
  CO 80949-9009 (USA)
Sales: 800-333-4160
International sales: 719-260-9136
Fax: 719-260-7151

I have used TurboPower's B-Tree Filer (Network version) and Object
Professional (for Turbo Pascal, and also for Borland C++).
Both are really good products and can be compiled in protected mode
with Borland Pascal 7.0.
Object Professional is full of useful programming routines for (DOS)
character-based window applications. These routines are fast and
easy to use. The only defaults are that event-driven application
are difficult to program (you'll have to add a lot of code), and that
the C++ version doesn't use the full capabilities of the language
(the reason is that they want to keep the C++ version easy to use for
Turbo Pascal programmers).
The B-Tree Filer routines are fast, and can be employed with many different
networks. They can also be used with Turbo Pascal for Windows.

				Eric
-- 
Eric Favre, favre@cmurisc1.unige.ch
University of Geneva
Voice   : ++41.22.70.253.56
Fax     : ++41.22.347.33.34
Address :
  C.M.U.
  Department of Physiology
  1, rue Michel-Servet
  CH - 1211 Geneva 4
  (Switzerland)
Newsgroups: comp.lang.pascal
Subject: Re: Accurate delay function
From: CHEGC@LURE.LATROBE.EDU.AU (Graeme Cross)
Date: Thu, 21 Jan 1993 23:11:35 GMT
Organization: La Trobe University, Australia
X-News-Reader: VMS NEWS 1.24

In <1993Jan21.050905.28739@uwasa.fi> ts@uwasa.fi writes:

> In article <fcrews.8.727570654@WES.ARMY.MIL> fcrews@WES.ARMY.MIL (FORD CREWS) writes:
> >Does anyone have the source of a tp7 tpu for a high
> >resolution delay function.  I need one that can weight
> >for 3 minutes then write the results to a file.  Turbo's
> >delay function seems to be several secounds off when you
> >get in the 3 minute range.  The routine needs to work on 
> >different speed machines.
> 
> You can easily write it by reading the clock, making an loop and
> seeing when theree minutes have elapsed.  But if the problem is with
> your PC's clock (I suspect that it is), there is no better solution
> than the delay function.
> 

There is actually a better solution: reprogram the hardware to give you a
better timer resolution and write your own delay function from there. it is
quite easy (once you understand the theory) to get quite respectable high
resolution timings out of a PC.
If you don't want to do it the hard way, there are a few files in the turbopas
directory on Simtel-20 that have source code for high-res timing. For example,
the BONUS507.ARC file contains a public domain high-res timer unit (I think its
called TPTIMER.ARC). It contains all the source code and was written by Kim 
Kokkonen (from TurboPower Software), the author of Turbo & Object Professional. 
If you're after a good explanation of how to program the clock for high-res
timing, any *good* PC hardware book will give you the info, and there have been
articles in both Dr Dobb's Journal and PC Techniques in the last couple of
years explaining it all.
Note that this solution is processor-speed independant, and is useful for
millisecond delays (which the standard TP delay function can't do - or at least
not reliably :-).

Hope this helps,

Graeme

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: berend@contrast.wlink.nl (Berend de Boer)
Newsgroups: comp.lang.pascal
Subject: TurboVision Question (w/ example)
Date: Thu, 21 Jan 1993 12:29:08

colemanr@garnet.berkeley.edu wrote in a message to All:

 cbe> I have the same problem as the original poster, but in my
 cbe> case the text will change as data is processed.  I would
 cbe> REALLY appreciate it if someone could expand a little on
 cbe> this idea of 'smart text'. I'm pretty new to TurboVision and

Although your message is already a bit old, and two writers already
responded, yestday evening a different solution to smart text occured to
me. It's more a variation than really different although.

The other writers used the Set- and GetData methods. Another thing
might be to override the Draw method of some selfmade View. That Draw
method can be display different texts by drawing some global variable
(most simple, not very TV-ish). Another approach would be to draw text
in some field of your View object. You can set the text in that field by
using Get- or SetData (what the others did) or by sending a message to
the Window/Dialog like:

  s := 'Hello world';
  Message(CurrentDialog, evBroadCast, cmYetAnotherText, @s);


Groetjes,

Berend. (-:
fido: 2:281/527.23
email: berend@contrast.wlink.nl

Newsgroups: comp.lang.pascal
From: greg@ms.cs.wm.edu (Gregory S. Miller)
Subject: Questions about Constructors and pointers to objects in TP 6
Organization: College of William & Mary, founded 1693
Date: Fri, 22 Jan 1993 17:18:39 GMT

Is it legal for the constructor for an object to call the constructor for a
parent object?

I am having some difficulty with virtual method calls going to the wrong
class method, and was wondering if I might be accidentally overwriting
the pointer to the VMT by calling the parent class constructor from within 
the descendant class constructor.

A pointer of type pClass is assignment-compatible with ALL descendants of
Class, correct?

As a result, the following should work:

	New(pDescendantPtr,Init(Stuff));
	.
	.
	.
	pClassPtr := pDescendantPtr;
	.
	.
	.
	pClassPtr^.VirtualMethod;  { executes Descendant.VirtualMethod, right? }


Would this still work?

	var
		Ptr	: Pointer;
		Classptr: pClass;
		Descend	: pDescendant;

	Classptr := Descend;
	Ptr := Classptr;
	pClass(Ptr)^.Virtualmethod;  { still execute Descendant.VirtualMethod? }

In my code, which I will not post yet, calls like that above sometimes go to the
correct place, but sometimes they go to the parent.VirtualMethod, and sometimes
they go to Sibling.VirtualMethod -- the method implementation for an entirely
seperate descendant of Class!  Any ideas?  Places in my code that might be the
cause of the trouble?

Any feedback would be appreciated.

Greg
From: ISAACSON@husc3.harvard.edu (RON ISAACSON)
Newsgroups: comp.lang.pascal
Subject: Re: Look-a-head (input^) in TPASCAL...???
Date: 24 Jan 93 22:51:11 GMT

=>          Would anyone have a look-a-head routine that does the same
=> thing as the UNIX 'pc' compiler 'input^' because the TPASCAL gives
=> me an error message when I try to use this in my souce code?  Thanks
=> in advance to all that reply to this post.
 
That "file buffer variable", as it's called, is something I missed
sorely when I went over to Turbo Pascal. I wrote a little function
to replace it. This thing is by no means foolproof, and there are
probably several modifications that could be made, but in general
for just looking one byte ahead in a file this function works fine.
 
function filebuff(var infile : text) : char;
  var
    fp : longint;
    ch : char;
  begin
    {$I-}                  { turn off i/o checking, end of file, etc.    }
    fp := filepos(infile); { get the current position into the open file }
    seek(infile, fp + 1);  { move the pointer ahead by one               }
    read(infile, ch);      { grab a character, one ahead of the previous }
    seek(infile, fp);      { go back to where we were before             }
    {$I+}                  { turn i/o checking back on before exiting    }
    filebuff := ch;
  end;
 
This is the generic non-destructive non-pointer-moving file read
routine. If you need something more elaborate, hopefully you get
the general idea from this, and you can modify it to suit your
needs. Good luck!
 
 - Ron Isaacson, Isaacson@Husc3.Harvard.Edu