Re: Feature request: tooltip

2002-03-21 Thread Sjoerd Op 't Land

Paul Kocsis wrote/ schreef:

> This may sound simple, and if there's a way to do it already, then I
> apologize for labeling this as a "feature request"...but...for my
> application it would be quite useful if a tooltip could display in something
> other than a single line.  I'd like to be able to populate a tooltip with
> several lines (lines separated by lineFeed characters) and have the tooltip
> pop up as a small rectangular window instead of one long line :)
A good idea! Also, MC should wrap the text to the next line, when the
tooltip wouldn't fit on the screen for some reason.

Regards, / Groeten,
Sjoerd

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: icon id 3001 where are you?

2002-03-21 Thread Sjoerd Op 't Land

erik hansen wrote/ schreef:

> the custom icons created in HC and opened in MC
> cannot be found. in HC they are referenced to the
> stack and appear in the icon window with the id
> the creator chooses. guys 4001 etc., dolls 3001
> etc. where they can be edited. after going
> through tutorials, concepts, and references, re:
> icons & images, the dancers remain elusive. "My
> Icons" shows no trace, "Icon Chooser"- nothing.
> 
> are custom icons supposed to show up somewhere to
> be edited? or could my "Properties" dialog bug be
> the culprit...
Some things about icons here... (came from HC myself so...)

In MC, icons are nothing more than ordinary image objects. If you want to
make your icons, you need to import the desired image (as gif or jpeg),
remember its ID, place it offscreen or hide it. Then take a button object,
and set it's icon to the ID, remember?

In HC, icons are stored as ICN# resources, and wont be used when a HC stack
is imported into MC.

The solution? Try to extract the resources from your HC stack, and import
them in your MC stack. (Maybe this can be done with GraphicConverter).

Regards, / Groeten,
Sjoerd

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Richard Gaskin

Shari wrote:

>> Because all your mac flavors will have a resource fork, you should
>> use it for your icons.  On OS X, you have to really dive in there
>> with resedit to get your  icons to look just right.
> 
> OSX supports a resource fork?  I had heard that it didn't.  Though I
> haven't experienced OSX first hand...

Welcome to NeXT -- er, Apple.  ;)

The NeXT folks that now run much of the OS development wanted to ditch the
resource fork altogether.  But after much feedback from developers they
acquiesced enough to allow the resource for during an unspecified
transitional period.

Same for creator codes, the long-term future of which is still largely
unknown at this time.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.9: Publish any Database on Any Site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Ken Ray



Charles, you need to create a 16-color (NOT 16-bit color, but 
16 colors) icon. I use GraphicConverter, which does a wonderful job. Import/open 
a 32x32 graphic, downsample it to 16 colors, and then save it in "Windows Icon 
(*.ico)" format. Voila!
 
Ken RaySons of Thunder SoftwareEmail: [EMAIL PROTECTED]Web site: http://www.sonsothunder.com/

  - Original Message - 
  From: 
  Charles 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, March 21, 2002 3:31 
  PM
  Subject: Re: Building standalones
  I've tried to do this before, but can't seem to create an .ico 
  file that will be accepted. (I'm a Mac user, mainly, maybe that add to the 
  mystery for me.)How do you do this?What software and/or process do you 
  use?Do you have to do anything special for XP?On Thursday, March 
  21, 2002, at 12:48 PM, Mark Talluto wrote:
  
[snip]...Is there a icon id # I can use to embed a custom 
  icon, and have Metacard use it? Or would the goal be to edit the icon 
  stack of Metacard (the one that gets embedded...?)On the 
Win side of things, you can set the icons from within the standalone 
builder.-Mark Talluto- 
  Charles---Charles BuchwaldPeregrine New 
  MediaVictoria, BC, CanadaBoston, MA, USA


Re: Building standalones

2002-03-21 Thread Shari

>Because all your mac flavors will have a resource fork, you should 
>use it for your icons.  On OS X, you have to really dive in there 
>with resedit to get your  icons to look just right.

OSX supports a resource fork?  I had heard that it didn't.  Though I 
haven't experienced OSX first hand...
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Charles
I've tried to do this before, but can't seem to create an .ico file that will be accepted. (I'm a Mac user, mainly, maybe that add to the mystery for me.)
How do you do this?
What software and/or process do you use?
Do you have to do anything special for XP?

On Thursday, March 21, 2002, at 12:48 PM, Mark Talluto wrote:
[snip]...
Is there a icon id # I can use to embed a custom icon, and have Metacard use it?  Or would the goal be to edit the icon stack of Metacard (the one that gets embedded...?)
On the Win side of things, you can set the icons from within the standalone builder.

-Mark Talluto

- Charles
---
Charles Buchwald
Peregrine New Media
Victoria, BC, Canada
Boston, MA, USA

Re: Building standalones

2002-03-21 Thread Mark Talluto

> As this is for compiling on Mac, OSX and Windows, a resource fork is 
> out.
>
> Attempting a build once, compile three times scenario :-)
>
> So presumably I'd just paste the preferred icon in the finder window? I 
> remember in Hypercard, that was not the optimal choice, and I'd go into 
> the resource fork...
Because all your mac flavors will have a resource fork, you should use 
it for your icons.  On OS X, you have to really dive in there with 
resedit to get your  icons to look just right.

>
> But the goal is NOT to have a resource fork, so I'm definitely trying 
> to learn a new way for this.
There is no way around not have a resource fork.  Your app must have one 
once it is a standalone.  All kinds of data is managed there anyways.  
MC puts its standard icons there.

>
> Is there a icon id # I can use to embed a custom icon, and have 
> Metacard use it?  Or would the goal be to edit the icon stack of 
> Metacard (the one that gets embedded...?)
On the Win side of things, you can set the icons from within the 
standalone builder.


-Mark Talluto

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



RE: Temporary picts

2002-03-21 Thread Yates, Glen

Wow, thanks! It's been a while since i've been called a dreamboat. :-)

As to your question, yes if a playstopped handler is in the current
execution chain, then it will get called anytime a sound (or for that matter
a video) stops playing. And, yes setting a global when you played a sound
that you didn't want to initiate the playing of your whole series of sounds
would be one way to go. Another method would be to use the argument that
playstopped returns. It returns the name of the audioclip, videoclip, or
player that has just stopped, so you could potentially make decisions based
on this. Here's a quick dumb example.

on playstopped theSound
if theSound is "play it again sam.wav" then
playMySounds
end if
end playstopped

Keep in mind, I'm not saying the above way is any better than using a
global, just that it's another way.

Oh, well, back to my own Metacard problems. Don't know why it always seems
more easy and fun to help others with their problems.

-Glen Yates

Shari Wrote:
> It worked!
> 
> It worked!  It worked!  It worked!
> 
> YOU ARE A DREAMBOAT!
> 
> (big huge happy grin)
> 
> Question:
> 
> As playstopped will get called when other sounds are played in other 
> handlers, won't it be calling PlayMySounds other times, too? 
> Presumably the number in soundCount would prevent anything from 
> actually happening... but it will be called?
> 
> Though I could create a global to trap for that... and depending on 
> the contents of that global, is what would happen on playStopped...
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Ken Ray

Cool! I'll update my copy right away... :-)

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web site: http://www.sonsothunder.com/

- Original Message - 
From: "Mark Talluto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 12:42 PM
Subject: Re: Temporary picts


> 
> On Thursday, March 21, 2002, at 10:21 AM, Ken Ray wrote:
> 
> > Shari,
> >
> > GraphicConverter will work on PICT resources in a stack, so you don't 
> > need
> > to worry about that aspect of the batch conversion. Setting the
> > transparency, however, is another matter...
> 
> The transparency can be handled as well by GC.  It is now one of the 
> batch process options.
> 
> -Mark
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
> 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread J. Landman Gay

Shari wrote:
> 
> As this is for compiling on Mac, OSX and Windows, a resource fork is out.

You'll need three different standalones, one for each platform. Since
the Mac versions will only run on Macs, having a resource fork is not a
problem. MetaCard will always create a resource fork for a Mac
standalone anyway -- it has to, since all the MC code resources are
there, and Mac applications built for OS 9 and below always require a
resource fork. Since the fork is there anyway, there is no problem
adding a few more resources of your own.

To get a custom icon, go ahead and do it the same way you did in
HyperCard. You can edit the icon resources in the resource fork after
the build.

After building a Windows standalone, there won't be a resource fork. For
the Windows build, you will need a pre-prepared icon with very specific
properties (16 bit, 4 color, built with a Windows tool usually. I can't
get Graphic Converter's "ico" format to be accecpted by MC.) The Windows
icon needs to be specified in the Windows information dialog in the
standalone builder, before the build is done. You can't easily add a
windows icon to a standalone after the fact, since most tools that can
do that look for 32-bit icons and MC doesn't support those (I wish it did.)

Another tip for a Windows build: if you don't put anything into each
field in the Windows info dialog, you will get MetaCard's defaults after
the build. You can substitute a few spaces for actual text if you want
the field to look empty. These fields are what people see when they
choose "Properties" on the standalone's contextual menu in Windows.

So the general rule is: add Windows resources and information before the
build, add Mac resources afterward.

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Mark Talluto


On Thursday, March 21, 2002, at 10:21 AM, Ken Ray wrote:

> Shari,
>
> GraphicConverter will work on PICT resources in a stack, so you don't 
> need
> to worry about that aspect of the batch conversion. Setting the
> transparency, however, is another matter...

The transparency can be handled as well by GC.  It is now one of the 
batch process options.

-Mark

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



RE: Temporary picts

2002-03-21 Thread Shari

It worked!

It worked!  It worked!  It worked!

YOU ARE A DREAMBOAT!

(big huge happy grin)

Question:

As playstopped will get called when other sounds are played in other 
handlers, won't it be calling PlayMySounds other times, too? 
Presumably the number in soundCount would prevent anything from 
actually happening... but it will be called?

Though I could create a global to trap for that... and depending on 
the contents of that global, is what would happen on playStopped...

>global soundCount
>global soundList
>
>on openCard
>   put 1 into soundCount
>   put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" into
>soundList
>   playmysounds
>end openCard
>
>on playMySounds
>   if soundCount <= the number of items of soundList then
> play audioclip (item soundCount of soundList)
> put soundCount + 1 into soundCount
>   end if
>end playMySounds
>
>on playstopped
>   playMySounds
>end playstopped
>
>
>Good Luck!
>-Glen Yates

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Ken Ray

Shari,

GraphicConverter will work on PICT resources in a stack, so you don't need
to worry about that aspect of the batch conversion. Setting the
transparency, however, is another matter...

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web site: http://www.sonsothunder.com/

- Original Message -
From: "Shari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 21, 2002 12:03 PM
Subject: Re: Temporary picts


> >If all you need to do is to convert those 1000 images from some current
> >format to gif/jpg, you could do it a lot more quickly by batch processing
> >them in GraphicConverter.  Just a thought...
>
> They are currently pict resources in a Hypercard stack.  They aren't
> anywhere as separate files on disk.
>
> Some of them are rectangular.  Some are very small and oddly shaped,
> so the transparency color would have to be set.
> --
> --Shareware Games for the Mac--
> http://www.gypsyware.com
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
>

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Repeating sounds [was Re: Temporary picts]

2002-03-21 Thread Shari

>Try this (watch out for line wraps):

Will try it and let you know
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Shari

>>Resource Mover - I open the Resource Mover dialog, then open my 
>>stack, click the resources I want to move, click Start Move, and 
>>nothing happens.  How can I tell if anything was moved?  I did not 
>>find any new stacks in the substacks menu.
>Make sure that you have the correct stack labeled in the button at 
>the top of the resource mover.  You should have your stack listed 
>there.  After you move the resources, if all when well, you will get 
>a message stating so.

Discovered the problem here... the Home stack needs to be open for 
this to work :-)

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Shari

>  > Standalone Builder - Creator - in Hypercard I always chose to use a
>>  custom creator code.  Presumably this means the same thing?
>
>Yes. Keep in mind that in order for your standalone to have the icon you
>want (on Mac), you'll need to use ResEdit (or the equivalent) to edit the
>resource fork and put in your icon.

As this is for compiling on Mac, OSX and Windows, a resource fork is out.

Attempting a build once, compile three times scenario :-)

So presumably I'd just paste the preferred icon in the finder window? 
I remember in Hypercard, that was not the optimal choice, and I'd go 
into the resource fork...

But the goal is NOT to have a resource fork, so I'm definitely trying 
to learn a new way for this.

Is there a icon id # I can use to embed a custom icon, and have 
Metacard use it?  Or would the goal be to edit the icon stack of 
Metacard (the one that gets embedded...?)

