Re: adding objects to groups

2002-01-16 Thread fuegox


On Wednesday, January 16, 2002, at 08:30 AM, Rick Rice wrote:

 How do you add objects to a group?
 I have an image which is 4 times larger in area than the screen 
 window.
 The image contains various cells. I want to draw an oval around various 
 cells
 and then group the ovals and image so when the image is moved the ovals 
 move
 as well and remain around the cell I drew it around. Now here's the 
 problem. I
 can draw the ovals and group then with the image but then I have to 
 move the
 image so a different area is in the window I run into a problem. I can 
 draw
 ovals around the cells in the new area but how do I group these new 
 ovals with
 the previous group?
 Hope this description makes sense.
 Thanks

 Rick


Rick,

Simply use the following to get an object that is not in a group, into a 
group.

copy graphic oval to group groupNameHere

then you need to delete the original control that is not in the group.

-Mark Talluto

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



Re: OS X Standalone Question Rerun

2002-01-15 Thread fuegox


On Tuesday, January 15, 2002, at 09:24 AM, Richard Gaskin wrote:

 Simon Lord wrote:

 Yep. It was answered a few night ago by Mark Talluto

 Snip:

 This is more work.  One option is to download the latest
 developer tools from apples site.  Go to the developer section.
 It is a big download.  It will install all kinds of neat tools
 some of which you will need for icons and handling the menu you
 are talking about.

 The data is stored in a resource called:  plst
 1.  Use resedit in classic to get the current data from your
 standalone from this plst resource.  Copy it.
 2.  Paste it into bbedit
 3.  Open the file you save from bbedit into PropertyListEditor.
 Change the needed items from there.  You can edit it with an XML
 editor or the application from apple called PropertyListEditor
 (which comes with the developer tools download).  Save that for
 later use if you want.  There is a dump button in that app that
 will put the xml data into a blank field near the bottom of the
 screen.  Copy that.
 4.  Go back to resedit and paste it over the old data that you
 copied originally.
 5.  Save those changes in resedit.
 6.  You are done.

 Almost.  Now you need to make resources for the icons, and if I'm not
 mistaken Apple's tool only makes icon files, but not resources


Icon Composer, available in the developer download, does the trick.  I 
then use Graphic Converter to transfer the resource it creates over to 
the standalone.

-Mark Talluto

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



Re: Undoing

2002-01-13 Thread fuegox


On Friday, January 11, 2002, at 07:33 PM, David Epstein wrote:

 Has anybody found a good way to make the standard Undo command apply 
 to
 specific scripted routines?

 It seems pretty straightforward to store the status quo ante 
 situation,
 and catch an undo command that would put things back.  The problem is 
 how to
 make that option expire as soon as it should.  Certainly I'd want the
 undo-this-routine option to disappear if the user has since done 
 something
 that Metacard itself makes undoable (like typing in a field); or if the 
 user
 has gone to some other card.  Is there a reasonable list of system 
 messages
 that might be intercepted and taken as signals to clear the custom undo
 buffer?  Is there some way to detect when MC's own undo option (for 
 its own
 undoable routines) has become (or whether it remains) available?

 Thanks for any thoughts.

 David Epstein


Darn good question.  I too have wondered what would be the best way to 
implement this vary standard feature.  The problem can be daunting if 
you have an app that is complex and needs to support that feature 
everywhere.  Sorry for I do not know the answer to your question.  But I 
will be reading to see if someone out there does.

-Mark Talluto

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



Re: OS X Standalone...

2002-01-10 Thread fuegox


On Thursday, January 10, 2002, at 03:05 PM, Richard MacLemale wrote:

 A couple of questions for making an OS X standalone I'm hoping someone 
 can
 answer...

 1.  The about... trick where you put your about message at the end of 
 your
 help menu - does that work different under OS X, or the same?
There is a bug when handling this.  All you have to do is make sure you 
have 4 or more things in the help button above the standard stuff.  Then 
it will work as you expect.
eg:
Help
-
Other CANELA Software Products
Contact Information
-
About



 2.  Under OS X, standalones that you build still have the MetaCard menu 
 like
 stacks do running under MetaCard Carbon.  Obviously if I'm building a
 standalone application, I don't want it to be named MetaCard in the menu
 bar.  How do I change this?
This is more work.  One option is to download the latest developer tools 
from apples site.  Go to the developer section.  It is a big download.  
It will install all kinds of neat tools some of which you will need for 
icons and handling the menu you are talking about.

The data is stored in a resource called:  plst
1.  Use resedit in classic to get the current data from your standalone 
from this plst resource.  Copy it.
2.  Paste it into bbedit
3.  Open the file you save from bbedit into PropertyListEditor.  Change 
the needed items from there.  You can edit it with an XML editor or the 
application from apple called PropertyListEditor (which comes with the 
developer tools download).  Save that for later use if you want.  There 
is a dump button in that app that will put the xml data into a blank 
field near the bottom of the screen.  Copy that.
4.  Go back to resedit and paste it over the old data that you copied 
originally.
5.  Save those changes in resedit.
6.  You are done.

Let me know if you have any probs doing this.


 Other than that, everything else seems very straightforward...

 :)
 Richard MacLemale
 Instructional Technology Specialist
 James W. Mitchell High School
 http://mitchellonline.pasco.k12.fl.us


-Mark Talluto

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



Re: Print dialogs on the Mac

2001-12-30 Thread fuegox


On Saturday, December 29, 2001, at 09:12 PM, David Epstein wrote:

 To show the Mac OS 9 page setup and print dialogs (whose exact
 appearance depends on the printer currently chosen), I can use the 
 Metacard
 commands open printing with dialog and answer printer, respectively.

 But is there any way to know what the user has chosen in these 
 dialogs?  For
 example, can my script take account of whether the user has chosen 
 landscape
 or portrait, or reduce or enlarge?

 Many thanks.

 David Epstein

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


While I do not think you can read what they select from the driver 
dialogs, they will function as the user uses the different features.

-Mark

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



Re: record sound bug?

2001-12-12 Thread fuegox


On Wednesday, December 12, 2001, at 10:03 AM, cowhead wrote:

 There used to be a send bug reports to. on this mailing 
 list...but it seems to have disappeared.  Anyway, back to the old 
 record sound saga...

 It's great that this has now been implemented in metacard (I've been 
 forced to use weird combinations of superCard/metaCard stacks before 
 this) but I can only get it to work well when using the with dialog 
 command...eg.
 ask file what
 record sound IT with dialog

 This opens up a dialog stack, which offers all the 'recordFormats()' 
 options, and there are quite a few that sound really good on a Mac (OS 
 9.1x, Japanese) and take up very little memory space as well.  
 Unfortunately, if you try to record directly in these formats, without 
 going through the dialog, it doesn't sound good anymore. Moreover, the 
 quality level makes no difference.  e.g.

 record sound file it as fl64 with best quality

 sounds pretty bad, in contrast to the fl64 (floating point 64bit) 
 recorded through the 'dialog', which is crystal clear.  I suspect the 
 culprit is in the quality level, which seems to have no effect in the 
 direct (non dialog) script.  I suspect that the dialog is recording as 
 'best' but not the direct script.  I wish I could see what the 'sound 
 settings' dialog stack script looks like, but I can't find it.  I've 
 tried putting quotes around the quality in the direct script (e.g with 
 best quality), but the
 compiler will not accept this.

 In summ, can anyone show me a direct recording script for any format 
 which sounds really good on the Mac?  Or is there something broken here 
 that might ought to be fixed (my opinion).  I don't want to have to go 
 through the dialog each time.

 Thanks!

 mark mitchell


IMHO, something is wrong.  I can get it to record, but it is only in the 
Qualcomm PureVoice™,Qclp.  This one records very clearly.  My only 
problem is that it does not get the very beginning of a sound and 
sometime it does.  Sometimes it puts the first 2 seconds at the end of 
the recorded sound.  When I can get around to understanding it more, I 
will bug report it more clearly to Scott.

I use the following script in a record button:
   record sound file tName as Qclp --tName is a variable for the sound 
file

Stop button:
   stop recording

I would be interested to know if this happens for you.  Have only done 
most of my testing on OS 10

-Mark Talluto

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



Re: [Metacard] OS X: 'icns' resources?

2001-11-29 Thread fuegox


On Thursday, November 29, 2001, at 05:49 AM, Ben Rubinstein wrote:

 on 28/11/01 9:28 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:


 On Wednesday, November 28, 2001, at 04:44 AM, Ben Rubinstein wrote:

 on 27/11/01 7:51 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

 Graphic Converter has one nice touch as it will allow
 you to save the file as an .ico file for Windows.

 I've not been able to set the mask on the .ico file for Windows using
 Graphic Converter.  Does anyone have a Mac solution for that (or is
 there
 something in Graphic Converter that I've missed)?

 You can use the Add Alpha/Mask Channel under the effects menu in 
 Graphic
 Con. to add that chanel.  What every you paint as black on that channel
 will be transparent.  Then save the file as a .tiff for the Mac.

 Right, but then I still don't have a .ico with a mask?


Ok.  I see.  I am just not reading carefully here.  You need this for 
Windows.  I have not done that for Windows.  I just use a win 
application called: Axialis AX-Icons 4.5

Here are the steps I go through to make my icons.

1.  Make it in a graphic program on the Mac.
2.  Save the file on the Mac as a .pict or .tiff
3.  Dimensions are at 128x128 (this is for the max size on OS 10)
( i can always size it down to 32x32 for windows)

 From there I can make my Mac or PC icon.

For Mac 7-9
1.  copy image to clipboard
2.  open up res edit
3.  create the bndl resource and paste it into there (skipping some 
small details)

For Mac 10
1.  Open up iconComposer
2.  Import image .tiff into the available sizes
3.  Save file (which creates the .icns file)
4.  Open up Graphic Con.. and use the resource copy to... option
5.  This puts it into an icns resource in my MC created app

For Win
1.  I work on a mac running virtual pc  (this makes it easy for me)
2.  open GC on Mac.  copy image to clipboard  (sometimes I save file as 
an .ico file in 16 colors)
3.  run vpc and start up the win icon editor:  Axialis AX-Icons 4.5
4.  paste file into editor  (sometimes I open the saved .ico file from 
GC)
5.  Make any needed changes and save file as a .ico file that MC can 
import.

If you are running on a PC only and do not have access to a Mac with 
VPC, then there is a step missing there that would require you to use a 
network, disk, or e-mail to get the .ico file created on a Mac over.  Or 
you could just create the file on the PC and go from there.  I have not 
found a need for a mask on the PC side.  In fact, I did not use a mask 
ever until I got to OS 10.  I guess the PC icon editor I use does it for 
you in the background.

I think I will save this e-mail for later use.  Could be useful.  May 
need more explanation on resedit for new users though.  Don't be 
surprised if you see it again in the future on the list.  ;)

-Mark

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



Re: [Metacard] OS X: 'icns' resources?

2001-11-29 Thread fuegox


On Thursday, November 29, 2001, at 02:54 AM, Vinciane BAUDOUX wrote:

 Maybe I am not clear on what you want to do with your these icons.

 1.  Do you want to import them into a stack and use them as images in
 the stack?

 2.  Do you want to import them over to a PC and use the icon as and
 application icon?

 Both, actually.

 Vinciane.


I can help you with option #2.  I just wrote another message about 
this.  Take a look at that one with the same subject.  If you need more 
details, let me know.

-Mark

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



Re: [Metacard] OS X: 'icns' resources?

2001-11-28 Thread fuegox


On Wednesday, November 28, 2001, at 03:27 AM, Vinciane BAUDOUX wrote:

 I want to import the icons, not export them, i.e., I can use graphic
 converter on the Mac to import Win icons, but what can I use with Win 
 95 do
 perform the same job ?

 Thanks,

 Vinciane.

Maybe I am not clear on what you want to do with your these icons.

1.  Do you want to import them into a stack and use them as images in 
the stack?

2.  Do you want to import them over to a PC and use the icon as and 
application icon?


-Mark

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



Re: [Metacard] OS X: 'icns' resources?

2001-11-27 Thread fuegox


On Tuesday, November 27, 2001, at 06:27 AM, Vinciane BAUDOUX wrote:

 On the subject of icons : is there any Windows utility which can easily
 import Mac icons, and vice-versa ?

 Thanks,

 Vinciane Baudoux.

At their root level, they are nothing more than small images.  You can 
create them on the platform of your choice.  I like to use the Mac.  
Either Photoshop or Graphic Converter will do (as well as any other 
graphic program).  Graphic Converter has one nice touch as it will allow 
you to save the file as an .ico file for Windows.

Currently, you must make sure that the PC icon file is 16 colors.  That 
is the big limitation there.  On the Mac, it can be 256 colors.

The icon program I use on the PC is:  Axialis AX-Icons 4.5

Those of you who run Virtual PC on the Mac can simply copy the image 
from the Mac side to the clipboard and paste it right into your icon 
editor of choice on the PC side.  Save it and your are done!

-Mark Talluto

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



[Metacard] Re: CGI under OS X via Darwin Success...

2001-11-26 Thread fuegox


On Saturday, November 24, 2001, at 01:24 PM, Richard MacLemale wrote:

...snip...

 This unlocks the candy store for me.  One thought goes through my mind,
 though... Suppose an individual were to download the darwin engine, and 
 the
 home and tools stacks... And suppose they install them and write some 
 neato
 mt scripts for their OS X based web site.  Scott says that the script 
 limit
 does not apply to the Darwin engine when running in non-GUI mode.  
 Doesn't
 this mean that anyone who wanted to could do CGI stuff with MetaCard for
 free?  If this is intentional, then it should be, well, advertised.  
 Maybe
 as a way of getting some UNIX or Mac OS X people in the door.  MetaTalk 
 is a
 kabillion times easier to learn than Perl...

 Just thinkin' out loud.

 :)
 Richard MacLemale
 Instructional Technology Specialist
 James W. Mitchell High School



Thanks Richard for writing in.  This is something I want to play with 
one day myself.  Very inspirational.

-Mark Talluto

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



Re: [Metacard] OS X: 'icns' resources?

2001-11-26 Thread fuegox


On Monday, November 26, 2001, at 12:37 PM, Richard Gaskin wrote:

 Anyone know where on Apple's site they have the info on how to create 
 'icns'
 resources?

I downloaded apples developer tools.  It that tool set you will find the 
following app:  iconComposer

It has the ability to import .pict and .tiff images.  I have found the 
.tiff to work best.

You must create the icon in the following sizes:  128x128, 48x48, 32x32, 
16x16 if you want the icon to size nicely.  They must also contain an 
alpha mask.  I used Graphic Converter to do that.

The last step is to get this data into your saved app under the icns 
resource.  This was tricky because ResEdit only copies in 32k at a time 
from the clipboard.  I found that on average the icons were from 60-70k 
in size.  I just learned from poking around that Graphic Converter can 
transfer the whole resource over in a couple of mouse clicks with its 
copy file into resource menu option.  That is a big time saver.

If you want that iconComposer app, just let me know.  I can simply email 
it over to you since it is a free app for all developers.  I am more 
than happy to explain any of this in more detail to anyone interested.

-Mark Talluto



 I was able to trick their crippled version of the Google engine into
 providing useful results for 'plst', but for the 'icns' resources 
 needed to
 complete an OS X delivery I could find only header info, but no tools or
 other practical advice for anyone not using SaRez.


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



Re: Recording sound

2001-11-20 Thread fuegox


On Tuesday, November 20, 2001, at 06:04 AM, Signe Marie Sanne wrote:

 Hello to all,

 Using MC2.4beta1 build 4 -
 I have struggled with Tuvias stack RecordSound from which I have 
 taken:

  record sound lydfil with dialog
   put the seconds into nsecs
   repeat while recording is true
 wait for 0.20 seconds with messages
 set the thumbposition of scrollbar 1 to recordloudness()
   end repeat
   put recorded for the seconds - nsecsseconds

 On Mac 8.5.1 I have been able to record my own voice with either 
 ulaw, ima4 or mace 3:1 chosen in the dialog box and with 22.050 
 khz (8 or 16 bits). On PC the same choices (all saved as mysound.mov) 
 record only at half speed. If anyone has managed to record on PC, 
 please, send me a recipe. Thanks in advance.


Have you tried the built-in sound recording feature in 2.4 and 2.4.1?  
While  I have yet to try it on the PC, I have used it with great success 
on the Mac.  You should download the latest version of 2.4.1 while you 
are at it.

I have a fast mirror of all the MC files at:  
www.clearsoftware.com/mcmirror.html

-Mark Talluto


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: rotation property (was: Inquiry for graphics external)

2001-11-14 Thread fuegox


On Wednesday, November 14, 2001, at 01:13 AM, Sjoerd Op 't Land wrote:

 Tereza Snyder wrote/ schreef:

 MetaCard's implementation introduces very noticeable
 distortions, especially with images that have alpha channels.
 I think this is a quite important subject, because it is one of the 
 things
 that Macromedia Flash does better than MC/RR.

 Anyway I feel that this 'rotate' command that we have now is a step in 
 the
 right direction, but definitely not 'it'. I think a better solution 
 would be
 that every object (I mean every field, button, graphic etc,etc) had a
 'rotation' property, which could be set to some value between 0 and 359
 degrees.

 This solution would involve storing the original 
 image(,field,button...) but
 would take care for not distorting the image.

 How do others think about this?

 Regards, / Groeten,
 Sjoerd

I think that this would be fabulous!

-Mark


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: OS X for Macintosh

2001-11-04 Thread fuegox


On Thursday, November 1, 2001, at 04:23 AM, Jack Rarick wrote:

 Could anyone briefly explain to the list where we are in terms of
 developing standalones for OS X?  I have a few in the Classic 
 envirnoment
 without a hitch - but would prefer to have a native app. Did I use the
 correct terms?

 Thanks in advance!

 Jack Rarick
 Braintree Athletic Systems


There is an issue of getting the About your app name feature to 
work.  Currently you must use res edit and plst editor available in the 
developers tools from apple to properly show your app name under the 
File menu.

-Mark


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: Visual effects and/or QT effects

2001-10-30 Thread fuegox
On Tuesday, October 30, 2001, at 09:42 AM, Domi wrote:

I made a simple slideshow stack.
I wanted to add some visual effects between the pictures,but some of them don't function correctly (Mac OS 8.6, MC 24b4 starter kit):

barn door: OK
iris: striped screen
push: striped screen
revea: OK
scroll: OK
wipe: striped screen
zoom: OK

Then I tested the "answer effect" command: I am given a number of characters -- that seems to be code (QT 502) !

So, what?

--
Regards,
Dominique



Dominique,

Currently (version 2.4) you will have to deal with visual effects that are built-in and those that are from QT differently.

I use the following handler to deal with visual effects.  Visual effects that are from the answer effect dialog have a long sequence of characters.  I store these in separate fields.  Then I just call their contents when I need them and put that into a variable (teffect).  I store the speed in (tspeed).  If you have any questions, just let me know. I am working heavily with them myself right now.

on visualEffecto
global teffect, tspeed, qtFX


--SET UP VISUAL EFFECTS THAT NEED THE ANSWER EFFECT DIALOG
if teffect is "radial" then put fld "radial" of card "setup" of stack "info" into teffect
--handle speed
if tspeed is "very slow" then visual effect teffect very slow
if tspeed is "slow" then visual effect teffect slow
if tspeed is "fast" then visual effect teffect fast
if tspeed is "very fast" then visual effect teffect very fast
exit visualEffecto


if teffect is in qtFX then
do "visual effect"  quote  teffect  quote  tspeed  --QT EFFECTS
else
do "visual effect"  teffect  tspeed --BUILT-IN EFFECTS
end if
end visualEffecto


-Mark

Re: An MC Carbon Observation

2001-10-25 Thread fuegox


On Thursday, October 25, 2001, at 02:50 PM, Gregory Lypny wrote:

 Hi Everyone,

   I've noticed that the line go to next card placed in a button 
 under MC 2.4 Carbon takes me to the next card as expected, but it also 
 causes the next stack to be placed on top of the one I'm navigating.  
 Any thoughts?

   Greg

I have seen this as well, but have not bug reported it because I can not 
create a solid recipe.  Plus, it just does not happen all of the time.

-Mark


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.