Blank Images from Disk (Mac MC2.3g)?
I'm trying to load various images that make up the screen design of my stack directly from disk files rather than have them embedded. However, if I use something like the following: set the fileName of image "MainTitle" to "/MacHD/Images/title.gif" I just get blank filled rectangles instead of the images themselves. If I select the same file from within the MetaCard development environment, it displays correctly. I've even looked at the source code in this part of the development environment and can't see where it's doing anything different to me, but my code simply doesn't work?! Any suggestions please, this is driving me nuts! Cheers Peter Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: [EMAIL PROTECTED] Web: http://www.reidit.co.uk This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Blank Images from Disk (Mac MC2.3g)?
At 11:58 AM + 14/2/2000, Peter Reid wrote: I'm trying to load various images that make up the screen design of my stack directly from disk files rather than have them embedded. However, if I use something like the following: set the fileName of image "MainTitle" to "/MacHD/Images/title.gif" I just get blank filled rectangles instead of the images themselves. If I select the same file from within the MetaCard development environment, it displays correctly. I've even looked at the source code in this part of the development environment and can't see where it's doing anything different to me, but my code simply doesn't work?! Hi Peter Try the file path without the leading forward slash: set the fileName of image "MainTitle" to "MacHD/Images/title.gif" Cheers Dave Cragg Tried it, no difference! By the way, if I use the development environment to select the file, it specifies the filename with a leading "/". So, I'm fairly sure that the path should start with a leading "/" anyway! Thanks anyway. Peter Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: [EMAIL PROTECTED] Web: http://www.reidit.co.uk This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: MetaCard for MachTen Unix?
On Mon, 14 Feb 2000, you wrote: On Mon, 14 Feb 2000 17:47:56 +, Peter Reid wrote: I already have MachTen installed and running which is why I asked the question. However, taking your advice, what's the best source of Linux PPC and do I need a dedicated machine for it or can I run it from a bootable Jaz cartridge or a special partition of an existing disk for example? Cheers Peter You might also be interested in Virtual PC 3.0 with Linux. The installation is sort of already done apparently; and I think the partioning of the drive is not necessary because of the way Virtual PC just takes over its whack of Hard Drive space with a sort of virtual partition effect that's much less hassle. On top of that, you can switch back and forth between your running MacOS and the Linux, managed on the fly by Virtual PC. All the other installations are at best dual boot. I don't have it yet, but am planning to do so in a month or two. Hey, maybe you could tell me how it works! ;-) Thanks in advance, Peter! David If you really want to do things the hard way you can install LinuxPPC and run MacOS emulated(sort of) with mol (mac-on-linux) and switch between the 2 on the fly. Much better performance then with VirtualPC for sure. andu This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Blank Images from Disk (Mac MC2.3g)?
At 11:58 AM + 14/2/2000, Peter Reid wrote: I'm trying to load various images that make up the screen design of my stack directly from disk files rather than have them embedded. However, if I use something like the following: set the fileName of image "MainTitle" to "/MacHD/Images/title.gif" I just get blank filled rectangles instead of the images themselves. If I select the same file from within the MetaCard development environment, it displays correctly. I've even looked at the source code in this part of the development environment and can't see where it's doing anything different to me, but my code simply doesn't work?! Hi Peter Try the file path without the leading forward slash: set the fileName of image "MainTitle" to "MacHD/Images/title.gif" Cheers Dave Cragg This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: MetaCard for MachTen Unix?
On Mon, 14 Feb 2000, Peter Reid wrote: I didn't get a response on this query, does anyone have any feedback on this? ... Currently I don't develop for Unix delivery, only Mac Win. However, I'd be keen to experiment and develop the facility, but only have MachTen Unix on my Mac. MachTen comes from the same origins as MacOS X and will likely disappear once MacOS X is widely available. In the meantime, MachTen is the only Unix I have and I'd wondered whether anyone has tried running MetaCard under it? (MachTen is based on Berkeley's Mach development and comes with the usual Unix collection of facilities and includes the X11 window system as well). My "feedback" would be to install LinuxPPC. It's not nearly as easy to install as MachTen, but learning about it would be a much better use of your time. Even if we did support MachTen (and we don't and don't plan to), there's no substitute for using the same OS that people using your applications will be using. Nowadays that means Linux Intel or Linux PPC often enough that anyone planning to support UNIX systems should have a box running one or the other. Regards, Scott Cheers Peter Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: [EMAIL PROTECTED] Web: http://www.reidit.co.uk This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: MetaCard for MachTen Unix?
On Mon, 14 Feb 2000, you wrote: My "feedback" would be to install LinuxPPC. It's not nearly as easy to install as MachTen, but learning about it would be a much better use of your time. Even if we did support MachTen (and we don't and don't plan to), there's no substitute for using the same OS that people using your applications will be using. Nowadays that means Linux Intel or Linux PPC often enough that anyone planning to support UNIX systems should have a box running one or the other. Regards, Scott Thanks for the feedback. I already have MachTen installed and running which is why I asked the question. However, taking your advice, what's the best source of Linux PPC and do I need a dedicated machine for it or can I run it from a bootable Jaz cartridge or a special partition of an existing disk for example? Best way is to get either YellowDogLinux(.com) or LinuxPPC(.com) on cdrom. You will have to 1. repartition the hard drive on your machine and use some of it for MacOS and some for LinuxPPC 2. or use a separate hard drive for LinuxPPC. 3. both come with instructions on how to partition and install and both have mailing lists and archives for more info. Also check LinuxPPC.org for more info. I tell you, once you get it up and running you wont regret it. Cheers Peter andu This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Blank Images from Disk (Mac MC2.3g)?
Tried it, no difference! By the way, if I use the development environment to select the file, it specifies the filename with a leading "/". So, I'm fairly sure that the path should start with a leading "/" anyway! Thanks anyway. Peter Sorry about that useless piece of help. :) If it's of any use, your script works fine on my Mac (MC 2.3g). I bet that makes you feel good. :) Cheers Dave Cragg This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Blank Images from Disk (Mac MC2.3g)?
Tried it, no difference! By the way, if I use the development environment to select the file, it specifies the filename with a leading "/". So, I'm fairly sure that the path should start with a leading "/" anyway! Thanks anyway. Peter Sorry about that useless piece of help. :) If it's of any use, your script works fine on my Mac (MC 2.3g). I bet that makes you feel good. :) Cheers Dave Cragg Thanks for the feedback - always welcome even if it doesn't provide a solution ;) I wonder what's causing things to go wrong on my system??? Cheers Peter Peter Reid Reid-IT Limited, Loughborough, Leics., UK Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576 E-mail: [EMAIL PROTECTED] Web: http://www.reidit.co.uk This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Field - List behaviour question
Hello, I am trying to use a field (with list behaviour turned on) to show and hide images in another group (on the same card and stack). For example, if the user clicks on Line 1 then show image A, if Line 2 then show image B, etc. while hiding the rest. on mouseDown if the selectedLine is "line 1 of field 4" then show image "A" hide image "B" else if the selectedLine is "line 2 of field 4" then hide image "A" show image "B" end if end if end mouseDown This actually worked for a few minutes(!) then ceased functioning. I must be missing something here. Any ideas? Thanks, Blair Moxon [EMAIL PROTECTED] This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: MetaCard for MachTen Unix?
On Mon, 14 Feb 2000 17:47:56 +, Peter Reid wrote: I already have MachTen installed and running which is why I asked the question. However, taking your advice, what's the best source of Linux PPC and do I need a dedicated machine for it or can I run it from a bootable Jaz cartridge or a special partition of an existing disk for example? Cheers Peter You might also be interested in Virtual PC 3.0 with Linux. The installation is sort of already done apparently; and I think the partioning of the drive is not necessary because of the way Virtual PC just takes over its whack of Hard Drive space with a sort of virtual partition effect that's much less hassle. On top of that, you can switch back and forth between your running MacOS and the Linux, managed on the fly by Virtual PC. All the other installations are at best dual boot. I don't have it yet, but am planning to do so in a month or two. Hey, maybe you could tell me how it works! ;-) Thanks in advance, Peter! David -- David Cramer, Process Innovation Evangelist 87-1313 Border Street PBSC Computer Training Centres (an IBM company) Winnipeg MB R3H 0X4 Corporate Office Research Development Canada This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Field - List behaviour question
Hi Blair, Can you tell us what changed after you saw it work? Did you add a field, edit a background, etc? Ideas: - Use a "mouseUp" handler instead of mouseDown. It's more humane, in that it allows the user to change his mind. (Other than that, I don't know if it will make any difference in the outcome.) - Before the first "if", add: put the selectedLine It may help you understand what MC sees at that moment. Phil Davis Blair Moxon wrote: Hello, I am trying to use a field (with list behaviour turned on) to show and hide images in another group (on the same card and stack). For example, if the user clicks on Line 1 then show image A, if Line 2 then show image B, etc. while hiding the rest. on mouseDown if the selectedLine is "line 1 of field 4" then show image "A" hide image "B" else if the selectedLine is "line 2 of field 4" then hide image "A" show image "B" end if end if end mouseDown This actually worked for a few minutes(!) then ceased functioning. I must be missing something here. Any ideas? Thanks, Blair Moxon [EMAIL PROTECTED] This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm -- Phil Davis -- [EMAIL PROTECTED] This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: Blank Images from Disk (Mac MC2.3g)
From: Peter Reid [EMAIL PROTECTED] Subject: Blank Images from Disk (Mac MC2.3g)? Date: Mon, 14 Feb 2000 11:58:16 + MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" I'm trying to load various images that make up the screen design of my stack directly from disk files rather than have them embedded. However, if I use something like the following: set the fileName of image "MainTitle" to "/MacHD/Images/title.gif" I just get blank filled rectangles instead of the images themselves. If I select the same file from within the MetaCard development environment, it displays correctly. I've even looked at the source code in this part of the development environment and can't see where it's doing anything different to me, but my code simply doesn't work?! Any suggestions please, this is driving me nuts! Try this: (code this into a button) on mouseUp answer file "Which file do you want to use?" put it into x set the filename of image "backgfile" to x put x into fld "graphicLink" end mouseUp This will tell you whether you have set up your link correctly. My guess is that you have a space or something missing. In any event, you should be able to solve your problem this way. Cheers Peter Hope this helps. Raymond This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm
Re: matchText
But I'm wondering if this is the easiest way to do what you want. For example, if the two word lists are both return delimited lists, would this do what you need? repeat for each line tWord in tList1 if tWord is not among the lines of tList2 then -- store tWord somewhere end if end repeat I'm not sure I understand the problem correctly, but if you want the words that are in either list, but not both, and if the lists are guaranteed to contain no duplicates within themselves (put another way, neither list has two entries in _itself_ that are the same), then the above should test both lists, by following with: repeat for each line tWord in tList2 if tWord is not among the lines of tList1 then -- store tWord somewhere end if end repeat The above is very good for short lists, up about a hundred words. For larger lists, the following would quickly become much faster, as the lists grew longer: put tList1 return tList2 into tList --join them into one list sort lines of tList --sort the combined list --this assumes no duplicates within either list. --if duplicates are possble, you would first have to --filter the lists individually, removing duplicates. put false into newValue --the test boolean put "" into oldLine --the stored previous word put "" into uniqueList --the result repeat for each line L in tList if L is not oldLine then --we've hit a different word if newValue then --if the last line was also different from --the one before it put oldLine return after uniqueList --add it to the result else put true into newValue --don't add it, but note that this is --a new line end if put L into oldLine --in any case, change the old line value else --same as last line put false into newValue --note that this is a duplicate, --which will not be put into the result end if end repeat if newValue then --don't forget the last line! put L after uniqueList --if it's unique, add it to the result else delete the last character of uniqueList --otherwise, just pull out the final return end if Hope this helps, gc This is the MetaCard mailing list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm