I have no issue with this. I remember a while back that single char
properties or variables caused a problem. I tested this in a button:
on mouseenter
put random(99) into xxx
set the xxx of me to xxx
put the xxx of me
end mouseenter
gives a bunch of random number whenever you enter t
Mark is spot on about using the "dispatch" command, but remember that if
you write a repeat loop as in:
on mouseUp
repeat with y = 1 to the number of controls
dispatch yourMessage with yourParams to control y
end repeat
end mouseUp
you will only get the controls on the current car
Rereading your post, do you also need to send the message to cards? To
stacks?
No problem, fortunately, as you can easily write a universal handler that
runs through all objects, not just controls.
Craig Newman
___
use-revolution mailing list
use-revo
Charles.
I think what Mark is trying to say to you is that your line has to read:
if the name of this card is "adult"
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and m
When you set the loc of an object, you have to explicitly name the object.
"Amir" could be anything. You have to say, for example :
set the loc of button "amir" to...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url
Jacques.
This is an aspect of Rev that likely confuses novices. Like me.
The comboBox is really a composite object consisting of a field and other
controls. So when you have a selection in it, asking for the selectedChunk,
say, gives you a field reference you might never have known even existed
There is a thread in the forums about the fact that if one types into a
fld, but never types a space, the text will not wrap, irrespective of the
dontWrap property.
So even if dontWrap is false, at least one space is required IN EACH LINE
that one types in order for Rev to wrap the screen lin
Jacques.
So you are saying that since Rev does not have correct wrap behavior, the
formattedText cannot work. Odd that it does that, though. What makes spaces
so special, that having one does give Rev the correct behavior?
Craig
In a message dated 4/30/10 2:18:00 PM, jac...@hyperactivesw.com w
I guess I sort of see. The wrap (and formattedText) works with words,
slicing the text off at the nearest whole word boundary. If a line has only one
word, it just doesn't apply.
Craig
___
use-revolution mailing list
use-revolution@lists.runrev.com
Ple
Scott.
If you have your three points, like "a,b", "c,d" and "e,f", just order the
x values (a,c and e) and the y values (b,d and f).
If the x value of the point is greater than the lowest x value of the
triple and less than the highest (and like wise for the y, then the point lies
within the t
Scott.
Of course it does. So your comment of "good thought" was overly generous?
Craig
In a message dated 4/30/10 3:48:11 PM, sc...@tactilemedia.com writes:
>
> Good thought, but if I understand what you're proposing, no, using the
> extents of the triangle defines a rectangular region, so th
Your handler works for me.
If you step through the script, where does it not go wrong? Sometimes in
debugging I will rewrite even simple "if/then" statements in their expanded
form:
if this then
dotThat
end if
Instead of: if this then doThat.
Because you can place a breakpoint at the "doTh
Please try changing the text to something that is simpler, like "test". If
this single word works, then retype the phrase you really want, and paste it
(do not retype it) everywhere you use it.
Sometimes invisible characters make their way into the works, Sometimes
there is no apparent reason,
Steve;
You have several valid answers.
More important, consider a couple of the niceties in what has been said:
1- The "repeat with" structure declares a variable and sets an initial and
a final value, incrementing automatically. In your case, you start at
explicitly at 1 and continue until th
try;
get the properties of yourControl
combine it with return and colon
This last because the properties is an array, and you need to change it to
an ordinary variable in order to read it.
Craig Newman
___
use-revolution mailing list
use-revolution@li
Or you can download my "Wizard" from revOnLine. It does all that you asked
for, and allows you to change values on the fly.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and
Not sure what "reasonably priced" is, but you will love the "service USB"
gadget from:
http://bkohg.com/service_e.html
Craig Newman
In a message dated 5/6/10 2:53:22 PM, stephenrevoluti...@barncard.com
writes:
> 2. A small and reasonably priced USB interface box that can work with
> rev?
>
Not passing "preOpenStack" in your working stack will cripple automatic
updating if you navigate, but otherwise not matter much. You can always update
manually if you move to another card.
But it is always a good idea to pass these sorts of system messages as a
matter of course, unless you have
Very nice indeed. It can become the foundation of a whole new hobby. The
Rev part is simple and seamless. Works like a charm and tons of fun.
Craig Newman
In a message dated 5/6/10 3:48:17 PM, stephenrevoluti...@barncard.com
writes:
> yes, very nice stuff. A "Revolution External" is mentioned
I wrote a live resizing gadget a while back. Works under script control,
not the IDE tools. Likely someone will post a full application in the next few
minutes, but if not, I will send mine tomorrow when I get to my office.
Craig Newman
___
use-revolut
These two handlers can be put into the script of any object. It is no big
deal; very straighforward. The commented lines refer to a small btn called
"handle" which I originally had to indicate exactly what you don't want to
see. The handler can certainly be modified and put in the card script to
Wierd. third time this week I am recommending the "Service USB" gadget:
http://bkohg.com/service_e.html
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscrip
I asked these things before; this time I will write them down.
In the debugger:
Isn't there a keyboard shortcut to put the selection into the find box? I
know you can drag selected text, but that only inserts it into (after,
before) what might already be there. It would be the equivalent of Cmd
Ah. I got the watchpoints to work. My hastiness.
About that find shortcut, though...
Thanks.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
pref
Thanks. I am writing it down.
In a message dated 5/13/10 5:54:12 PM, zryip.thes...@gmail.com writes:
>
> Check your edit menu when you are in the script editor. There is a
> menu "Find selection" with its shortcut (option + command + F) that
> could help you.
>
>
_
You sort of already had it. Wouldn't:
on mouseUp
get lineoffset(yourChar,yourField)
answer offset(yourChar,the value of line it of fld yourField)
end mouseUp
do?
Do you really always have the line you need? Or is that part of the issue?
As for false positives, this will only give the
I still use a bunch of "hyperdialer" gadgets that connect between a handset
and the telephone. The HC "dial" command generates DTMF tones, so that in
an address book, a one line script will dial the number. In fact, before I
found those devices (20 years ago) it was possible to have the tones pl
I think I see what you are trying to achieve. But even if Rev supported
discontinuous selections in an editable field, how would you actually select
the various chunks? Normally, the current selection is released when you click
somewhere else in the field.
But if you did it by holding down the
Hi.
Set the vScrollBar property based on the formattedHeight.
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
I have played around with table fields, but wonder where any information
about them exists. The user manual barely mentions them. I see it is a single,
(sort of) list field with management to permit text entry into "cells".
I cannot for the life of me trap any of the keyup/down or rawKeyup/down
Hi, Colin.
Help? If only this site covered every topic I wouldn't miss Mr. Goodman so
much.
Thank you.
Craig
In a message dated 5/26/10 3:25:50 PM, co...@verizon.net writes:
> http://www.sosmartsoftware.com/?r=revolution_didacticiels&l=en
>
___
us
Still not sure about that phantom field, though.
___
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-revolu
Good ol' Jacques.
Thanks. Makes perfect sense. It is the inner workings that I am interested
in.
Never occurred to me that such shenanigans were going on behind the scenes,
but given that a data grid is actually dozens of objects all roped
together, why not?
Craig
In a message dated 5/26/10
The field's scrollbar is usually understood as an absolute indicator. When
it is up, so should the scroll, when down, the same.
The wheel has no such indication as to its relationship with the scrolling
object. So I think you should create a "wheel" of some sort that you
operate. A "little arro
I have never seen a handler nested inside another. It would mean;
on soAndSo
on doThis
end doThis
end soAndSo
There must be a semantic misunderstanding here. Perhaps what is meant is a
handler call:
on soAndSo
doThis
end soAnd So
One might say that a handler sort of lives inside anoth
Depend. I was joking.
There is a "rotate" concept that takes "abcd" and makes "bcda" and then
"cdab". When I say easy, I mean straightforward. Implementing in reality means
all sorts of fun and frustrating machinations to get it just the way you
want. But you seem to get that.
But it should be
Hi.
How does the user "flick"? With the mouse? Is the mouse down when you
flick? If you use anything like what I suggested, you should be able to use the
"mouseMove" function to determine flick speed, and set the speed of rotating
the data based on that. Once you have a max start speed, you can
In Rev, "marked" is a keyword but (no longer) a property.
You cannot say "if the marked of cd 3 then doSoAndSo". You have to say "the
mark of..."
Just a small example of a difference with HC.
Craig Newman
___
use-revolution mailing list
use-revolution
A problem was posted to the forums. SomeOne wanted to type text into a
field, and have that text dynamically located among the lines of another
scrolling list field such that closer and closer matches are found as the text
entry gets longer.
Easy to do. Two fields, some lineOffset stuff, etc.
Just on the fly here because it might well be possible to keep the
selectedText.
Might you change the color or the style of the selectedtext? Perhaps to
"box"? Then you can change it back once your own changes have been made.
___
use-revolution mailing
Mark probably missed the fact you have many checkboxes on each card.
repeat with y = 1 to the number of marked cds
repeat with u = 1 to the number of btns of marked cd y
if the style of btn u of marked cd y = "checkBox" then set the hilite
of btn u of marked cd y to "false"
end repeat
Labels of the field?
Buttons have labels, but fields don't. When you run your script, the
contents of the field are emptied. What else is also?
Craig Newman
In a message dated 6/7/10 11:19:18 AM, csz...@mac.com writes:
>
> I spoke too soon about your code. It not clears the fields but it al
n you can add a check in your script to see if the property is "true" or
not.
In a message dated 6/7/10 11:51:54 AM, csz...@mac.com writes:
> Dunbarx
>
> In addition to the data entry fields being cleared, the name of the label
> fields are changed to field "label field&quo
The properties mentioned are not intrinsic to label fields, they are just
defaults at creation, and may be common to other fields. Certainly sharedText
and lockText could be. All the other suggestions are valid as far as they
go, naming, numbering, layering, etc., but these may not be convenient
I think you are almost there. But I would not use the
In a message dated 6/9/10 1:03:14 PM, csz...@mac.com writes:
> Craig,
>
> I made some changes in my script, which works. I am carefully checking any
> field on a marked card to see if there are problems.
>
> Here is the revised script
>
>
Charles,
I think you are almost there. But I would not use the "locktext" to
distinguish label fields from all my other fields, for reasons already
discussed. I
would set a custom property:
if the isLabel of field u of card y is "true" then put empty into field u
of marked card y
This is cle
Charles.
Custom properties are very simple and very powerful. They work just like
any other property.
You just make them up. Write:
set the isLabel of field "yourField" to "true" --isLabel is the new
custom property
Then ask:
answer the isLabel of fld "yourField"
You will get "true".
Y
Cool. How does one get on the map?
Craig Newman
In a message dated 6/9/10 2:50:54 PM, r...@free.fr writes:
> http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&;
> msid=103560329393675966954.00047f3f26dbe66f71c2d&ll=17.978733,12.304688&spn=124.244284,268.242188&
> t=h&z=2
>
___
Stephen has a point. If you want, the label fields can have the property
set to "true", and all other fields can have the property set to empty.
Since you already set the locktext of your label fields to "true" (and I assume
that means that all your other fields have it set to "false") you can
This is on the "Studio and Enterprise" forum. I made a small stack to
illustrate a point. I tried to attach it to my post.
Just cannot do it. Errors have to do with extension issues and no-extension
issues. Anyone know the protocol? Should I contact Heather?
Thanks,
Craig Newman
Thanks, that's it exactly.
No info about that, though in hindsight I should have experimented.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
pre
Your script works fine. Do you mean that other graphics get in the way,
visually, of your tape measure graphic? If so, can you hide them while you
are measuring, or bring the graphic to the front? If not, as Colin points out,
what exactly is going wrong?
Craig Newman
In a message dated 6/14/
I think you will have to script this. Do you need help?
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/mailma
Something like this, in a button?
on mouseUp
repeat with y = 1 to the number of cds
repeat with x = 1 to the number of fields of cd y
set the lockText of fld x of cd y to yourCondition
end repeat
end repeat
end mouseUp
___
use-revo
Do you need to do this on a regular basis? If so, you can put the code I
just sent into the stack script, but change it:
on changeAllFields tProperty,tValue
repeat with y = 1 to the number of cds
repeat with x = 1 to the number of fields of cd y
set the tProperty of fld x of cd y t
Academic, I suppose, but does anyone know that if you try to delete the
last card in a stack by invoking "delete this card", you end up with a blank
card? Any controls on the (ostensibly) last, or single, card are removed, and
a blank one remains.
In HC this would generate an error, suggesting
Are all reports in Rev hand made? The HC report feature was clunky, though
adorable, but it did possess extensive capability, especially in that any
sort of function could be assigned to a "report item", if anyone remembers
what those were.
Anyway, do I essentially contruct cards to work as rep
Mark.
I get no error with either construction.
Craig
In a message dated 6/16/10 10:15:43 AM, m.schonewi...@economy-x-talk.com
writes:
> put the number of controls of the currentcard of stack "License
> Maker"
>
___
use-revolution mailing list
use
And I thought I sort of knew what I am doing.
Now in HC, if you say "go to stack soAndSo", you go to that stack.
In Rev, I get "no such card".
If the stack has previously been opened the command works just fine. But if
it has never been opened, I can open it with dialogs, or by explicitly
wri
Colin.
If you try to navigate to a stack not explicitly listed in the "Search
Paths" cards of the home stack (pertains to files as well) you get a dialog
asking where it is. This is what I would have expected. But no such feedback,
except for the result being set.
Tripped me up, and I was wond
All:
Thanks. Makes sense. Very workable. Just different. Short stilted
sentences.
Craig
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://li
I started a thread on just this subject a few days ago. You cannot "go" to
a stack that has not been loaded into memory. Unlike in HC, which kept a
log of valid folders where the engine would look for an unopened stack and do
the work for you, Rev requires a bit more.
But if you cannot go to
Are you sure you have this set up correctly? A behavior is a property of an
object, and explicitly references a button. This button has a script that
the object "shares".
Does the button itself have the preOpenCard handler? Does the stack (or
card) have its behavior set to the long ID of the bu
Mark.
I have no issue with "preOpenCard".
I made a stack just like I wrote to Andre. A button has:
on preOpenCard
Beep 3
end preOpenCard
I set the stack behavior to the button. Beeps happily away...
But I did just notice that for most controls except for simple buttons and
fields, there is
Hmmm.
Remember that the "preOpenCard" message is sent to the current card, not to
a button on the card. Is that what the problem is, that the message is
starting too high? I think there is a slight misunderstanding of the
terminology.
You need to set the behavior of the card to (the script of)
No, as long as there is no preOpenCard handler in the card(s), the stack
will get it, and then it will send it along to the button as per its (the
stack's) behavior. Normal message hierarchy.
This is essential if the initialization is required when opening other
cards in the stack as well. If i
Mark.
Yep, you're right. If I quit rev and reopen, and immediately ask for the
behavior of the stack, I get a valid button reference. So it seems like
everything should be fine. But no go, like you discovered. And yes, if I set
the
stack behavior manually all over again, changing, ostensibly n
Hide/show stack "revTools"
Cool that all such gadgets are stacks.
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
Colin.
Actually, he had a problem in that opening a new stack set the visible of
the tools palette back to true. So I think he also needs to know how to
access it, so he can hide it.
Craig.
In a message dated 6/24/10 4:16:05 PM, co...@verizon.net writes:
>
> It also reports as being a windo
I had mentioned the function "the stacks". There are several others. Check
the dictionary using the word "stacks".
But your point is well taken. The dictionary is the primary resource for
learning the myriad capabilities of Rev, and, like searching with Google, you
need a certain flair in knowi
Works for me. Something is going on at your end.
If you click and hold on the small arrows, does the stack size change,
tracking the increase or decrease in the values?
Craig Newman
In a message dated 6/28/10 11:07:50 AM, mich...@michaelsmanias.com writes:
> When I type in a new location and
So the size tracks the changes when clicking on the arrows, but NOT when
you enter a value and leave the field?
Craig Newman
In a message dated 6/28/10 11:24:39 AM, mich...@michaelsmanias.com writes:
> Yes this works.
>
___
use-revolution mailing li
I think this is best done under script control. Do you mean that the two
fields scale when the stack size changes? Or are there other ways to change
the size of one field, and you want the other one to obey certain rules?
Fun ways to do either...
Craig Newman
___
Hi.
The "intersect" function is just what you need. Check the dictionary.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://list
A logical deduction. But "within" (either the function or the operator)
deals with points only. Intersect does a lot of geometry for you.
Craig Newman
In a message dated 6/30/10 4:16:53 PM, gboj...@gmail.com writes:
>
>
>
___
use-revolution mailing
> Try this:
>
on mouseUp
put separateNumbers(fld yourField) into temp
sort temp numeric by item 2 of each & item 1 of each
sort temp by item 1 of each
replace comma with empty in temp
put temp into fld yourField
end mouseUp
function separateNumbers var
repeat for each ch
Hold everything. Doesn't work.
Yet.
___
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
Probably could streamline this, but:
function separateNumbers var
repeat with y = 1 to the number of lines of var
repeat with u = 1 to the number of chars of line y of var
if char u of line y of var is in "0123456789" then
put comma before char u of line y of
This is what comes of these races to publish, especially against Colin.
Frantic copying and pasting. Horrible mistakes. It has to stop!
Anyway...
function separateNumbers var
repeat with y = 1 to the number of lines of var
repeat with u = 1 to the number of chars of line y of var
Colin, I actually just read your correction of my earlier script. I swear I
did not do so before I sent my latest one in. Almost identical except you
like the early part of the alphabet, and I like the latter.
Craig
___
use-revolution mailing list
use-
In the handlers submitted earlier one could use an obscure delimiter, like
ASCII 241 or whatever, instead of comma, and set the itemDel.
In a message dated 7/1/10 11:46:06 AM, dave.cr...@lacscentre.co.uk writes:
> It should handle cases where there are commas in the original text. I
> don't k
Bob.
Old HC trick. You can have any number of sortkeys, and they operate in
order. Stable sorts, of course.
The real gist of this thread for H, if that is his real name, is that the
data has to be parsed. The multiple sorts, regex solutions, etc. are just
tools.
Craig
In a message dated 7/1/
My mistakes all come from rushing to get the first response in. You would
not believe the competition.
I also just screw up a lot. Oh, and don't test.
Craig Newman
In a message dated 7/1/10 12:59:32 PM, dave.cr...@lacscentre.co.uk writes:
> I think that may be a better idea. I just discovered
I made a stopwatch a while ago. Make a button and name it "start". Make
another button and name it "reset". Make a field and name it "timer".
In the script of button "start":
on mouseDown
lock screen
if the label of me = "start" then
set the label of me to "stop"
set the s
If you already have a group "yourGroup" with its background behavior set to
"true", you can:
create button "yourButton" in group "yourGroup"
The button will be "placed" on all cards.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.ru
What is the best way to add an existing control to a group, without
disassembling the group? You cannot set the owner of a control.
The create [in group] command works fine for a new control. Is there an
"insinuate" command?
Craig Newman
___
use-revol
But this leaves the original, no? I was wondering if one could simply make
an existing object "join" an existing group.
Thanks.
In a message dated 7/22/10 3:39:40 PM, zryip.thes...@gmail.com writes:
> Copy [object] to group "MyGroup"
>
___
use-revol
No, that doesn't do it. The newly formed group is not the one of interest.
The idea from the original poster was that he had a bg group on hundreds of
cards, and wanted a simple way to add a new object into that group, so that
it, too, would immediately be in the group and on all the cards. This
Ah. This works. Thanks.
It is something I actually read once in the dictionary under
relayerGroupedControls. It doesn't stick (at least witn me) until you use it.
It is a neat little property of layering that makes this functionality
possible. Works the other way, too. Layers are far more impo
This came up in one of the forums. I couldn't find it in the Q/A center,
which surprised me
The fill color, line weight and line size tools will not modify an existing
graphic or bitmap. They will only set these properties for newly created
ones.
The "colors and patterns" pane in the inspector
In HC, one is always assured that the home stack script will be placed well
back in the message hierarchy when HC is first started, regardless of how
that process is initiated. So that a "startup" message can be handled in a
central, guaranteed-to-be-there location.
In Rev, Is the stack "revSta
Thanks, Jacque.
That the template object is what is set by those tools is completely
understandable, and totally unresearchable. Longing for a Rev Goodman.
Craig
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to s
Thanks, all. Got it.
Once again, this is fully reasonable, very doable, and yet this information
is not easily obtainable. You can get facile with the language by writing
lots of code and rummaging through the dictionary. But if not for this list,
how could any of the structural stuff ever be l
Check out the "relayerGroupControls" property. You need to set it to
"true". Check out the dictionary. There are a few hints and caveats.
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, un
Me, too, with a group and an even smaller image.
If I set the loc of the image to a point outside the group, the group
expands to contain it, as usual. If I set it to a point anywhere inside the
group, again, the group extent adjusts.
On a Mac. Does this matter?
Craig Newman
__
In HC, I always distinguished, within a single mouseUp handler, the
difference between a single mouseClick and a double mouseClick as:
on mouseUp
wait 15
if the mouseClick then put "Double" else put "Single"
end mouseUp
But it seems more modern, more revLike, to use a mouseUp handler and a
There always seems to be a better way, but you can always:
on mouseUp
ask "Find?"
if it <> "" then put it into tFind
repeat with y = 1 to the number of cds
repeat with u = 1 to the number of flds of cd y
if tFind is in fld u of cd y then put "fld id" && the id of fld u
When you say graying out the text, have you set the blendLevel of the field
to some number, like 50? If so, you can see the underlying object, but the
text is grayed. Try setting the "transparent" of the field instead. Then the
text remains sharp, and only the white space is removed.
As for let
When you say graying out the text, have you set the blendLevel of the field
to some number, like 50? If so, you can see the underlying object, but the
text is grayed. Try setting the "transparent" of the field instead. Then the
text remains sharp, and only the white space is removed.
As for let
I don't see this behavior at all, and I bet nobody else does. Wierd, but it
is something in your setup. This would be maddening, as you say.
Anyone?
Craig Newman
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to s
1 - 100 of 646 matches
Mail list logo