The first standalone builds so far did not work.  Got the engine etc. 
and moved the necessary resources, but the final program failed to 
function.  It never made it out of the splash stack.  (It opens a 
splash stack, then opens a second stack in the splash stack's window, 
then opens a third stack in a new window.  The second and third stack 
never opened in the standalone, though they open perfectly in the 
stack.  They are embedded into the splash stack.)

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Mark Talluto


On Thursday, March 21, 2002, at 08:54 AM, Shari wrote:

> Questions...
>
> Resource Mover dialog - if I DON'T move any resources, and my stack 
> uses items such as the "saving" stack, those will not be included, or 
> will it just include the entire mctools.mc, or will I need to 
> distribute it with the mctools.mc?
If you are going to make a standalone, you will need to at least move 
over the answer and ask dialogs if you use them.  I also use the cursors 
and icons.  These are just stacks that will be added to your program.

>
> Resource Mover - my stack doesn't have a resource fork, as I am 
> distributing cross platform, this will not create a resource fork, will 
> it?
Only the Mac version will have the resource fork.  That is created when 
the stack is turned into a standalone.  The resource mover just brings 
in important stacks you code may call upon like the answer dialog.  You 
win version will work as expected even if you create it on the Mac.
>
> Resource Mover - I open the Resource Mover dialog, then open my stack, 
> click the resources I want to move, click Start Move, and nothing 
> happens.  How can I tell if anything was moved?  I did not find any new 
> stacks in the substacks menu.
Make sure that you have the correct stack labeled in the button at the 
top of the resource mover.  You should have your stack listed there.  
After you move the resources, if all when well, you will get a message 
stating so.

-Mark Talluto

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Windowshape

2002-03-21 Thread J. Landman Gay

The new "windowshape" property is really, really super cool. I'm
impressed. 

I did run into a problem though and would like verification before I bug
report it. I imported an image, set the windowshape, added a card
script, and saved the stack. No problem. Tinkered some more, saved
repeatedly. No problem. Closed the stack, quit MetaCard, went to bed.
This morning I launched MetaCard and tried to open the stack, and got
the "stack is corrupted" error that tells you to look for the "~backup"
file. There is no such backup, which tells me that the original saves
were okay. So, has anyone else had a problem re-opening a stack that has
been saved with a custom window configuration?

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Shari

>If all you need to do is to convert those 1000 images from some current
>format to gif/jpg, you could do it a lot more quickly by batch processing
>them in GraphicConverter.  Just a thought...

They are currently pict resources in a Hypercard stack.  They aren't 
anywhere as separate files on disk.

Some of them are rectangular.  Some are very small and oddly shaped, 
so the transparency color would have to be set.
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



RE: Temporary picts

2002-03-21 Thread Shari

Glen,

The trouble I encountered was that the sounds are in conjunction with 
either an "answer" dialog or a stack that opens instead of the 
"answer" dialog to impart information while the sounds are playing. 
Both "answer someInfo" and opening a stack messed up the works, 
preventing the sounds from playing properly.

Shari


>Wow, your long version looks like a pain to implement. I came into this
>thread late so forgive me if this has already been suggested, but have you
>tried using 'on playStopped' to string your sounds together. Here's a little
>code I just wrote a few minutes ago to do this.
>
>global soundCount
>global soundList
>
>on openCard
>   put 1 into soundCount
>   put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" into
>soundList
>   playmysounds
>end openCard
>
>on playMySounds
>   if soundCount <= the number of items of soundList then
> play audioclip (item soundCount of soundList)
> put soundCount + 1 into soundCount
>   end if
>end playMySounds
>
>on playstopped
>   playMySounds
>end playstopped
>
>
>Good Luck!
>-Glen Yates

-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Mark Talluto


On Thursday, March 21, 2002, at 07:20 AM, Shari wrote:

...snip
> I really miss being able to do that, but that's a sacrifice to go cross 
> platform.  I don't look forward to taking 1000 images (in a project 
> I've already begun where the images are/were finished), porting them to 
> Photoshop, and then saving them each as a gif/jpg. That project is 
> DEFINITELY getting ported to Metacard, as I expect it to be my biggest 
> seller so I want in on as many platforms as possible :-)

You might use Graphic Converter to convert all your images for you.  You 
can tell it batch process a whole folder.

www.lemkesoft.com

-Mark

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread J. Landman Gay

"Yates, Glen" wrote:
> 
> Wow, your long version looks like a pain to implement. I came into this
> thread late so forgive me if this has already been suggested, but have you
> tried using 'on playStopped' to string your sounds together. 

