The selectedChunk etc.

2001-08-18 Thread Bruce Lewis

:David Bovill wrote:
:
: I have a field in a stack and a substack that I open as a palette. I
want to
: know what field has the selection point inside it when I click on the
: palette, and having problems help appreciated:

Jacqueline Landman Gay wrote:
:
:To compensate, I had to do an ugly work-around. Maybe someone else knows
:a better approach, but this seems to work:

I raised the same issue with Kevin a while ago and he responded;


The problem is that the selection is lost when you switch to the palette if
only an insertion point is present and not a selection.  This is a known
issue and we'll try to get it resolved soon.  In the mean time, you may be
able to work around this problem in the development UI by using the
unsupported gREVChunkStore variable (we had this same problem so implemented
this as a workaround!).


My own comments are:

1. If I am not mistaken, exactly the same situation prevails in HyperCard.
If only an insertion point is present a palette button doesn't get the
selection, but if any chars are selected the btn does get the selection.

 2. I was nervous about implementing Kevin's suggestion--same would apply
to Jacque's.

My palette does things to the selectedLine. Sometimes these are
destructive. When  you can actually see the selection there is no problem.
When the handler works on the global, the wrong selection could at some
time be in the global. Maybe not in a perfect world, but I am nervous about
it with my level of skills.

Therefore, I have decided simply to live with the situation and force the
user to make a selection of one or more characters--same as I did with
HyperCard.

Comments?

Bruce
-- 
Bruce Lewis
Lewis  Collyer
160 John Street, Suite 401
Toronto, Ontario
Canada  M5V 2E5
(416) 598-4357
FAX (416) 598-1067
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




URGENT SCRIPTING NEEDED --

2001-08-18 Thread A Oliver


PLEASE REPLY SEPERATLY TO [EMAIL PROTECTED]PLEASE
DON'T REPLY ONTO THE METACARD EMAIL LIST AS I DON'T HAVE ALOT OF TIME TO
SEARCH DOWN EVERY EMAIL.
PROBLEM DETAILS:
I have a project that I need to go onto a cd-rom as a part of a
government project @ work.What I need is a script to run only once when
the stack opens. Reason being is that I can't put all the stack locations
into scripts.. for example: c:\project\mainstack.mc because then this forces
them to copy to their harddrive. It is going to be 700MB, what happens
if they don't have that much space? -well they can';t use it.
outline: what I need..
On OpenStack
{set a global field in the stack to the location of where this file
is opened} - so for example it will set a global field called "location"
to x:\[folder]\ (where x is the drive letter of where it is opening from.
If this can be achieved then how do i recall it
for example: (I want to open a file in the same folder called "credits.mc")
A Button called Credits has to do:
open "{location} (as defined before as the location) \credits.mc"
therefore printing below:
open "e:\project\credits.mc" -- where e: is the drive and project
is the name of the folder

If you can send script or something to help me with this it is greatly
appreciated.


Re: MacTech Programmer's Challenge

2001-08-18 Thread Scott Raney

On Sat, 18 Aug 2001 David Bovill [EMAIL PROTECTED] wrote:
 
 I'm sort of working on something like this at the moment - which brings up
 the problem I'm having creating flow diagrams...
 
 I want to be able to position groups - and it would be so much easier if I
 could use the pointer tool to do this and still trap for messages like
 mouseMove or whatever - but the only thing I can trap seems to be
 selectedObjectChanged (apart from the mysteries of the control key menus)...
 
 I guess I can simulate it, and simulate the move and resize handles but I
 wish that I could still have messages in paint and pointer/selection tool
 modes
 
 Any tricks I am missing?

The messages you want *are* sent when you have the pointer tool,
they're just swallowed by the main development-environment front
script.  You'll need to either remove that while testing, or put your
own script in front of that with insert script.  The messages aren't
sent when you have a paint tool in 2.3.X, but are in 2.4. You can get
the final beta of that in the directory:
ftp://ftp.metacard.com/MetaCard/2.4/
  Regards,
Scott


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: MacTech Programmer's Challenge

2001-08-18 Thread David Bovill

Way cool!

 From: Scott Raney [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 Aug 2001 20:04:58 -0600 (MDT)
 To: [EMAIL PROTECTED]
 Subject: Re: MacTech Programmer's Challenge
 
 The messages you want *are* sent when you have the pointer tool,
 they're just swallowed by the main development-environment front
 script.  You'll need to either remove that while testing, or put your
 own script in front of that with insert script.  The messages aren't
 sent when you have a paint tool in 2.3.X, but are in 2.4. You can get
 the final beta of that in the directory:
 ftp://ftp.metacard.com/MetaCard/2.4/
 Regards,
 Scott

NB - how come these email lists turn us all into Americains - I'd never say
*that* over here -:)


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: FTP in 2.4

2001-08-18 Thread David Bovill

Damn - and I just spent half a day getting it working from  your FTP-Q
stack!

 From: Andu [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Sat, 18 Aug 2001 16:30:10 -0400 (EDT)
 To: [EMAIL PROTECTED]
 Subject: Re: FTP in 2.4
 
 
 Anyone know how to use LibURL to ftp? Any help text on this?
 
 put url ftp://ftp.metacard.com/; with /, returns the directory
 put url user:password@ftp://ftp.metacard.com/; with authentication
 put url ftp://ftp.metacard.com/MetaCard/linux.tgz; returns file
 put data into url Y uploads files
 set ftpActive() for active (as opposed to passive) transfers
 
 ...and make sure you report any bugs.
 


Will do Andu. NB how does the syntax work with the library - take it this is
something done in 2.4? But what get's sent to the library with each of the
above?

Also are you working on the POP/SMTP library as well?


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: put image 1....

2001-08-18 Thread Monte Goulding

The 2.4 docs say you can export to a container so I guess you can export to
a url???

- Original Message -
From: David Bovill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 19, 2001 1:16 PM
Subject: put image 1


 When you treat images as containers, what format is the data actually in.
If
 the original image brought into Metacard was a GIF/JPEG - do they *stay*
in
 that format, or are they converted to a standard internal representation?

 I need to know because I want to FTP images direct form the image
containers
 - not after exporting them to a file if possible.


 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.