Re: Tabbing out of a text field

2010-10-22 Thread Bob Sneidar
Aye, but I was hitting return in an empty scrolling field. 

Bob


On Oct 21, 2010, at 4:19 PM, J. Landman Gay wrote:

 On 10/21/10 6:10 PM, Bob Sneidar wrote:
 Well this is interesting: Even if a scrolling field has tab on return
 set, it inserts a cr when you hit return. On a regular field it tabs.
 So what property visible from the property inspector corresponds to
 this behavior? Obviously not the tab on return!
 
 Tab on return (i.e., autoTab) only happens when you are on the last line of 
 the field. So in a 3-line field, a return key will only tab to the next field 
 if the cursor is on line 3, otherwise it inserts a carriage return. Scrolling 
 fields have no last line, they are infinite, so autoTab never triggers on 
 those.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-22 Thread Bob Sneidar
NVM just read your last sentence. I suppose then that the autoTab property for 
scrolling fields should be disabled, or invisible in the inspector. No big 
deal. 

Bob


On Oct 21, 2010, at 4:19 PM, J. Landman Gay wrote:

 On 10/21/10 6:10 PM, Bob Sneidar wrote:
 Well this is interesting: Even if a scrolling field has tab on return
 set, it inserts a cr when you hit return. On a regular field it tabs.
 So what property visible from the property inspector corresponds to
 this behavior? Obviously not the tab on return!
 
 Tab on return (i.e., autoTab) only happens when you are on the last line of 
 the field. So in a 3-line field, a return key will only tab to the next field 
 if the cursor is on line 3, otherwise it inserts a carriage return. Scrolling 
 fields have no last line, they are infinite, so autoTab never triggers on 
 those.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Tabbing out of a text field

2010-10-21 Thread RevList
I am having a bit of a brain fart.
How do I set a text field so that when I press the TAB key, it tabs to the
next field rather than adding a Tab character to the text field?

Thanks in advance

Stewart

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread DunbarX
You could trap the tabKey message.

Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread RevList
Craig Newman on October 21, 2010 at 1:45 PM -0700 wrote:
You could trap the tabKey message.

There has to be something else.  I am looking at an earlier project that I
developed and I have a field that when I press TAB, I am moved on to the
next field, just as if I had pressed Return.
I see no trapping of the TabKey in that project.

What am I missing? Or what should I look for.
I want to have fields that have one line of entry only and when you press
Tab, it moves on to the next field.
I have set the field to be Tab on Return so that traps the return key,
but pressing TAB, adds a tab to text.
In my earlier project it just moves on.
Help :)

Stewart

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread Devin Asay

On Oct 21, 2010, at 4:02 PM, RevList wrote:

 Craig Newman on October 21, 2010 at 1:45 PM -0700 wrote:
 You could trap the tabKey message.
 
 There has to be something else.  I am looking at an earlier project that I
 developed and I have a field that when I press TAB, I am moved on to the
 next field, just as if I had pressed Return.
 I see no trapping of the TabKey in that project.
 
 What am I missing? Or what should I look for.
 I want to have fields that have one line of entry only and when you press
 Tab, it moves on to the next field.
 I have set the field to be Tab on Return so that traps the return key,
 but pressing TAB, adds a tab to text.
 In my earlier project it just moves on.
 Help :)

Is traversalOn set to true for the fields?

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread J. Landman Gay

On 10/21/10 5:02 PM, RevList wrote:


I want to have fields that have one line of entry only and when you press
Tab, it moves on to the next field.
I have set the field to be Tab on Return so that traps the return key,
but pressing TAB, adds a tab to text.
In my earlier project it just moves on.


If the field has no tabstops set, it will act like you want. If it has 
tabstops, then you get tab characters when you type the tab key.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread Bob Sneidar
Well this is interesting: Even if a scrolling field has tab on return set, it 
inserts a cr when you hit return. On a regular field it tabs. So what property 
visible from the property inspector corresponds to this behavior? Obviously not 
the tab on return! 

Bob


On Oct 21, 2010, at 3:41 PM, J. Landman Gay wrote:

 On 10/21/10 5:02 PM, RevList wrote:
 
 I want to have fields that have one line of entry only and when you press
 Tab, it moves on to the next field.
 I have set the field to be Tab on Return so that traps the return key,
 but pressing TAB, adds a tab to text.
 In my earlier project it just moves on.
 
 If the field has no tabstops set, it will act like you want. If it has 
 tabstops, then you get tab characters when you type the tab key.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread J. Landman Gay

On 10/21/10 6:10 PM, Bob Sneidar wrote:

Well this is interesting: Even if a scrolling field has tab on return
set, it inserts a cr when you hit return. On a regular field it tabs.
So what property visible from the property inspector corresponds to
this behavior? Obviously not the tab on return!


Tab on return (i.e., autoTab) only happens when you are on the last line 
of the field. So in a 3-line field, a return key will only tab to the 
next field if the cursor is on line 3, otherwise it inserts a carriage 
return. Scrolling fields have no last line, they are infinite, so 
autoTab never triggers on those.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread Mark Wieder
Jacque-

Thursday, October 21, 2010, 4:19:59 PM, you wrote:

 Tab on return (i.e., autoTab) only happens when you are on the last line
 of the field. So in a 3-line field, a return key will only tab to the
 next field if the cursor is on line 3, otherwise it inserts a carriage
 return. Scrolling fields have no last line, they are infinite, so 
 autoTab never triggers on those.

I realize this probably makes sense, but I had to read it three times
before I could parse it.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabbing out of a text field

2010-10-21 Thread J. Landman Gay

On 10/21/10 7:07 PM, Mark Wieder wrote:

Jacque-

Thursday, October 21, 2010, 4:19:59 PM, you wrote:


Tab on return (i.e., autoTab) only happens when you are on the last line
of the field. So in a 3-line field, a return key will only tab to the
next field if the cursor is on line 3, otherwise it inserts a carriage
return. Scrolling fields have no last line, they are infinite, so
autoTab never triggers on those.


I realize this probably makes sense, but I had to read it three times
before I could parse it.



It made sense when I wrote it...does it make sense now?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Ian Wood

Votes added.

Ian

On 4 Mar 2010, at 00:37, Richard Gaskin wrote:

This inconsistency seems worth addressing, since doing so has  
practical application as you've noted, so I logged it as a request:


http://quality.runrev.com/qacenter/show_bug.cgi?id=8645


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Peter Brigham MD

On Mar 3, 2010, at 7:37 PM, Richard Gaskin wrote:


Ian Wood wrote:

I just had a quick try but can't see how to apply a backgroundpattern
to anything less than the whole field.


Mea culpa.

According to the dictionary RevTalk allows backgroundColor for  
chunks, and backgroundPattern for fields, and textPattern/ 
foregroundPattern for chunks, so I was a little optimistic about the  
orthogonality of the implementation.


But in trying it here, you're right, it seems the backgroundPattern  
cannot be applied to chunks.


This inconsistency seems worth addressing, since doing so has  
practical application as you've noted, so I logged it as a request:


http://quality.runrev.com/qacenter/show_bug.cgi?id=8645


Is this one of those why not just do it, looks simple things that  
runs into the apparently huge complexity of the field object? Which I  
seem to recall Scott Raney describing as the monster it terms of  
complexity.


Meanwhile, Firefox and other browsers use backgroundcolor to identify  
found text, so that technique is not foreign to  most users, though  
it's not quite what would be perfect. But as the late Robert Parker  
said (via Spenser), It's almost never perfect.


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Ian Wood


On 4 Mar 2010, at 12:42, Peter Brigham MD wrote:

Is this one of those why not just do it, looks simple things that  
runs into the apparently huge complexity of the field object? Which  
I seem to recall Scott Raney describing as the monster it terms of  
complexity.


That could well be.

Meanwhile, Firefox and other browsers use backgroundcolor to  
identify found text, so that technique is not foreign to  most  
users, though it's not quite what would be perfect.


To some extent that would actually be *worse* than making the text  
red, because by now it's become the most widely used visual trigger  
for finding within a document. To then use that for spell-as-you-type  
or similar would just cause confusion.


Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Richard Gaskin

Peter Brigham wrote:


On Mar 3, 2010, at 7:37 PM, Richard Gaskin wrote:

...

According to the dictionary RevTalk allows backgroundColor for
chunks, and backgroundPattern for fields, and textPattern/
foregroundPattern for chunks, so I was a little optimistic about the
orthogonality of the implementation.

But in trying it here, you're right, it seems the backgroundPattern
cannot be applied to chunks.

This inconsistency seems worth addressing, since doing so has
practical application as you've noted, so I logged it as a request:

http://quality.runrev.com/qacenter/show_bug.cgi?id=8645


Is this one of those why not just do it, looks simple things that
runs into the apparently huge complexity of the field object? Which I
seem to recall Scott Raney describing as the monster it terms of
complexity.


Hard to say without confirmation from the Mother Ship, but according to 
Dr. Raney, historically many such property limitations were the result 
of having a certain number of bits set aside for built-in object 
properties, so that adding another would require a format change.


Text chunks are the odd man out, since they don't have the same sort of 
record structure objects have.   It may be harder than adding properties 
for objects, or it may be easier.


Either way, the field object is due for an overhaul anyway 
(paragraph-level formatting and independent column alignment are among 
the most voted-for items at the RQCC), so it seems worth raising the 
visibility of this request to see it implemented.


Not only is it useful, but the absence of backgroundPattern for chunks 
in a system that already supports backgroundColor just means one more 
gotcha inconsistency newcomers need to learn.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Ian Wood
Thanks for the suggestions, everyone. It would certainly save me a lot  
of time if this could be done in Rev, so maybe it's time to look from  
a different direction - how do we make a Rev field as OS X-like as  
possible.


On 3 Mar 2010, at 04:00, Scott McDonald wrote:

The look of the spell check dialogue in the RunRevPlanet SpellCheck  
Stack is
completely skinnable so it may be simpler (and much quicker) to  
make it

look the way you need for your Mac application without learning Cocoa.


Your stack (and Sarah's AppleScript driven one) are the first places I  
looked.


If the RunRevPlanet SpellCheck Stack doesn't currently meet your  
needs, any

specific feedback is most welcome, as I work hard to make stacks from
RunRevPlanet do what Revolution users need.


Background - this is an app for metadata text entry for  
photojournalists. They are a fairly impatient bunch and tend to be  
working under a lot of pressure, and tend to have configured their  
Macs 'just so', with things like custom additions to the spell check  
dictionary.


Plus a surprising amount of Mac UI knowledge/fanaticism at the higher  
levels...



So replicating the native text box behaviour as closely as possible is  
a high priority. Here's a little list I've made up of differences  
between Rev fields and OS X fields, some apply to Scott's SpellCheck  
stack, others are general observations.



1. Navigational/selection shortcuts. Things like Rev using Command- 
left/right arrow to skip by word instead of the standard Mac shortcut  
of Option/Alt etc. I've not tried it yet but presumably this could all  
be handled with custom rawkeydown handlers - has anyone worked on this  
in the past?


2. The floating dictionary via Command-Control-D-hover. I'm not too  
bothered about this as it's rarely known let alone used, and there are  
still a few Carbon apps around that don't support it anyway.


3. Spell checking. This breaks down into a number of separate issues.

3a. Including spell checking in the first place. Scott's stack does a  
good job of providing the service, with Sarah's being a good proof-of- 
concept as well.


3b. Dictionaries. The RRP stack uses it's own dictionary, which makes  
it less useful to me as there's a good chance that the target audience  
have been adding words (place names, people's names) to the OS-level  
dictionary. If they are in a rush they won't want to add words again.  
Although this may not be as big an issue as I'm making it out to be.


3c. Visual representation of incorrect words. For this audience,  
anything but dashed red underlining is going to leap out as being a  
non-native app. Presumably I'd have to have a non-scrolling text field  
plus graphics built into a scrolling group to be able to 'fake'  
putting the red underlining. Again, has anyone attempted this before?


Cheers,

Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Scott McDonald

Ian,


Ian Wood-3 wrote:
 
 Thanks for the suggestions, everyone. It would certainly save me a lot  
 of time if this could be done in Rev, so maybe it's time to look from  
 a different direction - how do we make a Rev field as OS X-like as  
 possible.
 

I understand why the RRP SpellCheck doesn't meet your needs, and you have
certainly made several comments that give me ideas to work on.

But you are right, the Rev field is not native enough for your users. For
example, the way of marking unknown words when doing the contextual check
was something I thought about a lot during the design. 


anything but dashed red underlining is going to leap out

While Windows users expect a red wriggly line. I couldn't figure out an
efficient way to get those types of visual effects, so in the end just
decided to work within the bounds of what the standard field object can do.


the target audience have been adding words (place names, people's names) to
the OS-level dictionary.

I'll look into ways of priming the RRP SpellCheck with the words already in
the Mac dictionary.

Thank you for the comments, you've left me with plenty to think about and
ideas for future work -- although a lot depends on having extra capabilities
in the Revolution field object. Since a key feature of my spell checker is
cross-platform support this means unless it can be done in Revolution I am
unlikely to do it.

Of course, if I do figure out how to fake it, I'll let you know.

Scott.
www.runrevplanet.com
-- 
View this message in context: 
http://n4.nabble.com/OT-Good-books-on-Cocoa-dev-spellcheck-woes-tp1575279p1577261.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Richard Gaskin

Scott McDonald wrote:


But you are right, the Rev field is not native enough for your users. For
example, the way of marking unknown words when doing the contextual check
was something I thought about a lot during the design.


anything but dashed red underlining is going to leap out

While Windows users expect a red wriggly line. I couldn't figure out an
efficient way to get those types of visual effects, so in the end just
decided to work within the bounds of what the standard field object can do.


Have you tried a transparent GIF or PNG with the dash near the bottom, 
applied as the backgroundPattern of the portion of text being indicated?


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Ian Wood


On 3 Mar 2010, at 21:24, Scott McDonald wrote:

I understand why the RRP SpellCheck doesn't meet your needs, and you  
have certainly made several comments that give me ideas to work on.


Thanks for taking the in the way it was meant! That's partly why I  
changed the direction towards ways of improving the 'nativeness' of  
the existing field object.


If we can put together a standard behaviour set that anyone can then  
use which does the stuff like navigation shortcuts and contextual men  
items like search in Spotlight/Google it'll help everyone. There's  
enough knowledge and interest on this list to do a good job of it.


EDIT - Richard Gaskin has already chimed in with what should be a  
better idea than my overlay plan...


Ian
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Ian Wood
I just had a quick try but can't see how to apply a backgroundpattern  
to anything less than the whole field.


Do you have some example syntax for setting it for part of a field?

Ian

On 3 Mar 2010, at 22:03, Richard Gaskin wrote:

Have you tried a transparent GIF or PNG with the dash near the  
bottom, applied as the backgroundPattern of the portion of text  
being indicated?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Bob Sneidar
Concur. Text chunks cannot have that property. 

Bob


On Mar 3, 2010, at 3:33 PM, Ian Wood wrote:

 I just had a quick try but can't see how to apply a backgroundpattern to 
 anything less than the whole field.
 
 Do you have some example syntax for setting it for part of a field?
 
 Ian
 
 On 3 Mar 2010, at 22:03, Richard Gaskin wrote:
 
 Have you tried a transparent GIF or PNG with the dash near the bottom, 
 applied as the backgroundPattern of the portion of text being indicated?
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-03 Thread Richard Gaskin

Ian Wood wrote:

I just had a quick try but can't see how to apply a backgroundpattern
to anything less than the whole field.


Mea culpa.

According to the dictionary RevTalk allows backgroundColor for chunks, 
and backgroundPattern for fields, and textPattern/foregroundPattern for 
chunks, so I was a little optimistic about the orthogonality of the 
implementation.


But in trying it here, you're right, it seems the backgroundPattern 
cannot be applied to chunks.


This inconsistency seems worth addressing, since doing so has practical 
application as you've noted, so I logged it as a request:


http://quality.runrev.com/qacenter/show_bug.cgi?id=8645

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 4.0 not displaying text field changes

2009-12-28 Thread Kee Nethery
Thank you Mark! 
That was the secret to making the field changes appear.
Kee

On Dec 27, 2009, at 9:27 AM, Mark Schonewille wrote:

 wait 0 millisec with messages




-
I check email roughly 2 to 3 times per business day. 
Kagi main office: +1 (510) 550-1336


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


4.0 not displaying text field changes

2009-12-27 Thread Kee Nethery
This kind of thing worked fine in 2.9.x but does not in 4.0.

I've got a new 4.0 stack that has a bunch of repeat loops within repeat loops. 
For a small example:

repeat with w = 1 to 1000
  repeat with x = 1 to 1000
repeat with y = 1 to 1000
  repeat with z = 1 to 1000
put A  w  x  y  z into field status
  end repeat
end repeat
  end repeat
end repeat
put A done into field status

I'm not seeing field status change while it goes through the loops. What's up 
with that? I don't have any lock screen commands in the script. 

Is there some environment variable I'm supposed to set to have the field 
contents be displayed while a script is running?

Suggestions welcome.
Kee Nethery___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: 4.0 not displaying text field changes

2009-12-27 Thread Mark Schonewille

Hi Kee,

This changed when the graphics engine was made more efficient (I  
think). Try this:


repeat with w = 1 to 1000
 repeat with x = 1 to 1000
   repeat with y = 1 to 1000
 repeat with z = 1 to 1000 with messages
   put A  w  x  y  z into field status
wait 0 millisec with messages
 end repeat
   end repeat
 end repeat
end repeat
put A done into field status

I don't think it is necessary to change all repeat loops by adding  
with messages, but if this doesn't work you might try that as well.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Full PayPal integration and automation in web site or (Revolution/ 
SuperCard/other) software. Contact me for a quote before 1 Jan 2010  
and we'll charge (reduced) 2009 prices.

http://economy-x-talk.com/contact.html

Op 27 dec 2009, om 18:07 heeft Kee Nethery het volgende geschreven:


This kind of thing worked fine in 2.9.x but does not in 4.0.

I've got a new 4.0 stack that has a bunch of repeat loops within  
repeat loops. For a small example:


repeat with w = 1 to 1000
 repeat with x = 1 to 1000
   repeat with y = 1 to 1000
 repeat with z = 1 to 1000
   put A  w  x  y  z into field status
 end repeat
   end repeat
 end repeat
end repeat
put A done into field status

I'm not seeing field status change while it goes through the  
loops. What's up with that? I don't have any lock screen commands in  
the script.


Is there some environment variable I'm supposed to set to have the  
field contents be displayed while a script is running?


Suggestions welcome.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Setting Playloudness was Re: 4.0 not displaying text field changes

2009-12-27 Thread Jim Lambert
Mark noted that it is now necessary under Rev = 4.0  to insert
   wait 0 millisec with messages

into repeat loops in order to see any changes made to a field.

I have found this is also needed when changing playloudness like this:

on fadeSounds
   set the playloudness to cLoud
   wait 0 milliseconds with messages
if the playloudness  1 then
  set the playloudness to gSaveLoudness
  play stop
   else
  send fadeloop to me in 10 ticks
   end if
end fadeSounds

Without the wait (either 0 milliseconds with messages or 1 millisecond), the 
'set the playloudness' command is not executed.

Note that this is needed when setting the general volume. I'm not sure whether 
it is necessary to add the 'wait' when setting individual player volumes. 
Anyone?

Jim Lambert

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag images into text field

2009-06-10 Thread Richmond Mathewson
The problem is that if you want to put an image into a textField you cannot;you
can reference an image to replace a char:

e.g.set the imageSource of char 15 of line 5 of fld xx to 1003

but this is a bit hopeless re drag-and-drop.

On Wed, Jun 10, 2009 at 3:47 AM, Josep jmye...@mac.com wrote:


 Hi,

 I need dragdrop some images into a text field. The question is drop the
 images (little icons) between words into one text field. I dragdrop from a
 web page that have the text with the images, but when drop into a text
 field
 only the text part is dropped. So the images I think that was drop after
 the
 text one by one.
 After, I need to save it into a database. I test with htmltext but I
 locked...

 I haven't idea how to do it?

 Salut,
 Josep
 --
 View this message in context:
 http://www.nabble.com/Drag-images-into-text-field-tp23953741p23953741.html
 Sent from the Revolution - User mailing list archive at Nabble.com.

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution




-- 
-
   Lifelong learning is living.
-
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag images into text field

2009-06-10 Thread Mike Markkula
This script works for me...

TheAllowableFileTypes global is just a list of the file types Rev handles
and is set in an openStack handler when the app is launched. The
³importImage² function imports the image, scales it to a size set in the
app¹s preferences, adds it to an images library stack, and returns the image
id number if successful.

-- This script handles dragging files from the finder to a field
---
on dragDrop
   global charNbrDroppedOn, theAllowableImageFileTypes,
theImagePlaceHolderChar
   put word 4 of the dropChunk into charNbrDroppedOn
   put the dragData[files] into theFilePaths
   if the last char of theFilePaths is return then delete the last char of
theFilePaths
   set the itemDelimiter to .
   repeat with k = 1 to the number of lines of theFilePaths
  set the cursor to busy
  put line k of theFilePaths into theFilePath
  if the last item of theFilePath is among the items of
theAllowableImageFileTypes then
 put importImage(theFilePath) into theImageID
 if theImageID is not empty then
put charNbrDroppedOn - 1 + k into placeHolderChrNbr
put theImagePlaceHolderChar after char placeHolderChrNbr of me
put charNbrDroppedOn + k into targetChar
set the imageSource of char targetChar of me to theImageID
 end if
  else -- process dropping the filepath
 put theFilePath  space after char charNbrDroppedOn of me
  end if
   end repeat
end dragDrop

HTH

Mike

On 6/10/09 2:33 AM, Richmond Mathewson richmondmathew...@gmail.com
wrote:

 The problem is that if you want to put an image into a textField you
 cannot;you
 can reference an image to replace a char:
 
 e.g.set the imageSource of char 15 of line 5 of fld xx to 1003
 
 but this is a bit hopeless re drag-and-drop.
 
 On Wed, Jun 10, 2009 at 3:47 AM, Josep jmye...@mac.com wrote:
 
 
 Hi,
 
 I need dragdrop some images into a text field. The question is drop the
 images (little icons) between words into one text field. I dragdrop from a
 web page that have the text with the images, but when drop into a text
 field
 only the text part is dropped. So the images I think that was drop after
 the
 text one by one.
 After, I need to save it into a database. I test with htmltext but I
 locked...
 
 I haven't idea how to do it?
 
 Salut,
 Josep
 --
 View this message in context:
 http://www.nabble.com/Drag-images-into-text-field-tp23953741p23953741.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Drag images into text field

2009-06-09 Thread Josep

Hi,

I need dragdrop some images into a text field. The question is drop the
images (little icons) between words into one text field. I dragdrop from a
web page that have the text with the images, but when drop into a text field
only the text part is dropped. So the images I think that was drop after the
text one by one. 
After, I need to save it into a database. I test with htmltext but I
locked...

I haven't idea how to do it?

Salut,
Josep
-- 
View this message in context: 
http://www.nabble.com/Drag-images-into-text-field-tp23953741p23953741.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to put the text of several TXT files in just one text field with a single mouseclick?

2009-02-05 Thread Mark Smith

William, assuming you have the path for the folder in a variable tFo

on mouseUp

  put the defaultFolder into tOldFo -- so we can set the default  
back when we've finished

  set the defaultFolder to tFo
  put the files into tFileList
  filter tFileList with *.txt
  repeat for each line L in tFileList
 put url (file:  L)  cr after fld theField
  end repeat

  set the defaultFolder to tOldFo
end mouseUp

best,

Mark

On 5 Feb 2009, at 10:33, William de Smet wrote:


Hi there,
Say I have several .TXT files in a directory and I want the  
contents of them

all to be shown in just one text field with just one mouseclick.
I know how to do this with one .TXT file but not with say 30 files.
And all these files have different names.

Any idea's or scripts are welcome!

Greetings,

William
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How to put the text of several TXT files in just one text field with a single mouseclick?

2009-02-05 Thread William de Smet
Hi there,
Say I have several .TXT files in a directory and I want the contents of them
all to be shown in just one text field with just one mouseclick.
I know how to do this with one .TXT file but not with say 30 files.
And all these files have different names.

Any idea's or scripts are welcome!

Greetings,

William
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-14 Thread J. Landman Gay

Sarah Reichelt wrote:

On Wed, Jan 14, 2009 at 10:21 AM, Kay C Lan lan.kc.macm...@gmail.com wrote:

On Wed, Jan 14, 2009 at 7:30 AM, J. Landman Gay jac...@hyperactivesw.comwrote:


Sarah Reichelt wrote:

 put the rect of fld My Field into tRect

add 10 to item 3 of tRect
set the rect of fld My Field to tRect


I just *knew* you were hanging out in my head again, Sarah. ;)

It's the time lag between us, I bet...on second thought, maybe I'm in your
head.


Yes, and someone comments their code

add 10 to item 3 of tRect -- item 3 is the right side

;-)


I was relying on Jacque to finish off my script properly :-)


You should only think while I'm awake. Otherwise I'll miss it.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Ron Toledo
Hello All,

I'm new to Rev, and am attempting to create a paned interface on a stack.

Specifically, I have two text fields, with a little grabber icon between
them.  The effect I'm trying to accomplish is that, as I drag the little
grabber button between the two fields, the two fields on either side are to
automatically resize in width.

I'm experimenting with just the left text field and grabber icon at this
time.  My current challenge is that when I drag the grabber, the text field
on the left resizes in width-- however, it resizes from its centerpoint
outwards.  Ideally, I would want the text field's XY coordinates to remain
locked, while the right side of the text field resizes.

Is there a property for Rev objects that can configure objects to resize
from one specific side?

Thank you,
Ron Toledo
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Scott Rossi
Recently, Ron Toledo wrote:

 I'm new to Rev, and am attempting to create a paned interface on a stack.
 
 Specifically, I have two text fields, with a little grabber icon between
 them.  The effect I'm trying to accomplish is that, as I drag the little
 grabber button between the two fields, the two fields on either side are to
 automatically resize in width.
 
 I'm experimenting with just the left text field and grabber icon at this
 time.  My current challenge is that when I drag the grabber, the text field
 on the left resizes in width-- however, it resizes from its centerpoint
 outwards.  Ideally, I would want the text field's XY coordinates to remain
 locked, while the right side of the text field resizes.
 
 Is there a property for Rev objects that can configure objects to resize
 from one specific side?

Yes you want the rect of each field -- no locking necessary.

If you wish, you can take a look at a simple database example stack that
includes splitters (field resizers) by executing the following in your Rev
message box:

 go url http://www.tactilemedia.com/site_files/downloads/contact_x.rev;

Clicking and dragging between fields allows you to resize them.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread J. Landman Gay

Ron Toledo wrote:

Hello All,

I'm new to Rev, and am attempting to create a paned interface on a stack.


Welcome!



Specifically, I have two text fields, with a little grabber icon between
them.  The effect I'm trying to accomplish is that, as I drag the little
grabber button between the two fields, the two fields on either side are to
automatically resize in width.

I'm experimenting with just the left text field and grabber icon at this
time.  My current challenge is that when I drag the grabber, the text field
on the left resizes in width-- however, it resizes from its centerpoint
outwards.  Ideally, I would want the text field's XY coordinates to remain
locked, while the right side of the text field resizes.

Is there a property for Rev objects that can configure objects to resize
from one specific side?


Yes, what you want is the rectangle property (commonly abbreviated 
rect). Setting the width or height resizes the object equally on both 
sides, as you found out. So instead, get the rect of the object, add or 
subtract an amount from one of the sides, and reset the rect to the new 
dimensions.


So if I wanted to add 10 pixels to the right side of a field, I'd do this:

 put the rect of fld testFld into tRect
 add 10 to item 3 of tRect -- item 3 is the right side
 set the rect of fld testFld to tRect

See the rectangle property in the dictionary, which will tell you 
which item corresponds to each side.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Sarah Reichelt
 I'm experimenting with just the left text field and grabber icon at this
 time.  My current challenge is that when I drag the grabber, the text field
 on the left resizes in width-- however, it resizes from its centerpoint
 outwards.  Ideally, I would want the text field's XY coordinates to remain
 locked, while the right side of the text field resizes.

 Is there a property for Rev objects that can configure objects to resize
 from one specific side?


I adjust the rect of the object to do this. The rect has the four
points of the object: left, top, right, bottom.
A mnemonic for this that I was told once is LiTteR Bug.

Here is an example which increases the width of a field by 10 pixels,
while keeping the topLeft of the field in the same place:

put the rect of fld My Field into tRect
add 10 to item 3 of tRect
set the rect of fld My Field to tRect

HTH,
Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Ron Toledo
Hello All,

Thank you all very much; yes, the Rect property is definitely the way to
go.  I also got a similar response from Malte.  As I mentioned to him, it's
amazing to me (as a newbie, but longtime fan of Revolution) how elegant this
language is.  Imagine trying to purely code this in Adobe Flex, for example,
and the amount of lines of code it would require.

What I like is how few lines of code can give one just the results desired.
When I tried the Rect property and it worked perfectly, it was like magic!
Very cool, indeed.

Thank you again,
Ron

On Tue, Jan 13, 2009 at 2:30 PM, Sarah Reichelt sarah.reich...@gmail.comwrote:

  I'm experimenting with just the left text field and grabber icon at this
  time.  My current challenge is that when I drag the grabber, the text
 field
  on the left resizes in width-- however, it resizes from its centerpoint
  outwards.  Ideally, I would want the text field's XY coordinates to
 remain
  locked, while the right side of the text field resizes.
 
  Is there a property for Rev objects that can configure objects to resize
  from one specific side?


 I adjust the rect of the object to do this. The rect has the four
 points of the object: left, top, right, bottom.
 A mnemonic for this that I was told once is LiTteR Bug.

 Here is an example which increases the width of a field by 10 pixels,
 while keeping the topLeft of the field in the same place:

 put the rect of fld My Field into tRect
 add 10 to item 3 of tRect
 set the rect of fld My Field to tRect

 HTH,
 Sarah
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread J. Landman Gay

Sarah Reichelt wrote:


Here is an example which increases the width of a field by 10 pixels,
while keeping the topLeft of the field in the same place:

put the rect of fld My Field into tRect
add 10 to item 3 of tRect
set the rect of fld My Field to tRect


I just *knew* you were hanging out in my head again, Sarah. ;)

It's the time lag between us, I bet...on second thought, maybe I'm in 
your head.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Kay C Lan
On Wed, Jan 14, 2009 at 7:30 AM, J. Landman Gay jac...@hyperactivesw.comwrote:

 Sarah Reichelt wrote:

  put the rect of fld My Field into tRect
 add 10 to item 3 of tRect
 set the rect of fld My Field to tRect


 I just *knew* you were hanging out in my head again, Sarah. ;)

 It's the time lag between us, I bet...on second thought, maybe I'm in your
 head.


Yes, and someone comments their code

add 10 to item 3 of tRect -- item 3 is the right side

;-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Sarah Reichelt
On Wed, Jan 14, 2009 at 10:21 AM, Kay C Lan lan.kc.macm...@gmail.com wrote:
 On Wed, Jan 14, 2009 at 7:30 AM, J. Landman Gay 
 jac...@hyperactivesw.comwrote:

 Sarah Reichelt wrote:

  put the rect of fld My Field into tRect
 add 10 to item 3 of tRect
 set the rect of fld My Field to tRect


 I just *knew* you were hanging out in my head again, Sarah. ;)

 It's the time lag between us, I bet...on second thought, maybe I'm in your
 head.


 Yes, and someone comments their code

 add 10 to item 3 of tRect -- item 3 is the right side

 ;-)

I was relying on Jacque to finish off my script properly :-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Resizing a Text Field Dynamically, While Locking Its XY Coordinates

2009-01-13 Thread Mark Wieder
Ron-

Tuesday, January 13, 2009, 3:27:51 PM, you wrote:

 What I like is how few lines of code can give one just the results desired.
 When I tried the Rect property and it worked perfectly, it was like magic!
 Very cool, indeed.

But be aware that if you start messing with the rect values *and*
adjust the height and width properties, the order in which you do
things will affect the result in ways that may surprise you. It makes
sense if you think about it afterwards, but it's not immediately
intuitive.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spell check in a text field (how do I)

2008-12-12 Thread Ken Ray


 What are some of the ways I can write a stack which has spellchecking
 for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
 deploy on windows.  Thanks folks!

Hugh Senior wrote one:

http://www.flexiblelearning.com/xtalk.htm

Click on SpellChecker under Utilities.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Spell check in a text field (how do I)

2008-12-11 Thread Jim Schaubeck
What are some of the ways I can write a stack which has spellchecking
for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
deploy on windows.  Thanks folks!
Jim...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spell check in a text field (how do I)

2008-12-11 Thread DunbarX
I wrote a spell checker once in HC. I kept a dictionary (265,000 words) in a 
separate file. I loaded that file into memory and did a search for each word 
in my text. If a word found no match in the dictionary, I was notified. My 
program suggested nearby possible words based on slight misspellings.

In Rev, you could keep the dictionary in a field (not having the textEdit 
limits, which is very nce), or in a library somewhere.

Craig Newman


**
Make your life easier with all your friends, email, 
and favorite sites in one place.  Try it now. 
(http://www.aol.com/?optin=new-dpamp;icid=aolcom40vanityamp;ncid=emlcntaolcom0010)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Spell check in a text field (how do I)

2008-12-11 Thread Scott Morrow

Hello Jim,

I'm no expert on spell checking but when I needed a cross-platform  
spell checker written in rev I broke the problem into 3 parts.

1.  A  UI for interacting with the spell checker
2.  A word checker that walks through the given text, word at a time,  
checking to see if they are in the bank of real words
3.  Suggested words... presented in the UI to allow quick correction/ 
selection of the intended word.  I found this last part to be by far  
the most challenging as things get messy when dealing with phonics.   
I ended up using a variation of Lawrence Philips' Double Metaphone  
algorithm.  The idea is to reduce the misspelled word to a short  
phonetic representation or key.  Previously you would also have  
reduced a subset of the real words in your bank to their short  
phonetic keys as well.  You might create a custom property for each  
unique phonetic key and store all the real words that reduce to this  
key as a list inside that custom property.  Then you could take the  
misspelled word's key and see if there was a custom property name that  
matched.  The hope then is that inside that custom property would be  
phonetically reasonable suggestions which could be presented to the  
user.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com


On Dec 11, 2008, at 10:32 AM, Jim Schaubeck wrote:


What are some of the ways I can write a stack which has spellchecking
for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
deploy on windows.  Thanks folks!
Jim...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution





___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text Field Woes

2008-08-22 Thread len-morgan
I'm trying to read a web page and extract data from it.  I can read the
page ok and put the text in a variable.  I can parse and remove most of
the extraneous stuff (TD.../TD etc.).  Where I'm having a problem is
when I put the digested information into a field to check it, each line is
in a 3 dimensional box as if it was still trying to display the field as
html.  I AM setting the text of the field (not the htmlText) but I still
get the boxes around the text.

The reason this is a problem is that the data is a table composed of a
time and 4 dollar amounts on each line.  I need to convert this to a line
with the items separated by commas so I can pick the items I want and work
with them.  I have tried replacing comma  cr with comma, comma 
numToChar(13), with comma, etc but it doesn't seem to find any of those.

Is there some way to suppress the display of data as html so that I get
REAL carriage returns or something I can work with?

Thanks!

Len Morgan

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text Field Woes

2008-08-22 Thread Mark Stuart
Hi Len,

 

You wrote:

Is there some way to suppress the display of data as html so that I get

REAL carriage returns or something I can work with?

 

I too had issues with parsing html text, and the following threads may
help you on this.

Look for the threads: Removing CRLF from text

 

Start here:

http://lists.runrev.com/pipermail/use-revolution/2008-August/113226.html

 

and here:

http://lists.runrev.com/pipermail/use-revolution/2008-August/113339.html

 

HTH,

Mark Stuart

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Woes

2008-08-22 Thread Bernard Devlin
I'm not sure what the problem is here.  Can you provide a sample URL and the
basic transcript of the code you are using so we can see where it is going
wrong.  It sounds to me like your process of 'digesting' the text might be
causing the problem.

I just found a web page with currencies on it (www.xe.com), and simply using

set the htmlText of fld currencies to URL http://www.xe.com;

seems to produce a page without the boxed text you are describing as a
problem.  Are you sure that you haven't just set the textStyle of that field
so that it will display as boxed?

Bernard


On Fri, Aug 22, 2008 at 2:54 PM, [EMAIL PROTECTED] wrote:

 I'm trying to read a web page and extract data from it.  I can read the
 page ok and put the text in a variable.  I can parse and remove most of
 the extraneous stuff (TD.../TD etc.).  Where I'm having a problem is
 when I put the digested information into a field to check it, each line is
 in a 3 dimensional box as if it was still trying to display the field as
 html.  I AM setting the text of the field (not the htmlText) but I still
 get the boxes around the text.

 The reason this is a problem is that the data is a table composed of a
 time and 4 dollar amounts on each line.  I need to convert this to a line
 with the items separated by commas so I can pick the items I want and work
 with them.  I have tried replacing comma  cr with comma, comma 
 numToChar(13), with comma, etc but it doesn't seem to find any of those.

 Is there some way to suppress the display of data as html so that I get
 REAL carriage returns or something I can work with?

 Thanks!

 Len Morgan

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can a text field have multiple lines inside a table cell?

2008-01-05 Thread Jim Ault
On 1/4/08 9:29 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Can anyone tell me if it's possible to have multiple lines inside a table
 cell?? I'm presently using a table field object, and putting data into that
 field object via:
 
 set the HTMLtext of field picklist to datafromURL
 
 And I've love it if I could make the text in the left-most column wrap to 2
 lines.? If I attempt to put a br in the text for cell #1, it bumps
 anything after the br to the next line.
 
Well, BR is a line ending tag, so that what it does.
I don't think html has a tag for wrapping within a 'tab-like character'
unless you use a table cell with a fixed format (or other html structure).

Anyway, Rev only has a subset of html tags for use in a field.


One work around that may be worth it for you... use a separate hidden field
the width of your left cell, set the text of that hidden field to the string
you want to display.  Now this field will wrap according to font, etc.
Export a snapshot to a temp image name, then insert an img src tag into the
first cell, then, of course, set the lineheight to the max along the line
(in this case, the first cell).

I can't remember the details for the export method, but Eric Chatonet has a
tutorial that covers handling images, such as thumbnails.

-
Another way to display this this would be to use the Rev Browser product,
formerly known as AltBrowser, which does support all kinds of tags since it
uses Internet Explorer on Win32 and Safari on Mac.  Just make a browser
container the correct size and placement, then
 'set the html of theWindow to stringOfData'

Should work.  Of course, user clicking would have to be a link syntax such
as a href=visible text/a, or a button, etc.

The table container is on the list of future updates, but I am not sure of
any arrival schedule.

Hope this helps.

Jim Ault
Las Vegas



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Can a text field have multiple lines inside a table cell?

2008-01-04 Thread rgould8
Can anyone tell me if it's possible to have multiple lines inside a table 
cell?? I'm presently using a table field object, and putting data into that 
field object via:

set the HTMLtext of field picklist to datafromURL

And I've love it if I could make the text in the left-most column wrap to 2 
lines.? If I attempt to put a br in the text for cell #1, it bumps anything 
after the br to the next line.




More new features than ever.  Check out the new AOL Mail ! - 
http://webmail.aol.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Standalone Text Field problem for WindowsXP

2007-12-09 Thread Ken Ray
On Fri, 7 Dec 2007 23:40:24 -0800, Joe Lewis Wilkins wrote:

 As it turns out, much of the missing text is actually there. It 
 just can't be seen. I thought it might be that the color for the text 
 was being set to white, but that isn't the problem. The Menu hot 
 keys work, but the menus themselves are still invisible.

It may be that the group of buttons that is the menu is just above 
the top of the stack window. Here's how to test:

put the menubar of this stack into tMBarGroup
put the top of group tMBarGroup

For Windows, it shouldn't be negative...

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Standalone Text Field problem for WindowsXP

2007-12-09 Thread Joe Lewis Wilkins

Hi Ken,

I believe I mentioned in a subsequent posting that what you suggest  
WAS the case; however, fixing that still did not fully resolve the  
problem. My biggest question regarding that subject is: How in the  
devil did the menubar get way up there in the first place? I sure  
didn't put it there when it was created. That has me stumped.


Thanks, anyway.

Joe Wilkins

On Dec 9, 2007, at 12:12 AM, Ken Ray wrote:


On Fri, 7 Dec 2007 23:40:24 -0800, Joe Lewis Wilkins wrote:


As it turns out, much of the missing text is actually there. It
just can't be seen. I thought it might be that the color for the text
was being set to white, but that isn't the problem. The Menu hot
keys work, but the menus themselves are still invisible.


It may be that the group of buttons that is the menu is just above
the top of the stack window. Here's how to test:

put the menubar of this stack into tMBarGroup
put the top of group tMBarGroup

For Windows, it shouldn't be negative...

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Standalone Text Field problem for WindowsXP

2007-12-07 Thread Joe Lewis Wilkins
As it turns out, much of the missing text is actually there. It  
just can't be seen. I thought it might be that the color for the text  
was being set to white, but that isn't the problem. The Menu hot  
keys work, but the menus themselves are still invisible.


Frankly, I'm stumped.

Joe Wilkins

On Dec 7, 2007, at 8:17 PM, Joe Lewis Wilkins wrote:

Well, I'm back after a considerable hiatus, and have some new plans  
for Revolution articles on the Macinstruct.com website.


First, however, I need to wrap up the application that was in the  
mill when I dropped out of the list. I finally got a Mac Pro with  
the 30 Apple Display that allows me to see once again. Though  
OSX is still a glaring abomination and I have found no way to  
adequately adjust the glare. Nevertheless, I now have WindowsXP  
running under VMWare's Fusion and can test the Window's version of  
my Coloring Book Application. Actually, it works fine except that  
none of fixed and some of the scrolling text fields just don't make  
it. They just aren't there. Also, the sound is pretty crude and the  
menus don't show up at the top of the window. I'm at a loss to see  
what may have caused this - the missing menus.


Perhaps I need to build the Window's executable separately from the  
MacOSX build. That will be my next trial. If any of you have  
suggestions based on your own experiences, I'd love to hear them.  
I'm still using 10.4.11 (Tiger) and, though I just purchased  
Leopard, I'm a little hesitant to load it up until I know that Rev  
works acceptably on it.


TIA,

Joe Wilkins
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Standalone Text Field problem for WindowsXP

2007-12-07 Thread Joe Lewis Wilkins
Well, I'm back after a considerable hiatus, and have some new plans  
for Revolution articles on the Macinstruct.com website.


First, however, I need to wrap up the application that was in the  
mill when I dropped out of the list. I finally got a Mac Pro with  
the 30 Apple Display that allows me to see once again. Though OSX  
is still a glaring abomination and I have found no way to adequately  
adjust the glare. Nevertheless, I now have WindowsXP running under  
VMWare's Fusion and can test the Window's version of my Coloring Book  
Application. Actually, it works fine except that none of fixed and  
some of the scrolling text fields just don't make it. They just  
aren't there. Also, the sound is pretty crude and the menus don't  
show up at the top of the window. I'm at a loss to see what may have  
caused this - the missing menus.


Perhaps I need to build the Window's executable separately from the  
MacOSX build. That will be my next trial. If any of you have  
suggestions based on your own experiences, I'd love to hear them. I'm  
still using 10.4.11 (Tiger) and, though I just purchased Leopard, I'm  
a little hesitant to load it up until I know that Rev works  
acceptably on it.


TIA,

Joe Wilkins
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text field bug?

2006-11-06 Thread Devin Asay
This is a bizarre problem in which the text of a field gets replaced  
by the text from another field. It appears to be related to keyboard  
focus. I have only been able to reproduce in Rev Studio 2.7.4 build  
291 on an iMac G5 running 10.4.8. It couldn't make it happen on my  
Dual 2GHz G5 running Rev Enterprise 2.7.4 build 291, same OS version.  
I also couldn't get it to happen on Win XP with 2.7.4. Can anyone  
reproduce this? I'll do a bug report if so.


Recipe:
Create a new mainstack.
Create 2 new text entry fields and name them. I'll use george and sally.
Open the script editor for field sally.
Type some contents into fld george.
Type some contents into fld sally.
Open the property inspector for fld george and go to the Contents  
panel.
In the contents field, make a change to the text of fld george, and  
don't exit the field.

Do this three times:
Click on field sally.
Click in the open script editor for field sally.
After the third click to the script editor the contents of fld  
george is replaced by the contents of fld sally.


Like I said, this only happens on G5 iMacs in our lab running 2.7.4.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text field bug?

2006-11-06 Thread Dar Scott


On Nov 6, 2006, at 1:54 PM, Devin Asay wrote:


Recipe:
Create a new mainstack.
Create 2 new text entry fields and name them. I'll use george and  
sally.

Open the script editor for field sally.
Type some contents into fld george.
Type some contents into fld sally.
Open the property inspector for fld george and go to the Contents  
panel.
In the contents field, make a change to the text of fld george,  
and don't exit the field.

Do this three times:
Click on field sally.
Click in the open script editor for field sally.
After the third click to the script editor the contents of fld  
george is replaced by the contents of fld sally.


Like I said, this only happens on G5 iMacs in our lab running 2.7.4.


Nothing fishy with 2.7.4 Enterprise build 291 on a G4 with OS X  
10.4.8.  I started with a fresh Rev session.


I might be doing something wrong.  I don't know how to click on sally  
without exiting the contents field.


(I have seen funny field problems after snapshots.  I think I have  
seen stack name changes at funny times but suspect those were Dar  
errors and I haven't seen those for a while.)


Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text field bug?

2006-11-06 Thread Devin Asay


On Nov 6, 2006, at 2:15 PM, Dar Scott wrote:



On Nov 6, 2006, at 1:54 PM, Devin Asay wrote:


Recipe:
Create a new mainstack.
Create 2 new text entry fields and name them. I'll use george and  
sally.

Open the script editor for field sally.
Type some contents into fld george.
Type some contents into fld sally.
Open the property inspector for fld george and go to the  
Contents panel.
In the contents field, make a change to the text of fld george,  
and don't exit the field.

Do this three times:
Click on field sally.
Click in the open script editor for field sally.
After the third click to the script editor the contents of fld  
george is replaced by the contents of fld sally.


Like I said, this only happens on G5 iMacs in our lab running 2.7.4.


Nothing fishy with 2.7.4 Enterprise build 291 on a G4 with OS X  
10.4.8.  I started with a fresh Rev session.


I just got it to do the same thing with 2.7.4 build 291 on an Intel  
Mac Mini dual core. But it only seems to happen  with Studio, not  
enterprise.


I might be doing something wrong.  I don't know how to click on  
sally without exiting the contents field.


Well, clicking from fld george after changing the contents, then  
without clicking anywhere else, click field sally. (We're in Edit  
mode this whole time.) And it's true, it *seems* to close the  
contents field, because field george updates. But then when I click  
back and forth between field sally and the script of sally, after  
three times the text of george changes to the text of sally. So there  
is obviously some kind of flag somewhere that remembers that focus  
was in the contents field of george's property inspector.


However, if I make changes in george's contents field, then click  
outside of the field while still in george's property inspector, then  
go through the process of repeatedly clicking sally and her script,  
nothing happens. There doesn't seem to be any more flag that makes  
george's text vulnerable.


(I have seen funny field problems after snapshots.  I think I have  
seen stack name changes at funny times but suspect those were Dar  
errors and I haven't seen those for a while.)


No, it's not a Dar error, it's a bug. See BZ # 3620. This may even be  
related to that bug.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text field bug?

2006-11-06 Thread Jim Ault
Caution when using inspector palettes!
If you are editing, say the 'contents' drop down or the 'custom properties'
drop down, then change the focus of the object being inspected, always
change the pop up menu to another choice, then back to the original choice.

This becomes obvious if you are inspecting a button object, choose custom
properties, then use the message box to
set the cpUserDataParam of this button to Red Flag Sale

The update will not be seen until you change the popup, then back to the
'custom properties' choice again.  An this time we did not even change the
focus of the inspector.

Hope this helps.

Jim Ault
Las Vegas


On 11/6/06 2:44 PM, Devin Asay [EMAIL PROTECTED] wrote:

 
 On Nov 6, 2006, at 2:15 PM, Dar Scott wrote:
 
 
 On Nov 6, 2006, at 1:54 PM, Devin Asay wrote:
 
 Recipe:
 Create a new mainstack.
 Create 2 new text entry fields and name them. I'll use george and
 sally.
 Open the script editor for field sally.
 Type some contents into fld george.
 Type some contents into fld sally.
 Open the property inspector for fld george and go to the
 Contents panel.
 In the contents field, make a change to the text of fld george,
 and don't exit the field.
 Do this three times:
 Click on field sally.
 Click in the open script editor for field sally.
 After the third click to the script editor the contents of fld
 george is replaced by the contents of fld sally.
 
 Like I said, this only happens on G5 iMacs in our lab running 2.7.4.
 
 Nothing fishy with 2.7.4 Enterprise build 291 on a G4 with OS X
 10.4.8.  I started with a fresh Rev session.
 
 I just got it to do the same thing with 2.7.4 build 291 on an Intel
 Mac Mini dual core. But it only seems to happen  with Studio, not
 enterprise.
 
 I might be doing something wrong.  I don't know how to click on
 sally without exiting the contents field.
 
 Well, clicking from fld george after changing the contents, then
 without clicking anywhere else, click field sally. (We're in Edit
 mode this whole time.) And it's true, it *seems* to close the
 contents field, because field george updates. But then when I click
 back and forth between field sally and the script of sally, after
 three times the text of george changes to the text of sally. So there
 is obviously some kind of flag somewhere that remembers that focus
 was in the contents field of george's property inspector.
 
 However, if I make changes in george's contents field, then click
 outside of the field while still in george's property inspector, then
 go through the process of repeatedly clicking sally and her script,
 nothing happens. There doesn't seem to be any more flag that makes
 george's text vulnerable.
 
 (I have seen funny field problems after snapshots.  I think I have
 seen stack name changes at funny times but suspect those were Dar
 errors and I haven't seen those for a while.)
 
 No, it's not a Dar error, it's a bug. See BZ # 3620. This may even be
 related to that bug.
 
 Devin
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text Field Statistics script

2006-06-14 Thread Salinas, Ruben
I'm a pretty new user of RunRev and wanted to know whether anybody has a
slick script (or ideas for one) to calculate the following for a text
field:

1.  Total number of words in the text field

2.  Total number of Paragraphs in the text field

3.  Total number of Sentences in the text field

4.  Total number of sentences per paragraph

5.  Average number of words in a sentence

6.  Total number of passive verbs (this one would be probably
involve a small database/flat file to search and compare through?)

Ideas and help are greatly appreciated. Since I don't know much about
the coding language yet, the more specific the better. Thank you all!
 
 
 
Confidentiality Notice:  This e-mail and any attachments are intended only for 
the use of those to whom it is addressed and may contain information that is 
confidential and prohibited from further disclosure under law. If you have 
received this e-mail in error, its review, use, retention and/or distribution 
is strictly prohibited. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message and 
any attachments.[v1.0]
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Statistics script

2006-06-14 Thread Klaus Major

Hi Ruben,

I'm a pretty new user of RunRev and wanted to know whether anybody  
has a

slick script (or ideas for one) to calculate the following for a text
field:


OK, lets see:


1.  Total number of words in the text field

the number of words of fld xyz


2.  Total number of Paragraphs in the text field

the number of lines of fld xyz


3.  Total number of Sentences in the text field

How do you want to define sentence?


4.  Total number of sentences per paragraph

See above...


5. Average number of words in a sentence

Count alls words of all sentences.
Divide (round) that number by the number of sentences.
:-)


6.  Total number of passive verbs (this one would be probably
involve a small database/flat file to search and compare through?)


Yes, that would surely be necessary...


Ideas and help are greatly appreciated. Since I don't know much about
the coding language yet, the more specific the better. Thank you all!


Hope that helps.


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text Field Statistics script

2006-06-14 Thread rubensalinas


I’m a pretty new user of RunRev and wanted to know whether anybody has a slick
script (or ideas for one) to calculate the following for a text field:

1.  Total number of words in the text field

2.  Total number of Paragraphs in the text field

3.  Total number of Sentences in the text field

4.  Total number of sentences per paragraph

5.  Average number of words in a sentence

6.  Total number of passive verbs (this one would be probably involve a
small database/flat file to search and compare through?)

Ideas and help are greatly appreciated. Since I don’t know much about the coding
language yet, the more specific the better. Thank you all!



This message was sent using IMP, the Internet Messaging Program.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Statistics script

2006-06-14 Thread Brian Yennie

Here are some rough ideas to get you started.


1.  Total number of words in the text field


put the number of words in fld myField into numWords



2.  Total number of Paragraphs in the text field


You would have to define what constitutes a paragraph, but, for example:

## carriage return means new paragraph
put 0 into paragraphCount
repeat for each char c in fld myField
  if (c = cr) then add 1 to paragraphCount
end repeat

For more complicated definitions of paragraph you might use offset() 
to search for certain character sequences.




3.  Total number of Sentences in the text field


Similar to #2, except maybe with a list of sentence-ending punctuation:

put 0 into sentenceCount
repeat for each char c in fld myField
  if (c is in ?!.) then add 1 to sentenceCount
end repeat



4.  Total number of sentences per paragraph


Combination of #2 and #3 might work... something like:

## initialize
put 0 into paragraphCount
put 0 into sentenceCount
put empty into sentenceCounts
repeat for each char c in fld myField
  ## new paragraph: store the sentence count from the last one
  if (c = cr) then
  put sentenceCount into line paragraphCount of sentenceCounts
  add 1 to paragraphCount
  put 0 into sentenceCount
  end if
  if (c is in ?!.) then add 1 to sentenceCount
end repeat
answer sentenceCounts ## displays counts one per line for each paragraph



5.  Average number of words in a sentence


Something like #3, except try tracking your current position. Each time 
you finish a sentence, use a chunk expression like:
put the number of words in char (sentenceStart) to (sentenceEnd) into 
numWords


6.  Total number of passive verbs (this one would be probably 
involve a

small database/flat file to search and compare through?)


Try repeat for each word and lookup the words...



Ideas and help are greatly appreciated. Since I don’t know much about 
the coding

language yet, the more specific the better. Thank you all!


Hope that gives you a head start. I think you'll find if you get a 
little further along, you can come back and gets lots more help here!


- Brian

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


arggh... what handler to use on an unlocked text field?

2006-04-17 Thread Josh Mellicker
I understand that mouseUp and mouseDown messages don't work on an  
unlocked text field...


so how do you trigger a script when the user clicks in the field?

I could make them double-click, or right click... but I can't get any  
handler to go... : (



I'm trying to avoid stuff that generates tons of real-time messages  
(like mouseEnter (although that works))


-the noob
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arggh... what handler to use on an unlocked text field?

2006-04-17 Thread Phil Davis

Josh Mellicker wrote:
I understand that mouseUp and mouseDown messages don't work on an  
unlocked text field...


so how do you trigger a script when the user clicks in the field?


Hi Josh -

on openField
  -- your stuff here
end openField

It also gets triggered when they tab into the field.

Phil Davis



I could make them double-click, or right click... but I can't get any  
handler to go... : (



I'm trying to avoid stuff that generates tons of real-time messages  
(like mouseEnter (although that works))


-the noob
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arggh... what handler to use on an unlocked text field?

2006-04-17 Thread Josh Mellicker

Just found this info, trying now...

If you want to click a link in an unlocked field, you need to use the
selectionchanged handler, rather than the linkClicked handler. It is a
little more complicated to use:

on selectionChanged
  put the selectedchunk into tChunk
  if tChunk = empty or word 4 of tChunk = word 2 of tChunk then exit
selectionChangedd
  put the linktext of the selection into tLink
  revGoUrl tLink
end selectionChanged



On Apr 17, 2006, at 4:20 PM, Josh Mellicker wrote:

I understand that mouseUp and mouseDown messages don't work on an  
unlocked text field...


so how do you trigger a script when the user clicks in the field?

I could make them double-click, or right click... but I can't get  
any handler to go... : (



I'm trying to avoid stuff that generates tons of real-time messages  
(like mouseEnter (although that works))


-the noob
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arggh... what handler to use on an unlocked text field?

2006-04-17 Thread Josh Mellicker

Thanks Phil!


On Apr 17, 2006, at 4:25 PM, Phil Davis wrote:


Josh Mellicker wrote:
I understand that mouseUp and mouseDown messages don't work on an   
unlocked text field...

so how do you trigger a script when the user clicks in the field?


Hi Josh -

on openField
  -- your stuff here
end openField

It also gets triggered when they tab into the field.

Phil Davis

I could make them double-click, or right click... but I can't get  
any  handler to go... : (
I'm trying to avoid stuff that generates tons of real-time  
messages  (like mouseEnter (although that works))

-the noob
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread MITTAL Pradeep Kumar
Hello,
 
When I create a text field in the rev, then one can enter the mutliple
lines in the text field by using enter key.
 
Can anyone tell me what to configure so that text filed allow only one
line of text ?
 
Thanks for your help
 
Best Regards
Pradeep
 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread MITTAL Pradeep Kumar
Here is how you can achive this.

on enterinfield
put line 1 of me into me
end enterinfield
 
on returninfield
put line 1 of me into me
end returninfield
 
bye
pradeep

 

-Original Message-
From: MITTAL Pradeep Kumar 
Sent: Wednesday, January 25, 2006 8:12 PM
To: 'use-revolution@lists.runrev.com'
Cc: DAHIYA Nitesh; JAMKAR Kapil
Subject: How to allow only single line into text field (instead
of mutliple line)


Hello,
 
When I create a text field in the rev, then one can enter the
mutliple lines in the text field by using enter key.
 
Can anyone tell me what to configure so that text filed allow
only one line of text ?
 
Thanks for your help
 
Best Regards
Pradeep
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Pierre Sahores

Hi Pradeep,

Don't forget to set the don't wrap property of the field to true.

Best,

Le 25 janv. 06 à 20:38, MITTAL Pradeep Kumar a écrit :


Here is how you can achive this.

on enterinfield
put line 1 of me into me
end enterinfield

on returninfield
put line 1 of me into me
end returninfield

bye
pradeep



-Original Message-
From: MITTAL Pradeep Kumar
Sent: Wednesday, January 25, 2006 8:12 PM
To: 'use-revolution@lists.runrev.com'
Cc: DAHIYA Nitesh; JAMKAR Kapil
Subject: How to allow only single line into text field (instead
of mutliple line)


Hello,

When I create a text field in the rev, then one can enter the
mutliple lines in the text field by using enter key.

Can anyone tell me what to configure so that text filed allow
only one line of text ?

Thanks for your help

Best Regards
Pradeep


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



--
Bien cordialement, Pierre Sahores

100, rue de Paris
F - 77140 Nemours

[EMAIL PROTECTED]
[EMAIL PROTECTED]

Mobile  :   +33 6 03 95 77 70
Tel/Fax :   +33 1 64 45 05 33

http://www.sahores-conseil.com/

WEB/VoD/ACID-DB services over IP
Mutualiser les deltas de productivité


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Jeff Hudson
I just ran into this.  In basic properties I turned on TAB on  
return.  This made both the return and the enter more to the next  
text field.



Jeff



On Jan 25, 2006, at 1:12 PM, MITTAL Pradeep Kumar wrote:


Hello,

When I create a text field in the rev, then one can enter the mutliple
lines in the text field by using enter key.

Can anyone tell me what to configure so that text filed allow only one
line of text ?

Thanks for your help

Best Regards
Pradeep

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to allow only single line into text field (instead of mutliple line)

2006-01-25 Thread Jonathan Lynch
You also need to bear in mind the danger of a user pasting in text that
includes a linefeed.

I accomplish this with a rawkeydown handler that blocks the return and enter
keys, and that checks for ctrl-C and the insert key, and if it detects them,
replaces linefeed with empty before inserting the text to be pasted.

An easier approach (if acceptable for your app) is to also check after the
fact:

on Closefield
  replace linefeed with empty in me
end Closefield

on exitfield
  closefield
end exitfield


The exitfield handler in this case is necessary to cover for situations
where the user pastes text, then gets out of the field without typing
anything.



On 1/25/06, MITTAL Pradeep Kumar [EMAIL PROTECTED] wrote:

 Here is how you can achive this.

 on enterinfield
 put line 1 of me into me
 end enterinfield

 on returninfield
 put line 1 of me into me
 end returninfield

 bye
 pradeep



-Original Message-
From: MITTAL Pradeep Kumar
Sent: Wednesday, January 25, 2006 8:12 PM
To: 'use-revolution@lists.runrev.com'
Cc: DAHIYA Nitesh; JAMKAR Kapil
Subject: How to allow only single line into text field (instead
 of mutliple line)


Hello,

When I create a text field in the rev, then one can enter the
 mutliple lines in the text field by using enter key.

Can anyone tell me what to configure so that text filed allow
 only one line of text ?

Thanks for your help

Best Regards
Pradeep


 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Text Field Effect

2005-10-23 Thread Scott Rossi
Greetings List:

I just posted a stack that demonstrates an unusual effect you can apply to
text fields.  The stack is very large (1.8MB) as it does some very intense
calculations, but you're welcome to give it a try.

  http://www.tactilemedia.com/download/effect.rev.zip

Important: *requires* Rev 2.6 or later

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Effect

2005-10-23 Thread Malte Brill

Hey Scott,

I often wished I could do that before. Thanks for sharing. :-)

Malte


Greetings List:

I just posted a stack that demonstrates an unusual effect you can 
apply to
text fields.  The stack is very large (1.8MB) as it does some very 
intense

calculations, but you're welcome to give it a try.

  http://www.tactilemedia.com/download/effect.rev.zip

Important: *requires* Rev 2.6 or later



---
ArcadeEngine - prepare to WOW your audience within minutes
http://www.runrev.com/section/revselect/arcadeengine
http://www.derbrill.com/arcadeengine/forum 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Effect

2005-10-23 Thread J. Landman Gay

Scott Rossi wrote:

Greetings List:

I just posted a stack that demonstrates an unusual effect you can apply to
text fields.  The stack is very large (1.8MB) as it does some very intense
calculations, but you're welcome to give it a try.


Cute. But I see far more applications for this than just text. For 
example, applying the effect to photos of unpopular politicians could be 
very satisfying.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Effect

2005-10-23 Thread Scott Rossi
Recently, J. Landman Gay  wrote:

 I just posted a stack that demonstrates an unusual effect you can apply to
 text fields.  The stack is very large (1.8MB) as it does some very intense
 calculations, but you're welcome to give it a try.
 
 Cute. But I see far more applications for this than just text. For
 example, applying the effect to photos of unpopular politicians could be
 very satisfying.

Good idea.

Actually, the description was intended more as Sunday geek humor on my part.
There's no special calculations going on nor does the effect have anything
to do with text fields.  The stack just shows some fun with windowshapes.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Effect

2005-10-23 Thread Troy Rollins


On Oct 23, 2005, at 6:56 PM, Scott Rossi wrote:

Actually, the description was intended more as Sunday geek humor on my 
part.
There's no special calculations going on nor does the effect have 
anything
to do with text fields.  The stack just shows some fun with 
windowshapes.


That's too funny. This note came in just as I was about to say you're 
joking around, right?


Still, a cool demo that shows other ways that windowShapes can be 
exploited. Thanks.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text Field Effect

2005-10-23 Thread J. Landman Gay

Scott Rossi wrote:

Recently, J. Landman Gay  wrote:



I just posted a stack that demonstrates an unusual effect you can apply to
text fields.  The stack is very large (1.8MB) as it does some very intense
calculations, but you're welcome to give it a try.


Cute. But I see far more applications for this than just text. For
example, applying the effect to photos of unpopular politicians could be
very satisfying.



Good idea.

Actually, the description was intended more as Sunday geek humor on my part.
There's no special calculations going on nor does the effect have anything
to do with text fields.  The stack just shows some fun with windowshapes.


Yeah, I know. I should have added a smiley to my comment. Was trying to 
extend the mystery. :)


Doesn't seem to matter what you craft though, it is always pretty 
impressive.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


colors in scrolling text field

2005-08-23 Thread Jon
I am creating a scrolling log of program activities, and want to color 
code the output so that normal events are black or green, but problems 
are shown in red.  I played with setting colors in a regular field, and 
the colors seem to stick to the field positions, rather than moving with 
the characters.  Am I correct about this?


I tried setting the foregroundcolor in a text chunk that was stored in a 
local variable, but that failed.  The idea was to set the colors up in 
the string before it went out to the scrolling field, in the hopes that 
the colors would magically be set in the string and follow the 
characters out to the scrolling field.  This does not seem to work either.


Am I trying to do something that is not possible in Rev, or am I just 
not clear on how to accomplish this?  I know that HTML support is 
somehow built into parts of Rev: would using font color=green work?  I 
tried it, and it did not work trivially.


:)

Jon
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: colors in scrolling text field

2005-08-23 Thread Eric Chatonet

Hi Jon,

Le 23 août 05 à 23:18, Jon a écrit :

I am creating a scrolling log of program activities, and want to  
color code the output so that normal events are black or green, but  
problems are shown in red.  I played with setting colors in a  
regular field, and the colors seem to stick to the field positions,  
rather than moving with the characters.  Am I correct about this?


I tried setting the foregroundcolor in a text chunk that was stored  
in a local variable, but that failed.  The idea was to set the  
colors up in the string before it went out to the scrolling field,  
in the hopes that the colors would magically be set in the string  
and follow the characters out to the scrolling field.  This does  
not seem to work either.


Am I trying to do something that is not possible in Rev, or am I  
just not clear on how to accomplish this?  I know that HTML support  
is somehow built into parts of Rev: would using font color=green  
work?  I tried it, and it did not work trivially.


Using HTML is the right way to display coloured text and more  
generally styled text:
(here a tab delimited list where each line has a different colour and  
the first one is in bolded style)


pfont color=#006400b1/14/05#9;4:06:38 PM#9;Start/b/ 
font/p
pfont color=#8040001/14/05#9;5:56:47 PM#9;Auto  
backup#9;Done#9;Mailing base_3/font/p
pfont color=#6464641/14/05#9;6:26:51 PM#9;Auto  
backup#9;Undone#9;Unchanged file size/font/p


You might be interested in the Encoded Text Picker plugin which  
translates both to and from HTML and/or URLEncode, letting you to set  
styles, colors, etc. and watch the resulting html code and the How  
to Create and Manage HTML lists tutorial.

Both are available from my website.

Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: colors in scrolling text field

2005-08-23 Thread Mark Wieder
Jon-

Tuesday, August 23, 2005, 2:18:38 PM, you wrote:

 Am I trying to do something that is not possible in Rev, or am I just
 not clear on how to accomplish this?  I know that HTML support is 
 somehow built into parts of Rev: would using font color=green work?  I
 tried it, and it did not work trivially.

Set the color *after* you put the text in the field. I do this for log
output in the same manner as you're attempting and it works well for
me in scrolling fields.

put normal text  cr after field xyz
put problem text  cr after field xyz
set the foreColor of line -1 of field xyz to red

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: colors in scrolling text field

2005-08-23 Thread Jon

Eric:

Your response is, as usual, excellent.  Except that, as I said, I did 
try putting HTML into a scrolling field, and all I got was the typical 
HTML garbage on the screen; the HTML commands were not interpreted 
correctly.  Do I have to put the HTML someplace special, or enable it 
somehow?


Thanks!

:)

Jon


Eric Chatonet wrote:


Hi Jon,

Le 23 août 05 à 23:18, Jon a écrit :

I am creating a scrolling log of program activities, and want to  
color code the output so that normal events are black or green, but  
problems are shown in red.  I played with setting colors in a  
regular field, and the colors seem to stick to the field positions,  
rather than moving with the characters.  Am I correct about this?


I tried setting the foregroundcolor in a text chunk that was stored  
in a local variable, but that failed.  The idea was to set the  
colors up in the string before it went out to the scrolling field,  
in the hopes that the colors would magically be set in the string  
and follow the characters out to the scrolling field.  This does  not 
seem to work either.


Am I trying to do something that is not possible in Rev, or am I  
just not clear on how to accomplish this?  I know that HTML support  
is somehow built into parts of Rev: would using font color=green  
work?  I tried it, and it did not work trivially.



Using HTML is the right way to display coloured text and more  
generally styled text:
(here a tab delimited list where each line has a different colour and  
the first one is in bolded style)


pfont color=#006400b1/14/05#9;4:06:38 PM#9;Start/b/ 
font/p
pfont color=#8040001/14/05#9;5:56:47 PM#9;Auto  
backup#9;Done#9;Mailing base_3/font/p
pfont color=#6464641/14/05#9;6:26:51 PM#9;Auto  
backup#9;Undone#9;Unchanged file size/font/p


You might be interested in the Encoded Text Picker plugin which  
translates both to and from HTML and/or URLEncode, letting you to set  
styles, colors, etc. and watch the resulting html code and the How  
to Create and Manage HTML lists tutorial.

Both are available from my website.

Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: colors in scrolling text field

2005-08-23 Thread Jon

Mark:

Silly me: I did not think of line -1.  Still learning...

Thanks!

:)

Jon


Mark Wieder wrote:


Jon-

Tuesday, August 23, 2005, 2:18:38 PM, you wrote:

 


Am I trying to do something that is not possible in Rev, or am I just
not clear on how to accomplish this?  I know that HTML support is 
somehow built into parts of Rev: would using font color=green work?  I

tried it, and it did not work trivially.
   



Set the color *after* you put the text in the field. I do this for log
output in the same manner as you're attempting and it works well for
me in scrolling fields.

put normal text  cr after field xyz
put problem text  cr after field xyz
set the foreColor of line -1 of field xyz to red

 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: colors in scrolling text field

2005-08-23 Thread Ken Ray
On 8/23/05 4:58 PM, Jon [EMAIL PROTECTED] wrote:

 Your response is, as usual, excellent.  Except that, as I said, I did
 try putting HTML into a scrolling field, and all I got was the typical
 HTML garbage on the screen; the HTML commands were not interpreted
 correctly.  Do I have to put the HTML someplace special, or enable it
 somehow?

Jon, you don't put the HTML in the field, you set the htmlText of the
field to the HTML, as in:

  put This is bbold/b into tHTML
  set the htmlText of fld 1 to tHTML

HTH,

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


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: text field

2005-06-10 Thread Eric Chatonet

Hi Tarek,

Le 10 juin 05 à 04:14, tarek a écrit :

how to make a text field a password field, where characters are  
asterisks.


The answers you had from others are right.
But if you want to use a field to simulate a login/pasword dialog,  
you might be interested by my how-to stack #012 How to ask for a  
password.

Download Tutorials Picker from my website to access to it.

Best regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


password text field

2005-06-10 Thread tarek
Hi,

how to make a text field a password field, where characters are asterisks.

thanks,

-- 
tarek
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


text field

2005-06-09 Thread tarek
Hi,

how to make a text field a password field, where characters are asterisks.

thanks,

-- 
tarek
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: text field

2005-06-09 Thread Sarah Reichelt
how to make a text field a password field, where characters are  
asterisks.


thanks,


The only built-in way to get password entry is using the answer  
password command.
However if you want to allow people to enter passwords into a field,  
then you need to script the data entry yourself.
The easiest way is to let them enter the password as plain text and  
then in a closeField handler, store the actual password somewhere  
secure, perhaps in a custom property, then replace all the letters  
with asterisks.
Alternatively, you can trap the rawKeyDown or keyDown messages and  
append any typed characters to the stored password, while adding an  
asterisk to the field.


Cheers,
Sarah

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: text field

2005-06-09 Thread Dan Shafer

You'll want to use a dialog rather than a text field.

ask password

is the key.


On Jun 9, 2005, at 7:14 PM, tarek wrote:


Hi,

how to make a text field a password field, where characters are  
asterisks.


thanks,

--
tarek
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution






~~
Dan Shafer, Co-Chair
RevConWest '05
June 17-18, 2005, Monterey, California
http://www.altuit.com/webs/altuit/RevConWest

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Text-field validation

2004-11-24 Thread Lince m lawrence
What should I do the validate a Text-field for only numbers (including 
decimals)? When I used if theKey is not a number then this returns 
false for decimals. I need to turn it true.

I am just a day old with rev (and this is my first step with 
programming). Please help.

Thanks,
Lince M Lawrence
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text-field validation

2004-11-24 Thread Jan Schenkel
--- Lince m lawrence [EMAIL PROTECTED] wrote:
 What should I do the validate a Text-field for only
 numbers (including 
 decimals)? When I used if theKey is not a number
 then this returns 
 false for decimals. I need to turn it true.
 
 I am just a day old with rev (and this is my first
 step with 
 programming). Please help.
 
 Thanks,
 Lince M Lawrence
 

Hi Lince,

You can find a simple but effective script in this old
post that I dug up from the archive :
http://lists.runrev.com/pipermail/use-revolution/2003-September/022446.html

However, it doesn't handle what comes into the field
through copy+paste or drag-and-drop. You should be
able to fix that with the following additional piece
of script :
--
local sBeforePaste

on pasteKey
  put the text of me into sBeforePaste
  if checkAfterPaste is not in the pendingMessages \
  then send checkAfterPaste to me in 5 milliseconds
  pass pasteKey
end pasteKey

on dragDrop
  put the text of me into sBeforePaste
  if checkAfterPaste is not in the pendingMessages \
  then send checkAfterPaste to me in 5 milliseconds
  pass dragDrop
end dragDrop

on checkAfterPaste
  if the text of me is not a number then
beep
put sBeforePaste into me
  end if
end checkAfterPaste
--

You may have to tinker a few bits here and there to
make it work for you, but I hope this get you closer
to a solution.

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to create a list of images stored in a MySQL database in a text field

2004-11-05 Thread Jan Schenkel
--- Jérôme Rosat [EMAIL PROTECTED] wrote:
 Hi all,
 
 I would like to create a list field containing in
 each row an image, 
 its number and its name.
 The image size should make 16 X 16 pixels.
 
 I imagine I should first:
 - open a connection to my DB
 - execute a SQL query to select all rows of the
 table.
 
 I think I should use the imageSource property but I
 have got  no idea 
 how to use it to create the list and fix the size of
 the images.
 
 Does somebody have an idea ?
 
 Thank you for you help.
 
 Jérôme Rosat
 

Bonjour Jérôme,

As I don't recall seeing a reply to this on the list,
I thought I'd give you some advice (better late than
never, right ?)

Text field images are either stored in the stack and
refered to by their ID or name, or are external to
your stack and refered to by a URL (http or file)

So if the data is stored in a MySQL database, you'll
have to take two steps to accomplish your goals :

1) get the image data from the database and
temporarily store them inside an image control (this
control can be offscreen, or hidden)

2) then set the imagesource of a chunk of your field
to the ID of the image :
  set the imageSource of char 1 of line 2 of \
  field Foobar to myImageName

Hope this helped,

Jan Schenkel.

=
Join us at the European Revolution Conference
November 14-16, MALTA. ~ http://TechieTours.com/Rev/

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to create a list of images stored in a MySQL database in a text field

2004-11-05 Thread Jérôme Rosat
Bonjour Jan,
Thank you for your answer.
Yes, it helps me a lot.
Meilleures salutations.
Jérôme
Le 5 nov. 04, à 15:56, Jan Schenkel a écrit :
--- Jérôme Rosat [EMAIL PROTECTED] wrote:
Hi all,
I would like to create a list field containing in
each row an image,
its number and its name.
The image size should make 16 X 16 pixels.
I imagine I should first:
- open a connection to my DB
- execute a SQL query to select all rows of the
table.
I think I should use the imageSource property but I
have got  no idea
how to use it to create the list and fix the size of
the images.
Does somebody have an idea ?
Thank you for you help.
Jérôme Rosat
Bonjour Jérôme,
As I don't recall seeing a reply to this on the list,
I thought I'd give you some advice (better late than
never, right ?)
Text field images are either stored in the stack and
refered to by their ID or name, or are external to
your stack and refered to by a URL (http or file)
So if the data is stored in a MySQL database, you'll
have to take two steps to accomplish your goals :
1) get the image data from the database and
temporarily store them inside an image control (this
control can be offscreen, or hidden)
2) then set the imagesource of a chunk of your field
to the ID of the image :
  set the imageSource of char 1 of line 2 of \
  field Foobar to myImageName
Hope this helped,
Jan Schenkel.
=
Join us at the European Revolution Conference
November 14-16, MALTA. ~ http://TechieTours.com/Rev/
=
As we grow older, we grow both wiser and more foolish at the same 
time.  (La Rochefoucauld)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to create a list of images stored in a MySQL database in a text field

2004-10-31 Thread Jérôme Rosat
Hi all,
I would like to create a list field containing in each row an image, 
its number and its name.
The image size should make 16 X 16 pixels.

I imagine I should first:
- open a connection to my DB
- execute a SQL query to select all rows of the table.
I think I should use the imageSource property but I have got  no idea 
how to use it to create the list and fix the size of the images.

Does somebody have an idea ?
Thank you for you help.
Jérôme Rosat
Genève, Suisse
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arrow keys in a text field?

2004-09-14 Thread Geoff Canyon
I have a rawKeyUp handler to allow scrollbars to appear/disappear as 
the content overflows the field, but it passes all inputs.

TabGroupBehavior turned out to be the culprit. I don't know how it was 
set to true, but it was. Now all is well.

Thanks!
regards,
Geoff Canyon
[EMAIL PROTECTED]
On Sep 13, 2004, at 8:23 PM, David Vaughan wrote:
I have had a similar problem for ages with my Stocks stack, where 
attempting to navigate within a field actually moves you to the next 
field. Your problem inspired me to check the problem again. I found a 
group, which I do not recall creating but which may be giving 
background behaviour to the objects on the cards (it is a 
reimplementation of a HyperCard stack). In its properties, I unchecked 
Arrow keys navigate contents and my problem was resolved. Hope it 
might work for you.
On Sep 13, 2004, at 9:30 AM, J. Landman Gay wrote:
So the next thing would be to look at the properties of the group 
itself, since the misbehavior only occurs there. I'm not sure what 
properties would block arrow key behavior, but you could try toggling 
various ones to see if it helps. Also, it almost sounds like you have 
an arrowKey handler, keydown handler, or a rawKeyDown handler 
somewhere that may be blocking the behavior; probably in the group 
script?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arrow keys in a text field?

2004-09-13 Thread Geoff Canyon
On Sep 12, 2004, at 5:52 PM, Richard Gaskin wrote:
Geoff Canyon wrote:
I'm using 2.5 and I have a palette where the arrow keys aren't 
working in a field. I've already checked that the appropriate 
properties are set, and the arrow keys work if I move the field out 
of the group it's in.
I remember there being an issue if some portion of a field is covered 
by something else, but that doesn't seem to be the case here. I've 
tried setting the group to the highest layer, and the field to the 
highest layer in the group, with no luck.
I've looked at the rawKeyUp data, and that message is being 
triggered. But the arrow keys still don't move the cursor.
Any ideas before I go prematurely gray?
Hqve you checked the arrowKeys and navigationKeys properties?
true and true, or true and false, makes no difference.
regards,
Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arrow keys in a text field?

2004-09-13 Thread J. Landman Gay
On 9/13/04 2:58 AM, Geoff Canyon wrote:
On Sep 12, 2004, at 5:52 PM, Richard Gaskin wrote:
Geoff Canyon wrote:
I'm using 2.5 and I have a palette where the arrow keys aren't 
working in a field. I've already checked that the appropriate 
properties are set, and the arrow keys work if I move the field out 
of the group it's in.
I remember there being an issue if some portion of a field is covered 
by something else, but that doesn't seem to be the case here. I've 
tried setting the group to the highest layer, and the field to the 
highest layer in the group, with no luck.
I've looked at the rawKeyUp data, and that message is being 
triggered. But the arrow keys still don't move the cursor.
Any ideas before I go prematurely gray?

Hqve you checked the arrowKeys and navigationKeys properties?

true and true, or true and false, makes no difference.
I assume Richard meant navigationArrows. There is also the 
textArrows property, which provides separate control. I suppose you've 
looked at that too...

So the next thing would be to look at the properties of the group 
itself, since the misbehavior only occurs there. I'm not sure what 
properties would block arrow key behavior, but you could try toggling 
various ones to see if it helps. Also, it almost sounds like you have an 
arrowKey handler, keydown handler, or a rawKeyDown handler somewhere 
that may be blocking the behavior; probably in the group script?

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


Re: arrow keys in a text field?

2004-09-13 Thread David Vaughan
On 13/09/2004, at 22:12, Geoff Canyon [EMAIL PROTECTED] wrote:
I'm using 2.5 and I have a palette where the arrow keys aren't working 
in a field. I've already checked that the appropriate properties are 
set, and the arrow keys work if I move the field out of the group it's 
in.

I remember there being an issue if some portion of a field is covered 
by something else, but that doesn't seem to be the case here. I've 
tried setting the group to the highest layer, and the field to the 
highest layer in the group, with no luck.

I've looked at the rawKeyUp data, and that message is being triggered. 
But the arrow keys still don't move the cursor.

Any ideas before I go prematurely gray?
Geoff
I have had a similar problem for ages with my Stocks stack, where 
attempting to navigate within a field actually moves you to the next 
field. Your problem inspired me to check the problem again. I found a 
group, which I do not recall creating but which may be giving 
background behaviour to the objects on the cards (it is a 
reimplementation of a HyperCard stack). In its properties, I unchecked 
Arrow keys navigate contents and my problem was resolved. Hope it 
might work for you.

regards
David
regards,
Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


arrow keys in a text field?

2004-09-12 Thread Geoff Canyon
I'm using 2.5 and I have a palette where the arrow keys aren't working 
in a field. I've already checked that the appropriate properties are 
set, and the arrow keys work if I move the field out of the group it's 
in.

I remember there being an issue if some portion of a field is covered 
by something else, but that doesn't seem to be the case here. I've 
tried setting the group to the highest layer, and the field to the 
highest layer in the group, with no luck.

I've looked at the rawKeyUp data, and that message is being triggered. 
But the arrow keys still don't move the cursor.

Any ideas before I go prematurely gray?
regards,
Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arrow keys in a text field?

2004-09-12 Thread Richard Gaskin
Geoff Canyon wrote:
I'm using 2.5 and I have a palette where the arrow keys aren't working 
in a field. I've already checked that the appropriate properties are 
set, and the arrow keys work if I move the field out of the group it's in.

I remember there being an issue if some portion of a field is covered by 
something else, but that doesn't seem to be the case here. I've tried 
setting the group to the highest layer, and the field to the highest 
layer in the group, with no luck.

I've looked at the rawKeyUp data, and that message is being triggered. 
But the arrow keys still don't move the cursor.

Any ideas before I go prematurely gray?
Hqve you checked the arrowKeys and navigationKeys properties?
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Text hilite rollover in text field

2004-04-15 Thread Jeanne A. E. DeVoto
At 4:13 PM -0400 4/13/2004, [EMAIL PROTECTED] wrote:
If I want to have a text field with a list of items, and have rollovers
working over that text field so that moving the mouse up and down 
automatically
hilites the line underneath the mouse, what's the best way to accomplish this?

I've tried playing with the mouseWithin, hilitedLine, and hilite commands,
but can't seem to piece them together in a way that works.
Try mouseMove:

  on mouseMove
set the hilitedLine of me to word 2 of the mouseLine
  end mouseMove
(The hilitedLine has the form line X of field Y, so you need to use 
word 2 of it to get the actual line number.)
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


  1   2   >