HDTenEightyP/NetNews huggingface dataset:
From: jpugh@apple.com (Jon Pugh)
Subject: Re: draw polygon from message box
Date: Tue, 10 Nov 1992 07:51:42 GMT
Organization: Apple Computer, Inc.
Followup-To: comp.sys.mac.hypercard

In article <1992Nov6.164850.10503@galen.physiolgalen.physiol>,
ph@physiology.oxford.ac.uk (Patrick Haggard) wrote:
> 
> 
> Hi.  How can I draw a polygon from message box or a script?  using
> choose polygon tool
> click at x1,y1
> click at x2,y2
> click at x1,y1 -- again
> doesn't work.

You are correct.  I've never heard of anyone successfully doing this
either.
The only way to fake it I know of is to use lines instead of polygons.

Jon
Newsgroups: comp.sys.mac.hypercard
From: Daniel Schwabe <schwabe@inf.puc-rio.br>
Subject: Re: What is WindowCraft?
X-Useragent: Nuntius v1.1.1d12
X-Xxmessage-Id: <A723FF7954011802@mac-dan.inf.puc-rio.br>
Organization: Departamento de Informatica    PUC-Rio
Date: Mon, 9 Nov 1992 13:44:44 GMT
X-Xxdate: Mon, 9 Nov 92 14:43:53 GMT
X-Posted-From: mac-dan.inf.puc-rio.br
NNTP-Posting-Host: sol.ctr.columbia.edu

In article <keyI_ZK00WAL81rHZW@andrew.cmu.edu> Michael Berkenpas,
mb1f+@andrew.cmu.edu writes:
>I received a glossy in the mail yesterday for a Hypercard to Windows
>conversion program called WindowCraft. They claim they can convert
>Hypercard 2.1 stacks to a WindowCraft program (a Windows application).
>They state their scripting language is a superset of Hyperscript. They
>claim extremely high conversion success with few unresolved errors. 
Can you please include more info on this product - contacts, price, etc...
Thanks
Daniel Schwabe                  Dept. de Informatica, PUC-Rio
Tel: +55-21-529 9544/274 4449   R. M. de S. Vicente, 225
Fax: +55-21-511 5645            Rio de Janeiro, RJ 22453-900, Brasil
From: derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: How to get rid of the clicktext
Date: 6 Nov 92 03:44:00 GMT
Article-I.D.: oregon.5NOV199219443992
Organization: University of Oregon
News-Software: VAX/VMS VNEWS 1.41

In article <1992Nov6.104053.1@csc.canterbury.ac.nz>, clas005@csc.canterbury.ac.nz writes...
>In article <4NOV199220221807@oregon.uoregon.edu>, 
>derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen) writes:
>> I am doing something using the clicktext in a field.  In the openfield handler
>> I check the value of the clicktext.  If it is empty, do nothing, otherwise do
>> something.
>> 
>> The problem I have is that when the sencond pass of using the clicktext, even
>> thoug I do not click on anything, the clicktext still returns the previously
>> clicked text.
> 
>It is absolutely true that the value The ClickText is persistent. 
>But this just means you probably should not check that way. A mouseUp handler 
>will have the virtue that it won't be called unless there was, at 
>least, a click. Then, if the click was on a word, there will be 
>clickText; if not, the clickText will be empty. Your difficulty 
>is caused by the fact that you are checking in an openField 
>handler.
> 
>If you *must* do it the way you are doing, use "click at the loc 
>of me" to clear the ClickText. -- matt

I don't think click at the field itself will work.  I have a field-ful of text.
Clicking at the loc of the field will end up clicking at some other text.

Let me address my question more specifically.  Here is the script in a 
background field:

on openfield
  if "Page" is in the clicktext
  then
    visual effect dissolve
    go card word 2 of the clicktext
  else
    doUnderline
  end if
end openfield

You may consider my stack as an electronic book.  Every card has a page number.
This particular field contains all the text in the stack.  You may see it as
a whole text.  In the field, I put page numbers among the text so that the user
knows which part of the text belongs to which page.

This field does two things.  If the user clicks at the page number, he/she will
be able to go to that page.  If the user select something (e.g. hold down the
mouse and drag), the selected text will be hilighted (underline).

Apparently, I cannot use the mouseup handler, because I want the users to be
able to select something.

It works just fine to go to a page.  But if I come back from that page to the
"whole text" page and click on, say, the arrows of this scrolling field, the 
openfield message got sent and HC will take me back to the page I previously
was on, because the clicktext was not cleared.

So, given the environment, can any one come up with a neat solution?

Thanks in advance.

Victor Chen

derthanq@oregon.uoregon.edu
From: davids@gardener.lanl.gov (David G. Simmons)
Newsgroups: comp.sys.mac.hypercard
Subject: Report Printing Package
Date: 6 Nov 92 16:23:56 GMT
Article-I.D.: newshost.1992Nov6.162356.15788
Organization: Los Alamos National Laboratory
Originator: davids@feynman.lanl.gov


I read here a while ago about about an external package to extend the
report-printing capabilities (if you call them that) of HyperCard, but
I never saved the information. (When will I learn.  I might as well
just archive about 95% of what goes on here, since I am forever seeing
something, passing it by, and then having to ask about it later.)

Thanks for all the help.

-- 

David G. Simmons
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| "Redneckness has got to be a disease.  You catch it on your fingers and it  | 
| just *crawls* right up your sleeves." -Lyle Lovett			      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
These could not possibly be LANL's opinions.  I have not filled out the required
suite of forms in quadruplicate.
-- 

David G. Simmons
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| "Redneckness has got to be a disease.  You catch it on your fingers and it  | 
Newsgroups: comp.sys.mac.hypercard
From: murdoch, WA, Australia (kywong@csuvax1.murdoch.edu.au(Khoon Yoong Wong))
Subject: Two queries
Organization: external studies, murdoch university
Date: Mon, 9 Nov 92 04:29:23 GMT

Hello, HC experts out there! I have two queries:

(1) Have anybody used WILD THINGS before? Is it worth $285 for a copy? I hope
to use it to do animation and mathematics.

(2) AFter posting here for help with any XFCN or XCMD to plot math functions
without any response, I hope to write a Pascal program to do it. But what is
a good reference to start to learn to develop my own externals?
Will THINK PASCAL work for HC?
Organization: Science & Technology Center, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.mac.hypercard
Date: Wed, 11 Nov 1992 16:49:11 -0500 
From: "George J. Baxter" <gb2a+@andrew.cmu.edu>
Subject: XCMD getfieldTE 

Howdy,
    I'm trying to get a field TEHandle from inside a XCMD, and I'm
running into a bomb.. Here's a little clip of code:


					GetIndString (fld, 401,1);                  // getting field name
from rsrc
					newString = PasToZero(paramPtr, fld);       // convert to c-string
					HLock(newString);
					fldHdl = GetFieldTE(paramPtr,1,0,0,(unsigned char *)*newString); //boom

fldHdl is declared and a TEHandle, and 'fld' is a str255, newString is a
Handle.

'fld' is correctly the field name. (checked via SetFieldByXXX)

Any ideas?
-gjb
From: tal691@huxley.anu.edu.au (Tonio Loewald)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Creating Navigation Palettes in Hypercard 2.1...Help!
Date: 5 Nov 92 07:27:25 GMT
Organization: Australian National University
NNTP-Posting-Host: 150.203.2.12

Danny W. McCampbell <danny@utkux1.utk.edu> writes:

>Hi all.  I am starting a new stack and would very much like
>to implement a navigation palette instead of the standard
>buttons, etc.  I am familiar with the Palette Navigator command
>but I want to create my own custom palettes.  Could someone
>drop me a hint on how to get started doing this.  I would
>really appreciated it.  

>Thanks in advance.

>Danny McCampbell

The best and easiest way is to use the Power Tools stack that comes
with the HyperCard 2.x release package. This not only gives you
a palette-making utility but explains how to implement the palette
in your stack.

Tonio Loewald
-- 
Tonio Loewald            | Ph  06 290 1594 | PO Box 101 O'Connor
tal691@huxley.anu.edu.au | Fax 06 290 1595 | ACT 2601   AUSTRALIA

Xref: sparky comp.sys.mac.hypercard:4123 comp.sys.mac.programmer:18155
From: halam@ub.d.umn.edu (Haseen I. Alam)
Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer
Subject: need to export formatted text from HyperCard
Date: 8 Nov 1992 18:04:26 -0600
Organization: University of Minnesota, Duluth
Distribution: world
NNTP-Posting-Host: ub.d.umn.edu


Hi:

   I need a way to export formatted text out of Hypercard to Microsoft
   Word.  I have seen a stack on internet that can import RTF text.  But I
   need one that can save a text field as RTF from within HC.  Can someone
   point me in the right direction.  Thanks for your help.

   Please send replies via e-mail to halam@ub.d.umn.edu  

Haseen.
-- 
 .-------------------------------------------------------------------------.
 | "If you think I am expensive, wait  | email: halam@ub.d.umn.edu         |
 |     till you hire an amateur!"      |    or  st0404@AppleLink.Apple.Com |
 `-------------------------------------------------------------------------'
From: draper@odin.mda.uth.tmc.edu (E.J. Draper)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: external window probs
Date: 5 Nov 1992 18:27:00 GMT
Organization: U.T.M.D. Anderson Cancer Center
X-UserAgent: Nuntius v1.1.1d12
X-XXMessage-ID: <A71EC4933F01019A@mdarpi1.mda.uth.tmc.edu>
X-XXDate: Thu, 5 Nov 92 18:31:15 GMT

In article <cey3rKG00iV0M5y18i@andrew.cmu.edu> George J. Baxter,
gb2a+@andrew.cmu.edu writes:

>   test = &((XWEventInfoPtr)(paramPtr->params[1]))->event;

Here's a little code that I think will help out...

pascal void main(XCmdPtr paramPtr)
{
	if (paramPtr->paramCount == -1)
		DoEvent(paramPtr);
	else
		DoSetup(paramPtr);			
}

void DoEvent(XCmdPtr paramPtr)
{
	GrafPtr			savePort;
	EventRecord		myEvent;
	WindowPtr		myWindow;
	XWEventInfoPtr	myXWEventInfoPtr;
	
	myXWEventInfoPtr = (XWEventInfoPtr) (paramPtr->params[0]);
	myWindow = myXWEventInfoPtr->eventWindow;
	myEvent = myXWEventInfoPtr->event;

	GetPort(&savePort);
	SetPort(myWindow);
	ProcessEvent(paramPtr, myXWEventInfoPtr, myWindow, &myEvent);
	SetPort(savePort);
}


Does this help?


      |E|J-  ED DRAPER
 rEpar|D|<-  Radiologic/Pathologic Institute
             The University of Texas M.D. Anderson Cancer Center
             draper@odin.mda.uth.tmc.edu
Newsgroups: comp.sys.mac.hypercard
From: clas005@csc.canterbury.ac.nz
Subject: Re: How to get rid of the clicktext
Organization: University of Canterbury, Christchurch, New Zealand
Date: Thu, 5 Nov 1992 21:40:53 GMT

In article <4NOV199220221807@oregon.uoregon.edu>, 
derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen) writes:
> I am doing something using the clicktext in a field.  In the openfield handler
> I check the value of the clicktext.  If it is empty, do nothing, otherwise do
> something.
> 
> The problem I have is that when the sencond pass of using the clicktext, even
> thoug I do not click on anything, the clicktext still returns the previously
> clicked text.

It is absolutely true that the value The ClickText is persistent. 
But this just means you probably should not check that way. A mouseUp handler 
will have the virtue that it won't be called unless there was, at 
least, a click. Then, if the click was on a word, there will be 
clickText; if not, the clickText will be empty. Your difficulty 
is caused by the fact that you are checking in an openField 
handler.

If you *must* do it the way you are doing, use "click at the loc 
of me" to clear the ClickText. -- matt
From: yjc@po.cwru.edu (Jerome Chan)
Newsgroups: comp.sys.mac.hypercard
Subject: Apple Events
Followup-To: comp.sys.mac.hypercard
Date: 11 Nov 1992 21:58:20 GMT
Organization: The Tofu Society of Singapore
Distribution: world
NNTP-Posting-Host: b61539.student.cwru.edu

What is the proper synatx for sending and recieving apple events between
two hypercard stacks in HC 2.1?

---
The Evil Tofu
Newsgroups: comp.sys.mac.hypercard
From: brown@garfield.cs.mun.ca (Ed Brown)
Subject: Printer selection XCMD ?
Organization: CS Dept., Memorial University of Newfoundland
Date: Tue, 10 Nov 1992 12:53:45 GMT


I want to be able to select an output device, with the same effect
as using the chooser from the desktop. Is there an XCMD I can use
for this purpose?

Email please. I don't subscribe to mac.hypercard.

Ed Brown
brown@cs.mun.ca
Organization: Doctoral student, Social & Decision Sciences, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.mac.hypercard
Date: Fri, 13 Nov 1992 14:57:49 -0500 
From: "Kenneth L. Simons" <ks3y+@andrew.cmu.edu>
Subject: HyperCard Player compatibility

I have heard that it's important to test HyperCard stacks with the new
Player, to make sure that they work with the Player.  Do I really need
to test this?  Will I need to modify my HyperCard code, or something
else about my stacks, to make them compatible?

Thanks in advance,

- Ken Simons
Organization: University of Illinois at Chicago
Date: Monday, 9 Nov 1992 12:58:18 CST
From: Theodore Stresen-Reuter <U42075@uicvm.uic.edu>
Newsgroups: comp.sys.mac.hypercard
Subject: com Problem with vis effect under buttons

Hello networld,

I want to thank everyone who responded to my last post about hiding and
showing fields.  This is definately one of the most responsive groups I
have encountered.

Now that you are all buttered up...

I have been having a problem getting the vis effect to work under
certain buttons (most).  It is as though it ignored the command
altogether and just used the default effect.  In particular this happens
when I am hiding and showing fields.  The strange part is that it is
inconsistant.

The script looks like this:
if the short name of me is "Show Paraphrasing" then
  lock screen
  show background field "Paraphrasing"
  unlock screen with visual effect iris open
  set the name of me to "Hide Paraphrasing"
  set hilite of me to true
else
  lock screen
  hide background field "Paraphrasing"
  unlock screen with iris close
  set the name of me to "Show Paraphrasing"
  ser the hilite of me to false
end if

Has anybody else had this problem, know of a remedy?

Thanks ahead of time,

     Theodore Stresen-Reuter
     u42075@uicvm.cc.uic.edu
     Interactive design enthusiast and Spanish teacher

Newsgroups: comp.sys.mac.hypercard
From: csplr@trentu.ca (Peter L. Rukavina)
Subject: Bugs in HyperCard 1.2?
Organization: Trent University, Ontario
Date: Mon, 9 Nov 1992 17:48:31 GMT

I've recently set up a Mac IIcx which was configured with version 1.2 of
Hypercard.  There seems to be numerous bugs in the program, most centred
around trying to do things -- like selecting text styles and editting
scripts with a SHIFT+souble click -- that it mangles when you try and do
them to a "background" but which it has no trouble doing otherwise.  Is
this a well-known fault, or am I doing something wrong?

In addition, I get the sense that I'm not using the most recent version
of Hypercard... are upgrades free and where do I get them?

Thanks.
From: KGODDEN@cmsa.gmr.com
Newsgroups: comp.sys.mac.hypercard
Subject: changing delimiter char??
Date: 6 Nov 92 15:08:24 GMT
Organization: GM Research Labs

If I have a string say, "a b c" and get the second word, it'll return "b"
because the space is a delimiter.  I am pretty sure that there is a way
to *change* the delimiter to any character, say '^', but I cannot find any
reference to this in the Hypertalk reference manual.  Can someone please
tell me how to do this?  I think there is a parameter to set.  What I *really*
want to do is have  a string like "foo bar^fubar^fu the bar^..." and if I
get the FIRST 'word' (or item?) it should return "foo bar" and so on.
If anyone posts an answer before Monday, could you please also send me
email at foobaz@AOL.com
so I can read it at home during the weekend?
Thanks!!!!!!!!!!!!!!
-Kurt
-------------
"I distrust a research person who is always obviously busy on a task."
-Robert A. Frosch, VP, GM Research
Newsgroups: comp.sys.mac.hypercard
From: davids@gardener.lanl.gov (David G. Simmons)
Subject: Re: Hiding the menubar
Originator: davids@feynman.lanl.gov
Organization: Los Alamos National Laboratory
Date: Mon, 9 Nov 1992 22:00:44 GMT


In article <1992Nov06.173256.94175@bmug.org>, Aaron_S._Friedman@bmug.org writes:
|> Is there a script I can put into a stack that hides the menubar ONLY if the
|> screen is 9"?
|> ***************************************************************************
|>              From Planet BMUG, the FirstClass BBS of BMUG, Inc.
|>               The above message was gatewayed via PostalUnion
|> ***************************************************************************
|> The message contained in this posting is entirely the poster's personal
|> opinion.  Any possible, real or perceived, (dis)similarities with the
|> views held by BMUG, are purely coincidental.
|> ***************************************************************************

If the screenRect is "x,x,y,y" then --I don't remember the rect of a 9"
type commandkey & space

As long as you give it the correct screenRect, it should recognize it.

-- 

David G. Simmons
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| "Redneckness has got to be a disease.  You catch it on your fingers and it  | 
| just *crawls* right up your sleeves." -Lyle Lovett			      |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
These could not possibly be LANL's opinions.  I have not filled out the required
suite of forms in quadruplicate.
-- 

David G. Simmons
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| "Redneckness has got to be a disease.  You catch it on your fingers and it  | 
Newsgroups: comp.sys.mac.hypercard
From: yeidel@tomar.accs.wsu.edu (Joshua Yeidel)
Subject: Re: JPEG image viewing in Hypercard
Reply-To: yeidel@tomar.accs.wsu.edu (Joshua Yeidel)
Organization: Academic Computing Services, Washington State University
Date: Fri, 13 Nov 92 18:37:48 GMT


In article <1992Nov13.134656.21707@noose.ecn.purdue.edu>, henstock@ecn.purdue.edu (Peter V Henstock) writes:
|>From: henstock@ecn.purdue.edu (Peter V Henstock)
|>Subject: JPEG image viewing in Hypercard
|>Organization: Purdue University Engineering Computer Network
|>Lines: 9
|>
|>Anybody have any information or know where to find a JPEG
|>viewer for use from Hypercard.  We have a viewer which does
|>GIF's but we are setting up a picture database which will eat
|>up too much space so we're trying to use JPEGs only we cannot
|>locate a viewer.
|>
|>Thanks in advance,
|>
|>--Peter
|>

We have been using the JPEG compressor in QuickTime and the Hypercard
"picture" XCMD that ships with HC with good success.  We get typical
compression ratios from, 6:1 to 12:1 without noticable degradation
(depending on the particular image).  The "picture" XCMD accesses
compressed PICTs and uncompressed PICTs transparently;  QuickTime
takes care of it.

However, be aware that you need processor power and memory for the 
decompression.  Also, this compression is "lossy", so the decompressed
image is not bit-for-bit identical to the original.  This usually
is not a problem if all you want it to display the image (and your
application is not e.g. medical imaging);  but we have found that
decompressing a picture, modifying it (for example by adding callouts), and recompressing it can lead to noticable artifacts (unwanted color blotches).
In short, we have come to the conclusion that lossy compressed images are
not really "archival" quality.  So we maintain an archive of never-compressed images, but use compressed ones for every-day...

 --
Joshua Yeidel               | yeidel@tomar.accs.wsu.edu
Academic Computing Services | All standard disclaimers apply
Washington State University |   "Believe it if you need it, 
Pullman, WA 99164-1226      |     or leave it if you dare..."
509/335-0441                |         -- Robert Hunter
From: ph@physiology.oxford.ac.uk (Patrick Haggard)
Newsgroups: comp.sys.mac.hypercard
Subject: draw polygon from message box
Date: 6 Nov 92 16:48:50 GMT
Organization: Physiology Department, Oxford University, Oxford, UK.
Originator: ph@galen.physiol


Hi.  How can I draw a polygon from message box or a script?  using
choose polygon tool
click at x1,y1
click at x2,y2
click at x1,y1 -- again
doesn't work.

Thanks.
--------------------------------------------------------------------------
Patrick Haggard                         Email (WORLD): ph@physiol.ox.ac.uk
University Laboratory of Physiology     Email (JANET): ph@uk.ac.ox.physiol
Parks Road,                             Tel. (0865) 272116
Oxford, OX1 3PT                         Fax. (0865) 272469
England
--------------------------------------------------------------------------
Newsgroups: comp.sys.mac.hypercard
Distribution: world
From: Joseph_E._Wood@bmug.org
Organization: BMUG, Inc.
Date: Mon, 09 Nov 1992 01:03:31 PST
Subject: Re: I need a book on Hypercard

I will be traveling to london in December of 92. I could bring you the book
"The Complete Hypercard 2.0 Handbook" by Danny Goodman. I've used my copy
starting as a beginner two years ago and found it very helpful
***************************************************************************
             From Planet BMUG, the FirstClass BBS of BMUG, Inc.
              The above message was gatewayed via PostalUnion
***************************************************************************
The message contained in this posting is entirely the poster's personal
opinion.  Any possible, real or perceived, (dis)similarities with the
views held by BMUG, are purely coincidental.
***************************************************************************
Newsgroups: comp.sys.mac.hypercard
From: cheri@decoy.cc.bellcore.com
Subject: Constant bg fld
Organization: TheNews 
Distribution: usa
Date: Fri, 13 Nov 92 15:04:22 GMT

Hi,

Is there any way for the *contents* of a background field to be shared across
cards?  I'm currently copying the contents into the fld every time I open a
card, but that's a pain!

To be more specific about my problem, I have a scrolling list of categories
(which is a bg fld) to which users can add.  The list of all categories must be
displayed on each card.  I'm running SuperCard 1.6 (if that's relevant).

Thanks.

-- Cheri (cheri@decoy.cc.bellcore.com)
From: crahn@carroll1.cc.edu (Christopher J Rahn)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Hypercard and servers?
Date: 5 Nov 92 20:05:18 GMT
Organization: Carroll College-Waukesha, WI

Hello again.  I am inquiring about networking on the Macintosh.  I did this
before, and people told me to use the send command.  Here is my situation:

I am trying to write a game in HyperCard 2.1.  I would like to have a
master stack, and a slave stack.  I have a scrollable field in both, and
would like to send a message back and forth to the stack.

I could do something like put line 1 of card field x into it.  However, how
do I send the contents using the command send?

If I try to run HyperCard from the same server, it says that the appication
is busy.  

Help! :)

e-mail crahn@carroll1.cc.edu