I forgot all about "playstopped". I think I like your suggestion better
than mine, since it doesn't rely on "send in". Shari would have to add
the modeless dialog she needs, but that process would be similar to the
script I posted.

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Building standalones

2002-03-21 Thread Ken Ray

Shari,

Here's some answers... hopefully others will fill in the gaps:

> Standalone Builder - The Metacard engine, does this mean the Metacard
> program itself?  So I'd have to install all three versions of the
> program (PPC, Windows and OSX) to access those engines to build from?
> The only thing I can find to attach is the actual Metacard program,
> that I double click on to launch Metacard.

Yes. You will need to have "MetaCard PPC", "MetaCard Carbon" and "mc.exe"
available to build your three standalones. When you go to build it, point to
one of these with the "MetaCard Engine" field. As I understand it, you can
build all three standalones for all three platforms using a Mac (although
I've never done it myself - I use a PC to build PC standalones and a Mac to
build Mac ones).

> Standalone Builder - Creator - in Hypercard I always chose to use a
> custom creator code.  Presumably this means the same thing?

Yes. Keep in mind that in order for your standalone to have the icon you
want (on Mac), you'll need to use ResEdit (or the equivalent) to edit the
resource fork and put in your icon.

> This means it's almost ready to distribute... (very big grin)

Congratulations!

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web site: http://www.sonsothunder.com/

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Ken Ray

Shari,

Couldn't you reduce the lines of code like this:

global gCurrSoundNum,gSoundList,gSoundTimes

on StartItUp
  put "darnyou.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" into
gSoundList
  put "531,1020,472,628" into gSoundTimes -- stores callbacktimes
  put 0 into gCurrSoundNum
  PlayIt
end StartItUp

on PlayIt
  add 1 to gCurrSound
  put the effective filename of this stack into wit
  set the itemDelimiter to "/"
  put item gCurrSound of gSoundList into that last item of wit
  set the fileName of player "Music" to wit
  set the startTime of player "Music" to "0"
  set the currentTime of player "Music" to "0"
  set the itemDelimiter to ","
  if gCurrSoundNum = (the number of items of gSoundList) then
set the callbacks of player "Music" to empty
  else
set the callbacks of player "Music" to (item gCurrSound of gSoundTimes)
& ",PlayIt"
  end if
  start player "Music"
end PlayIt


This should work (although I'm typing it off the top of my head)... the only
thing that may not work is the "set the callbacks" line with the variable -
it may need to be quoted, or executed with a "do", but it should work and
reduce the number of lines of code to 22...

Just a thought...

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web site: http://www.sonsothunder.com/


- Original Message -
From: "Shari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 9:41 PM
Subject: Re: Temporary picts


> >>So the solution has to be to avoid modal dialogs. You could do that by
> >>creating your own dialog stack and storing it as a substack in your main
> >>stack. You'd fill the text field with the appropriate response and set
> >>the button labels to whatever you want. Then display it as modeless:
> >>
> >>   modeless "myDialog"
> >
> >This would definitely be an option for the current project...
>
> Didn't work *sigh*
>
> Tried three versions.  All had the same result as using the answer
> command.  The first half of "darn you.wav" plays, and the last half
> of "talk to you" plays, and all the rest gets cut off.
>
> So it will have to be the long version.
>
> Wishful versions (5 lines of code):
>
> put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav"
> into soundList
>  repeat with x = 1 to the number of items of soundList
>play (item x of soundList)
>  end repeat
>  answer "some info"
>
> put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav"
> into soundList
>  repeat with x = 1 to the number of items of soundList
>play (item x of soundList)
>  end repeat
>  go cd "info" of stack "dLog" in a new window
>
> put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav"
> into soundList
>  repeat with x = 1 to the number of items of soundList
>play (item x of soundList)
>  end repeat
>  go cd "info" of stack "dLog" as modeless
>
> put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav"
> into soundList
>  repeat with x = 1 to the number of items of soundList
>play (item x of soundList)
>  end repeat
>  go cd "info" of stack "dLog" as modal
>
> Working version (about 50 lines of code) and requires a player on each
card:
>
> set the startTime of player "Music" to "0"
>  set the currentTime of player "Music" to "0"
>  put the effective filename of this stack into wit
>  set the itemdelimiter to "/"
>  put "darn you.wav" into the last item of wit
>  set the fileName of player "Music" to wit
>  set the callbacks of player "Music" to "531,end1"
>  start player "Music"
>
> on end1
>put the effective filename of this stack into wit
>set the itemdelimiter to "/"
>put "aaah.wav" into the last item of wit
>set the fileName of player "Music" to wit
>set the startTime of player "Music" to "0"
>set the currentTime of player "Music" to "0"
>set the callbacks of player "Music" to "1020,end2"
>start player "Music"
> end end1
>
> on end2
>put the effective filename of this stack into wit
>set the itemdelimiter to "/"
>put "goodie.wav" into the last item of wit
>set the fileName of player "Music" to wit
>set the startTime of player "Music" to "0"
>set the currentTime of player "Music" to "0"
>set the callbacks of player "Music" to "472,end3"
>start player "Music"
> end end2
>
> on end3
>put the effective filename of this stack into wit
>set the itemdelimiter to "/"
>put "oh yeah.wav" into the last item of wit
>set the fileName of player "Music" to wit
>set the startTime of player "Music" to "0"
>set the currentTime of player "Music" to "0"
>set the callbacks of player "Music" to "628,end4"
>start player "Music"
> end end3
>
> on end4
>put the effective filename of this stack into wit
>set the itemdelimiter to "/"
>put "talk to you.wav" into the last item of wit
>set the fileName of player "Music" to wit
>set the startTime of play

Repeating sounds [was Re: Temporary picts]

2002-03-21 Thread J. Landman Gay

Shari wrote:
> 
> >>So the solution has to be to avoid modal dialogs. You could do that by
> >>creating your own dialog stack and storing it as a substack in your main
> >>stack. You'd fill the text field with the appropriate response and set
> >>the button labels to whatever you want. Then display it as modeless:
> >>
> >>   modeless "myDialog"
> >
> >This would definitely be an option for the current project...
> 
> Didn't work *sigh*

Try this (watch out for line wraps):

local theCurSnd

on startSounds
  play "darn you.wav"
  go cd "info" of stack "dLog" as modeless
  send "playSnd" to me in 1 second
end startSounds

on playSnd
  if the sound is done then
put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav"
into theSndList
put (itemoffset(theCurSnd,theSndList) mod the number of items in
theSndList)+1 into theNextNum
put item theNextNum of theSndList into theCurSnd
play theCurSnd
  end if
  send playSnd to me in 1 second
end playSnd

on cancelMsgs
  play stop
  repeat for each line l in the pendingmessages
if l contains "playSnd" then cancel (item 1 of l)
  end repeat
end cancelMsgs

You'd trigger it off by calling "startsounds". Whenever you want the
sounds to stop, call "cancelMsgs". Unless your sounds are very, very
short, there is no reason to call "playsnd" any more often than once per
second, and you might be able to lengthen that amount of time even more
depending on the length of your shortest sound. There's no point in
piling up any more pending messages than necessary.

-- 
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread David Tremmel

On 3/21/02 10:20 AM, "Shari" <[EMAIL PROTECTED]> wrote:


 
> I really miss being able to do that, but that's a sacrifice to go
> cross platform.  I don't look forward to taking 1000 images (in a
> project I've already begun where the images are/were finished),
> porting them to Photoshop, and then saving them each as a gif/jpg.
> That project is DEFINITELY getting ported to Metacard, as I expect it
> to be my biggest seller so I want in on as many platforms as possible
> :-)

If all you need to do is to convert those 1000 images from some current
format to gif/jpg, you could do it a lot more quickly by batch processing
them in GraphicConverter.  Just a thought...

Regards,
Dave Tremmel

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



RE: Temporary picts

2002-03-21 Thread Yates, Glen

Wow, your long version looks like a pain to implement. I came into this
thread late so forgive me if this has already been suggested, but have you
tried using 'on playStopped' to string your sounds together. Here's a little
code I just wrote a few minutes ago to do this.

global soundCount
global soundList

on openCard
  put 1 into soundCount
  put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" into
soundList
  playmysounds
end openCard

on playMySounds
  if soundCount <= the number of items of soundList then
play audioclip (item soundCount of soundList)
put soundCount + 1 into soundCount
  end if
end playMySounds

on playstopped
  playMySounds
end playstopped


Good Luck!
-Glen Yates


