Re: Strategies for two-byte char systems

2002-02-15 Thread George Wade

   Doesn't sound like it'll do what I need, which is to display Japanese
  characters and to convert them to HTML.

I know for sure that on the stack itself Japanese characters are
displayable -- assuming, of course, a Japanese-capable OS with Japanese
font(s). But MC itself, for example in the property windows for
font-selection or a text-field, will display characters as goobledegook.
And editing Japanese text thru a stack is possible but a mess ... hence mine
and some others' past request that MC support two-byte chars, but which
unfortunately is not at the top of the feature request list... :-(

About converting to HTML, I guess it would work, but I don't really know.

At this point you would need to check the character set (tag) 
embedded in the exported html file:- if it is any western set number 
you will get garbage; on editing it to your required character set 
the file should magically display in Chinese / Japanese, etc.

George Wade,
Kochi, Japan


BTW, this topic's been raised before, and IMO was covered well by Dave
Cragg. Search the archives for his name -- or perhaps he'll answer you
himself any moment now :-)

Hope that helps.

Cheers.

Nicolas R Cueto
Nagoya, Japan

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



Re: Getting dirty

2002-02-15 Thread Jeanne A. E. DeVoto

At 4:14 PM -0800 2/14/2002, Ray G Miller wrote:
The MC openField behaves quite a bit differently than in other
languages.

In most others, openField is hit when a change occurs in a given
field, thereby allowing a dirty detection; but MC generates an
opnfield hit as soon as it receives the focus.

(Just out of curiosity, what environments don't send openField until you
change the text?)

Has anyone come up with a more natural solution other that comparing the
current text of a given field with its previous value? In other words,
how can you tell if you're getting dirty?

Check out the closeField message.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!


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



Re: Programs on CD

2002-02-15 Thread Klaus Major

Hi all,

important correction !

 Example:

 You want to store some highscore.
 In this example it is stored into a text file in the
 prefenrences folder on a mac.
 See specialfolderpath in the index for more info.

 on xxx
get fld highscore ##or wherever you keep it
put it into url(file:  specialfolderpath(preferences)  
 yourhighscore.prf)

this line should be:
put it into url(file:  specialfolderpath(preferences)  /  
yourhighscore.prf)

 end xxx

 That's it...

 Now if you want to retrieve the highscore file, try this:

 on xxx
   if there is not a file (specialfolderpath(preferences)  
 yourhighscore.prf) then exit xxx

this line should be:
  if there is not a file (specialfolderpath(preferences)  /   
yourhighscore.prf) then exit xxx

Regards

Klaus Major
[EMAIL PROTECTED]

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



Re: ANN: SmoothTalk Library 1

2002-02-15 Thread Richard Gaskin

Curry wrote:

 SmoothTalk Library 1 features 46 handlers to add power and convenience to
 your scripts, including:
 
 Math: random by range and interval, rounding to interval and up or down, two
 forms of sign(), formatting with temporary numberFormat and rounding
 control, custom comma formatting, frac(), decimal pad.
 
 Text: chunks with temporary delimiter, text string difference, aligned
 padding with desired fill character and truncation options, substrings, fast
 duplication, reversal and shuffling by character or chunk, greatest and
 least text items, punctuation-aware title case, versatile spreadsheet-style
 lookup, Nth or all offsets of substrings.
 
 System: setting and retrieving text on the clipboard, swapping variables,
 choosing preferred fonts, and synchronizing actions on fast and slow
 computers.
 
 Try it out at: http://www.kagi.com/curry/st.html
 
 Works for licensed or starter kit versions of Rev or MC.

Excellent work, Curry.  Thanks for making those publicly available.

-- 
 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: getting dirty

2002-02-15 Thread Ray G Miller




 From: Ken Ray [EMAIL PROTECTED]

 Ray,

 Actually from my perspective, MC is pretty on-target with SuperCard and
 HyperCard: 'openField' is triggered when the field gets the focus (it's
 clicked in or tabbed to), 'leaveField' is triggered when the field loses the
 focus and no changes to the field have been made, and 'closeField' is
 triggered when the field loses focus and there *have* been changes to the
 field. So trap 'closeField' and you know when a field is dirty.


Yep, my bad.

I was half asleep or my brain was turned off.

I had a problem with a single open field stack. I'd first used exitField which
ALWAYS send a message when the field lost focus. closeField does what I need:
send the dirty message.

I'll do 50 thumb pushups for penance, OK?


Ray G. Miller
---
Turtlelips Productions
4009 Everett Ave.
Oakland, CA 94602
MailTo:[EMAIL PROTECTED]
(V) 510.530.1971
(F) 510.482.3491


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



MC 2.4.2 Feature Wish

2002-02-15 Thread Gregory Lypny

Hi Everyone,

I've noticed some discussion on the 2.4.2 beta lately.  A feature 
I'd like to see in MC is the ability to lock the first row and column in 
a scrolling field much like can be done in spreadsheets.  (I know that 
it's possible to script multiple scrolling fields, but I've never been 
successful doing it for horizontal scrolls --- the column data in the 
two fields never align.)  Presenting data in tables and graphs is an 
important part of my research, and being able to easily and dynamically 
reset column and row titles in a scrolling field would be a big plus.

MC is one of the best tools I have.  Good work Scott and company.

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

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



RE: MC 2.4.2 Feature Wish

2002-02-15 Thread Monte Goulding

Now that you think of it why not have a rowNames and columnNames property.

set the rowNames to default would give you numbered rows
set the rowNames to none would give you a standard field
set the rowNames to tList would give you named rows

same syntax for columns

if the names were (like on most spreadsheets) able to be clicked to select
the row or column then even better

perhaps even resizing

this may even give us some new syntax for retrieving data from fields

put row tRowName of fld fldName into tVariable

or even ???

put the tableData[tRowName,tColumnName] of fld fldName

Anyway I guess if we just had text alignment working on the cell instead of
the whole fld.

Anyone else think it's time to differentiate fld styles like what has been
done with buttons?

Regards

Monte Goulding
B.App.Sc. (Hons.)

Executive Director
Sweat Technologies

email: [EMAIL PROTECTED]
website: www.sweattechnologies.com
mobile: 0421 138 274


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gregory Lypny
 Sent: Saturday, 16 February 2002 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: MC 2.4.2 Feature Wish


 Hi Everyone,

   I've noticed some discussion on the 2.4.2 beta lately.  A feature
 I'd like to see in MC is the ability to lock the first row and column in
 a scrolling field much like can be done in spreadsheets.  (I know that
 it's possible to script multiple scrolling fields, but I've never been
 successful doing it for horizontal scrolls --- the column data in the
 two fields never align.)  Presenting data in tables and graphs is an
 important part of my research, and being able to easily and dynamically
 reset column and row titles in a scrolling field would be a big plus.

   MC is one of the best tools I have.  Good work Scott and company.

   Greg


 Gregory Lypny
 Concordia University
 ___
 Better for us if you don't understand.
   The Tragically Hip

 http://rubbersoul.concordia.ca

 ___
 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: MC 2.4.2 Feature Wish

2002-02-15 Thread andu

Monte Goulding wrote:
snip
 
 Regards
 
 Monte Goulding
 B.App.Sc. (Hons.)

What means B.App.Sc (Hons.), if you don't mind? 

 
 Executive Director
 Sweat Technologies
 

-- 

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



Re: MC 2.4.2 Feature Wish

2002-02-15 Thread J. Landman Gay

Monte Goulding wrote:

 Anyone else think it's time to differentiate fld styles like what has been
 done with buttons?

It sounds like what is being discussed isn't exactly a field any more,
but more of a table object. I'd like to see that: a new object with its
own properties and functionality. It would sure come in handy.

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



embedding images in fields : fixedlineheight must be false

2002-02-15 Thread Claude Lemmel

 At 9:46 PM -0800 2/14/2002, Claude Lemmel wrote:
 What is the syntax to embed an image in a field by URL ?
 
 By name :
 set the imagesource of char 3 of field test to someimagename
 is OK
 
 By id :
 set the imagesource of char 3 of field test to 1011
 is OK
 
 By URL :
 ???

 set the imageSource of char 3 of field Test to
 http://www.example.com/image.gif;

 --
 Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
 http://www.runrev.com/
 Runtime Revolution Limited - Power to the Developer!

Thanks Jeanne

I did try this syntax but it did not work because the fixedlineheight of my
field was true ; in this case, if the image is to high, it do not appear at
all.

Also, for an image stored on the harddisk url file:... do not work, one
must write url binfile:...

If anyone want to test, just create a new stack with a field and a button
with this script

on mouseUp k
  if k =3 then edit the script of me
  else
  set the fixedlineheight of field 1 to false
repeat with i = 1 to 4
  answer file image source ?
  if the result  cancel then
put return  return  return  return  return  return  return 
return  return  return  space after field 1
set the imagesource of last char of field 1 to binfile:  it
put the htmltext of field 1
  end if
end repeat
  end if
end mouseUp

Claude

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