Re: root directory ID in MacOS

1999-11-29 Thread Phil Davis
RE-DO!! Try this: set the itemDelimiter to "/" ---ERROR--- #get the long name of this stack ---END ERROR--- get the filename of this stack delete last item of it put it into tTopDirectory set the directory to tTopDirectory Then prepend file and subdirectory references with tTopDirecto

Re: root directory ID in MacOS

1999-11-29 Thread Phil Davis
Try this: set the itemDelimiter to "/" get the long name of this stack delete last item of it put it into tTopDirectory set the directory to tTopDirectory Then prepend file and subdirectory references with tTopDirectory. Or, you can refer to the files (and subdirectories?) in the curren

Re: Detecting ClickChar?

1999-11-29 Thread Phil Davis
Peter Reid wrote: > > > > The problem I'm having is that I can't easily work out which half of > > > a hot word the user has clicked into. I can get the ClickText() for > > > the whole word and the ClickChunk() tells me the chars of the whole > > > word. The ClickLoc() gives me a coordinate pa

root directory ID in MacOS

1999-11-29 Thread Rob Pitt
My MC project is on CD-ROM for size and security reasons. I want to allow users to customise various parts of the project (page headers, buttons etc) from text files in a folder on their hard drive - preferably in a folder at the first level. My script works fine but I am struggling with a path fo

Re: Make Filter not case sensitive

1999-11-29 Thread Phil Davis
The caseSensitive property controls how the "filter" command acts. So when your script says: set the caseSensitive to false filter theContainer with "*is*" ... the filtered result could contain "MISS", "bliss", "Is it time yet?", etc. HTH Phil Geoff Canyon wrote: > > Is there a way to make

Data saving

1999-11-29 Thread Mary Bull
In response to a question about saving data in standalones, Marni Centor wrote: > I create courseware with MetaCard, and I use my standalone stack to show a > splash screen animation and then launch a menu stack. The menu stack then > launches my various courseware stacks. I can track user progre

Make Filter not case sensitive

1999-11-29 Thread Geoff Canyon
Is there a way to make the filter command not case sensitive, short of (for example) filtering by [tT][eE][sS][tT] to find all lines where test occurs, regardless of case? Thanks geoff canyon [EMAIL PROTECTED]

RE: Standalone building and data saving

1999-11-29 Thread Marni Centor
> -Original Message- > From: Gregory Lypny [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 29, 1999 1:46 PM > To: [EMAIL PROTECTED] > Subject: Standalone building and data saving > > > Hi List Members, > > I hope you'll humour me in my asking these two naive questions. > >

Re: Detecting ClickChar?

1999-11-29 Thread Dave Cragg
At 5:03 PM + 29/11/1999, Peter Reid wrote: > on gotoLine theLine,theField >lock screen >if there is a field "Scratch" then delete field "Scratch" >clone field theField >set the name of field id (word 3 of it) to "Scratch" >delete line theLine-2 to -1 of field "Scratch" >

Standalone building and data saving

1999-11-29 Thread Gregory Lypny
Hi List Members, I hope you'll humour me in my asking these two naive questions. The first is on developing MC stacks on the Mac, and then creating standalones for both Macs and Windows. Is my understanding correct that to build a standalone for Windows, I must run the Standalone Bu

Re: Detecting ClickChar?

1999-11-29 Thread Peter Reid
>On 29/11/99 4:08 pm, Peter Reid at [EMAIL PROTECTED] wrote: > > > This fails (I'm using MC 2.2.5 on a Mac) with an error message saying > > "bad text attributes, can't get object attributes" which implies that > > the function doesn't work with a text chunk! I tried this with: > > > > put the fo

Re: Detecting ClickChar?

1999-11-29 Thread Peter Reid
>Use the formattedHeight function to determine how far down you need to go. >You can ask for the formattedHeight of a chunk of text, e.g.: > >the formattedHeight of line 1 to 60 of fld 1 > >Note that selecting the text by script will also scroll the field. (If you >have any trouble putting togeth

Re: Detecting ClickChar?

1999-11-29 Thread Kevin Miller
On 29/11/99 4:08 pm, Peter Reid at [EMAIL PROTECTED] wrote: > This fails (I'm using MC 2.2.5 on a Mac) with an error message saying > "bad text attributes, can't get object attributes" which implies that > the function doesn't work with a text chunk! I tried this with: > > put the formattedHeig

Re: Detecting ClickChar?

1999-11-29 Thread Peter Reid
> > The problem I'm having is that I can't easily work out which half of > > a hot word the user has clicked into. I can get the ClickText() for > > the whole word and the ClickChunk() tells me the chars of the whole > > word. The ClickLoc() gives me a coordinate pair, but I can't see how > > to

Re: Detecting ClickChar?

1999-11-29 Thread Peter Reid
>Hi Peter, >Try the mouseCharChunk - in theory there's room for it to not work every >time, but in practical terms it'll probably do the job consistently and >well. The mouseCharChunk will tell you what char of a word has the mouse >hovering over it at a given moment. With execution speeds being w

Re: Detecting ClickChar?

1999-11-29 Thread Kevin Miller
On 29/11/99 9:07 am, Peter Reid at [EMAIL PROTECTED] wrote: > I'm trying to implement a simulation of a system that displays HTML > information with hot links. However, the tricky 'extra' is the fact > that each single word/phrase hot link is actually treated as two > halves with a click on the

Re: Detecting ClickChar?

1999-11-29 Thread Phil Davis
Hi Peter, Try the mouseCharChunk - in theory there's room for it to not work every time, but in practical terms it'll probably do the job consistently and well. The mouseCharChunk will tell you what char of a word has the mouse hovering over it at a given moment. With execution speeds being what t

Detecting ClickChar?

1999-11-29 Thread Peter Reid
I'm trying to implement a simulation of a system that displays HTML information with hot links. However, the tricky 'extra' is the fact that each single word/phrase hot link is actually treated as two halves with a click on the first half of a hot word taking you backwards and a click on the