Shari Wrote:
> So it will have to be the long version.
> 
> Wishful versions (5 lines of code):
> 
> put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" 
> into soundList
>  repeat with x = 1 to the number of items of soundList
>play (item x of soundList)
>  end repeat
>  answer "some info"
> 
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Building standalones

2002-03-21 Thread Shari

Questions...

Resource Mover dialog - if I DON'T move any resources, and my stack 
uses items such as the "saving" stack, those will not be included, or 
will it just include the entire mctools.mc, or will I need to 
distribute it with the mctools.mc?

Resource Mover - my stack doesn't have a resource fork, as I am 
distributing cross platform, this will not create a resource fork, 
will it?

Resource Mover - I open the Resource Mover dialog, then open my 
stack, click the resources I want to move, click Start Move, and 
nothing happens.  How can I tell if anything was moved?  I did not 
find any new stacks in the substacks menu.

Standalone Builder - The Metacard engine, does this mean the Metacard 
program itself?  So I'd have to install all three versions of the 
program (PPC, Windows and OSX) to access those engines to build from? 
The only thing I can find to attach is the actual Metacard program, 
that I double click on to launch Metacard.

Standalone Builder - Creator - in Hypercard I always chose to use a 
custom creator code.  Presumably this means the same thing?

:-)

This means it's almost ready to distribute... (very big grin)
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Shari

>If you need them to play seamlessly from one file to the next, that 
>would be the biggest trick.  I would start out by having your 
>program get the size (in time) of the file it is going to play first 
>and have a send command create  another player and start it at the 
>estimated end time.
>
>Yes it would be nice if you could do it the old way from HC.  But 
>there are alternatives that should work out just fine.  What you get 
>in the end is longer sound code, but advanced features not available 
>in HC without a truckload of externals.  Don't get me started on the 
>power of running on multiple platforms.
>
>Put your C books down and put your diskettes of HC away and give this a try.

Actually the code I ended up with works, but not seamlessly.  I 
posted the final version.  Even though I set the startTime etc. to 
zero, it cuts of the first millisecond of the first sound.  And 
"darn" becomes "arn".

Thankfully there is only one piece of code in this particular program 
where the sound issue tripped me up.  The rest of the sounds were 
simpler commands that did work as desired.  Simply "play someSound".

The only thing left for me to do with this program, is compile it, 
and test it compiled to see if anything works differently, and I plan 
to have it in my beta tester's hands this weekend.

I do want to change that one ticky piece of sound code again though, 
as I remembered late last night that using players and setting their 
filename meant keeping the sounds external and not embedded.  I don't 
want the sounds to be external, so I may go back to the send command 
and play with it some more.  I'd like to get this worked out in a 
satisfactory way, as the end result will be the template for all my 
programs.  And it is highly desireable to me to have all the 
sounds/graphics embedded.

Bad enough to lose the resource fork for those danged Windoze 
machines ;-)  I'll tell you, I had a whole system set up that made 
wondrous use of the resource fork for sounds/graphics.  I created a 
whole library of graphics in hypercard  as resources, so that when I 
want a specific graphic, say a dog, I go to the resource fork of the 
Animals stack, and every animal image is there, without having to 
open and close a bunch of files, and I can just scroll through and 
see if there is a suitable dog image.  And then copy it, and paste it 
into the project.

I really miss being able to do that, but that's a sacrifice to go 
cross platform.  I don't look forward to taking 1000 images (in a 
project I've already begun where the images are/were finished), 
porting them to Photoshop, and then saving them each as a gif/jpg. 
That project is DEFINITELY getting ported to Metacard, as I expect it 
to be my biggest seller so I want in on as many platforms as possible 
:-)
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Retaining fonts

2002-03-21 Thread Signe Marie Sanne

Hello,
  I have searched both Metacard and Revolution archives in order to 
find something I read perhaps a few weeks ago, but I have not been 
able to retrace it. It was not only about how to get all the various 
styles of the original text file into a field (italic, underline 
etc.) but also have to retain the fonts used in the original file. 
Can someone direct me to the right posting, or even better, provide 
the script line? Thanks in advance.

Regards
Signe Marie Sanne
-- 

1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Oysteins gt. 1
5007 Bergen  http://www.hf.uib.no/hfolk/mlab/default.html
Norway

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Formatted text

2002-03-21 Thread Signe Marie Sanne

>At 3:07 AM -0800 3/19/2002, Signe Marie Sanne wrote:
>>I have lots of Word files saved as .rtf (on my Mac). I then save them
>>as .htm-files and import them into a customProperty:
>>
>>Now fld "tekst" contains text with italic, bold etc and with nice
>>specific Norwegian letters on both Windows and Mac. My question is:
>>Is there an easier way to do this - from ordinary Word files into
>>formatted text in a field?
>>
>>My next question: Is there a way to export the same custom properties
>>and get back the formatting in a Word file?
>
>Well, RTF is a publicly documented format, so you should be able to write a
>routine to import and export the data complete with styles. Geoff Canyon
>wrote a stack to convert the Rev docs to RTF format
>, 
>an
>d taking a look at it scripts should help you get started.

Thank you Jeanne for the tip. I had a look at the stack, but I found 
it very difficult to extract the right scripts. I found, however, 
another stack FieldExporter which exports html text to RTF (but only 
on Windows) http://www.flexiblelearning.com/xtalk/fieldExporter.zip
-- 

1. amanuensis Signe Marie Sanne  e-mail: [EMAIL PROTECTED]
Romansk Institutttel:  +47 55 58 21 27
Oysteins gt. 1   
5007 Bergen  http://www.hf.uib.no/hfolk/mlab/default.html
Norway

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Temporary picts

2002-03-21 Thread Shari

>>So the solution has to be to avoid modal dialogs. You could do that by
>>creating your own dialog stack and storing it as a substack in your main
>>stack. You'd fill the text field with the appropriate response and set
>>the button labels to whatever you want. Then display it as modeless:
>>
>>   modeless "myDialog"
>
>This would definitely be an option for the current project...

Didn't work *sigh*

Tried three versions.  All had the same result as using the answer 
command.  The first half of "darn you.wav" plays, and the last half 
of "talk to you" plays, and all the rest gets cut off.

So it will have to be the long version.

Wishful versions (5 lines of code):

put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" 
into soundList
 repeat with x = 1 to the number of items of soundList
   play (item x of soundList)
 end repeat
 answer "some info"

put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" 
into soundList
 repeat with x = 1 to the number of items of soundList
   play (item x of soundList)
 end repeat
 go cd "info" of stack "dLog" in a new window

put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" 
into soundList
 repeat with x = 1 to the number of items of soundList
   play (item x of soundList)
 end repeat
 go cd "info" of stack "dLog" as modeless

put "darn you.wav,aaah.wav,goodie.wav,oh yeah.wav,talk to you.wav" 
into soundList
 repeat with x = 1 to the number of items of soundList
   play (item x of soundList)
 end repeat
 go cd "info" of stack "dLog" as modal

Working version (about 50 lines of code) and requires a player on each card:

set the startTime of player "Music" to "0"
 set the currentTime of player "Music" to "0"
 put the effective filename of this stack into wit
 set the itemdelimiter to "/"
 put "darn you.wav" into the last item of wit
 set the fileName of player "Music" to wit
 set the callbacks of player "Music" to "531,end1"
 start player "Music"

on end1
   put the effective filename of this stack into wit
   set the itemdelimiter to "/"
   put "aaah.wav" into the last item of wit
   set the fileName of player "Music" to wit
   set the startTime of player "Music" to "0"
   set the currentTime of player "Music" to "0"
   set the callbacks of player "Music" to "1020,end2"
   start player "Music"
end end1

on end2
   put the effective filename of this stack into wit
   set the itemdelimiter to "/"
   put "goodie.wav" into the last item of wit
   set the fileName of player "Music" to wit
   set the startTime of player "Music" to "0"
   set the currentTime of player "Music" to "0"
   set the callbacks of player "Music" to "472,end3"
   start player "Music"
end end2

on end3
   put the effective filename of this stack into wit
   set the itemdelimiter to "/"
   put "oh yeah.wav" into the last item of wit
   set the fileName of player "Music" to wit
   set the startTime of player "Music" to "0"
   set the currentTime of player "Music" to "0"
   set the callbacks of player "Music" to "628,end4"
   start player "Music"
end end3

on end4
   put the effective filename of this stack into wit
   set the itemdelimiter to "/"
   put "talk to you.wav" into the last item of wit
   set the fileName of player "Music" to wit
   set the startTime of player "Music" to "0"
   set the currentTime of player "Music" to "0"
   set the callbacks of player "Music" to empty
   start player "Music"
end end4
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard