Re: On-Rev testing - opinion poll

2009-05-27 Thread Sarah Reichelt
>> If you want to see the script, it is all here:
>> 
>
> Nice. I can get the script viewer to mess up if I type
>
> http://troz.on-rev.com/poll.irev
>
> into the url line and press return. Apparently the page generator is
> using the url to generate the script viewer link.

Yes, it is, so I guess I need to do a bit more checking on the link.
Thanks for that Mark.

Cheers,
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: On-Rev testing - opinion poll

2009-05-27 Thread Mark Wieder
Sarah-

Wednesday, May 27, 2009, 8:04:10 PM, you wrote:

> If you want to see the script, it is all here:
> 

Nice. I can get the script viewer to mess up if I type

http://troz.on-rev.com/poll.irev

into the url line and press return. Apparently the page generator is
using the url to generate the script viewer link.

-- 
-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


selecting multiple lines in a field with arrow keys

2009-05-27 Thread mfstuart

Hi all,

I'm trying to hilite multiple lines in a scrolling field with the arrow keys
(up or down), the same way as doing it with the mouse (while holding down
the shiftKey).
The field has the multipleHilites and the noncontiguousHilites both checked.
Also the field is locked, and the Focusable is checked.

Using the mouse while holding down the shiftKey I can select multiple lines,
but using the arrow keys while holding down the shiftKey does not allow
selecting multiple lines.

Q: How do I do the latter?

--
 Regards,
 Mark Stuart
-- 
View this message in context: 
http://www.nabble.com/selecting-multiple-lines-in-a-field-with-arrow-keys-tp23755269p23755269.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: On-Rev testing - opinion poll

2009-05-27 Thread Phil Davis

Hi Sarah,

My results were the same as those of Nicolas. Nice job!

Phil


Nicolas Cueto wrote:

Hello Sarah,

Tried your poll. Could vote the first
time, but not any times after that.

Nifty!

Have archived your script for
my future use. Thanks.

--
Nicolas Cueto


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.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: On-Rev testing - opinion poll

2009-05-27 Thread Sarah Reichelt
On Thu, May 28, 2009 at 2:02 PM, Nicolas Cueto  wrote:
> Hello Sarah,
>
> Tried your poll. Could vote the first
> time, but not any times after that.
>
> Nifty!
>
> Have archived your script for
> my future use. Thanks.

Excellent - thanks Nicholas.
Don't forget to grab the cookies include file as well from


And I've just improved the comments on the page, so you might want to
update your archived copy.

Cheers,
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: On-Rev testing - opinion poll

2009-05-27 Thread Nicolas Cueto
Hello Sarah,

Tried your poll. Could vote the first
time, but not any times after that.

Nifty!

Have archived your script for
my future use. Thanks.

--
Nicolas Cueto
___
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: Correct Rev File Association?

2009-05-27 Thread Paul Gabel

No he doesn't.

On May 27, 2009, at 5:35 PM, Richard Gaskin wrote:


Scott Rossi wrote:

A customer of mine is reporting that his Mac system is currently  
treating
stacks as standalone apps: double-clicking a stack in the Finder  
launches
the stack as a standalone app without Rev's IDE.  The problem  
appears to be
a file-association issue.  Looking in the Get Info window for the  
stack
shows "Standalone (default)" as the default application under "Open  
with:".
Changing this to any version of Rev and clicking "Change All..."  
fails to

stick (reverts back to Standalone).
Is there a way to force-update the default app without reinstalling  
Rev or

resorting to a 3rd party tool?


It may be unrelated to the Rev install.

Does he have a standalone on his HD named "Standalone"?

--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.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: Property problem

2009-05-27 Thread Richard Gaskin

DunbarX wrote:

Long winded philippics notwithstanding, the "effective" properties do the 
trick. They essentially provide what I called the "default" values of those 
properties, so I will use them.


Seems like a minor glitch, though.


One man's glitch is another man's freedom:  I love the convenience of 
having controls without text or color properties set, then set them once 
at the stack level so all controls within that stack take on native 
appearances for each platform.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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: Property problem

2009-05-27 Thread DunbarX
This does not seem to matter here at home. I will recheck the script I made
at work, where I am sure (hah!) this was the case.

Craig

In a message dated 5/27/09 6:31:29 PM, jac...@hyperactivesw.com writes:


> What I don't understand is why you got a value when asking by button
> name. The properties should be empty no matter what type of object
> reference you use.
>




**
We found the real ‘Hotel California’ and the ‘Seinfeld’
diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/?ncid=emlwenew0004)
___
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: Property problem

2009-05-27 Thread DunbarX
Jacques.

Long winded philippics notwithstanding, the "effective" properties do the
trick. They essentially provide what I called the "default" values of those
properties, so I will use them.

Seems like a minor glitch, though.

Thank you again.

Craig

In a message dated 5/27/09 6:31:29 PM, jac...@hyperactivesw.com writes:


> What I don't understand is why you got a value when asking by button
> name. The properties should be empty no matter what type of object
> reference you use.
>




**
We found the real ‘Hotel California’ and the ‘Seinfeld’
diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/?ncid=emlwenew0004)
___
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: Property problem

2009-05-27 Thread DunbarX
I don't know, Jacque. There are about sixty-odd properties in a new button,
and almost all have values: rects, hilites, borderWidths, etc. None have
been set by anyone, and many cannot have been inherited from the card (which
would be its owner) and which are not properties of a card anyway. It was
just those three, all basic text properties.

Virgin fields have these three text properties (again, textSize, textFont,
textStyle) at the getgo. Not buttons.

But most telling is that the three properties are gettable when just one is
set. In the property inspector, all three are blank initially, though there
certainly is a value for each; they just are not listed. Setting one
(textSize, say) still shows blank for, say, textFont. Yet all of them are 
gettable
right afterwards.

It is really screwing up a task I am trying to work out. I need to get
these properties, and I cannot assume that my target buttons will have been
massaged. My workaround is to check whether the properties are   blank, and if
so, set them to what I assume are the default, at creation, values. I guess
this will be OK.

Thanks,

Craig



In a message dated 5/27/09 6:31:29 PM, jac...@hyperactivesw.com writes:


> What I don't understand is why you got a value when asking by button
> name. The properties should be empty no matter what type of object
> reference you use.
>




**
We found the real ‘Hotel California’ and the ‘Seinfeld’
diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/?ncid=emlwenew0004)
___
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


On-Rev testing - opinion poll

2009-05-27 Thread Sarah Reichelt
Hi All,

In my further testing with On-Rev, I have now constructed an opinion poll page:


I would be very grateful if people could help me test by going and voting.
It is supposed to allow only one vote per computer, storing a cookie
after a valid vote, so please try voting more than once and checking
if that works. (It may allow multiple votes if you don't allow
cookies.)

If you want to see the script, it is all here:


It uses a text file to store the question, the options and the
results, so to put up a new poll, I only have to edit the text file.

Thanks,
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: Correct Rev File Association?

2009-05-27 Thread J. Landman Gay

Richard Gaskin wrote:

Scott Rossi wrote:


A customer of mine is reporting that his Mac system is currently treating
stacks as standalone apps: double-clicking a stack in the Finder launches
the stack as a standalone app without Rev's IDE.  The problem appears 
to be

a file-association issue.  Looking in the Get Info window for the stack
shows "Standalone (default)" as the default application under "Open 
with:".

Changing this to any version of Rev and clicking "Change All..." fails to
stick (reverts back to Standalone).

Is there a way to force-update the default app without reinstalling 
Rev or

resorting to a 3rd party tool?


It may be unrelated to the Rev install.

Does he have a standalone on his HD named "Standalone"?


"Standalone" is the name of the runtime engine(s) used by the standalone 
builder. I see that in OS X, both Standalone and Revolution have the 
same creator code -- "Revo". The Finder must be getting confused.


If the customer doesn't need to build standalones, he could try zipping 
the OS X apps inside the Runtime folder. That may force the Finder to 
"see" other copies of "Revo".


--
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: Correct Rev File Association?

2009-05-27 Thread Scott Rossi
Recently, Richard Gaskin wrote:

>> Is there a way to force-update the default app without reinstalling Rev or
>> resorting to a 3rd party tool?
> 
> It may be unrelated to the Rev install.
> 
> Does he have a standalone on his HD named "Standalone"?

It appears so, by looking at a screenshot of the Get Info window.

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: Correct Rev File Association?

2009-05-27 Thread Richard Gaskin

Scott Rossi wrote:


A customer of mine is reporting that his Mac system is currently treating
stacks as standalone apps: double-clicking a stack in the Finder launches
the stack as a standalone app without Rev's IDE.  The problem appears to be
a file-association issue.  Looking in the Get Info window for the stack
shows "Standalone (default)" as the default application under "Open with:".
Changing this to any version of Rev and clicking "Change All..." fails to
stick (reverts back to Standalone).

Is there a way to force-update the default app without reinstalling Rev or
resorting to a 3rd party tool?


It may be unrelated to the Rev install.

Does he have a standalone on his HD named "Standalone"?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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


Correct Rev File Association?

2009-05-27 Thread Scott Rossi
A customer of mine is reporting that his Mac system is currently treating
stacks as standalone apps: double-clicking a stack in the Finder launches
the stack as a standalone app without Rev's IDE.  The problem appears to be
a file-association issue.  Looking in the Get Info window for the stack
shows "Standalone (default)" as the default application under "Open with:".
Changing this to any version of Rev and clicking "Change All..." fails to
stick (reverts back to Standalone).

Is there a way to force-update the default app without reinstalling Rev or
resorting to a 3rd party tool?

Thanks & 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: Property problem

2009-05-27 Thread J. Landman Gay

dunb...@aol.com wrote:

Sheesh.

I was half correct. If you set, at least once, the textsize, textStyle or 
textFont of a new button either via script or via the property inspector, all 
is well. It is only with buttons that have never had any of these three 
properties manhandled where the properties are empty. Setting just one of the 
three fixes all three.


Right. If you haven't specifically set a property, it's inherited from 
its owner (or another higher up the chain.) A button that has no font 
settings will show empty for those properties. If you only want to know 
the inherited properties, then use the "effective" keyword:


 put the effective textfont of btn id 1006

That gives you the info without having to specifically set the font of 
each button.


What I don't understand is why you got a value when asking by button 
name. The properties should be empty no matter what type of object 
reference you use.


--
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: Property problem

2009-05-27 Thread DunbarX
Sheesh.

I was half correct. If you set, at least once, the textsize, textStyle or
textFont of a new button either via script or via the property inspector, all
is well. It is only with buttons that have never had any of these three
properties manhandled where the properties are empty. Setting just one of the
three fixes all three.

Craig Newman


**
We found the real ‘Hotel California’ and the ‘
Seinfeld’ diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/?ncid=emlwenew0004)
___
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


Property problem

2009-05-27 Thread DunbarX
Drove me nuts.

If you ask for certain text properties of a button, it depends how you
identify that button.

You can always get, say the textSize of a field by using either the name or
id of that field. But with a button, only the name will work.

Same button...

get the textsize of btn "myBtn" --works
get the textsize of btn id 1066 --returns empty

The "properties" of the object confirms this. The "textFont", "textStyle"
and "textSize" properties are blank if you get them by button id.

Sheesh.

Craig Newman




**
We found the real ‘Hotel California’ and the ‘Seinfeld’
diner. What will you find? Explore WhereItsAt.com.
(http://www.whereitsat.com/?ncid=emlwenew0004)
___
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: Best Practices Question

2009-05-27 Thread Richmond Mathewson
"Like the concept of best practice, defining what constitutes innovation 
is probably a relative term and a moving target at best."


found at : http://strengthofweakties.org/?cat=11

and this is probably the truth. What constitutes 'canonical' programming is
surely a matter of taste, and I would ask the following question:

1.  Who is going to look at the code apart from yourself?

If the answer is 'no one' then you really can please yourself.

If the answer is not 'no one' then it very much depends on who
that 'one' or 'ones' is going to be; and, to be honest, how much you
want them to understand your code.

Now, consistency is always a good thing; even for yourself - there is
nothing half as "fun" as looking at some code you wrote six months
ago and finding you have difficulty understanding it.  :)

The other good idea is to pop comments in your code, such as:

--this is where the cycles of the FOR-NEXT "embedded 24" loop are counted

so that you don't get your "end if" s "in a twist".

---

One of the 'cyclical chestnuts' that comes up on this Use-List is about
the use of abbreviated forms in code (such as 'btn') and whether that
makes things murkier for other readers of code. The fact that it is a
cyclical chestnut should tell us that it is a moving target, and it all
depends on question 1.

Bill Andersen wrote:

Can someone point me to a "Best Practices" or good itermediate tutorial
on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having trouble
understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write functions
and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a Custom
Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the board!

I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?

We really need a Rev for Dummies book!

Bill
 



___
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: DataGrid form question

2009-05-27 Thread Yves COPPE


Le 27-mai-09 à 17:24, Trevor DeVore a écrit :


On May 27, 2009, at 10:20 AM, Yves COPPE wrote:


I want to use a "contextual" menu
I used therefore the follwing script in my popup Btn to know the  
data of the clickedLine
Take a look at this lesson I just added called "How Do I Show a  
Contextual Menu?"





You need to call dgMouseDown before showing the popup button so that  
the data grid can make the proper line selection.







Hey Trevor

It's OK now !
Thank you.


Greetings.

Yves COPPE
yvesco...@skynet.be

___
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: Best Practices Question

2009-05-27 Thread Phil Davis

Mark Wieder wrote:

Devin-

Wednesday, May 27, 2009, 7:44:22 AM, you wrote:

  

As you mentioned there have been many wide ranging discussions here on



ROTFL. In my caffeine-deprived state I read that as "wide ranting
discussions"...

  

I read "wide raging discussions..."

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.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: data grid hilite of checkbox

2009-05-27 Thread Jim Sims


On May 27, 2009, at 5:54 PM, Trevor DeVore wrote:

For a checkbox you just need to use the hilite property. Untested  
but this example should work:


on FillInData pData
   set the hilite of button 1 of me to pData is true
end FillInData


on mouseUp pMouseBtnNum
   SetDataOfIndex the dgIndex of me, the dgColumn of me, the hilite  
of button 1 of me

end mouseUp


Bravo! It worked  :-)

This shall go in my Data Grid for Dummies notes  ;-)

sims 
___

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: Best Practices Question

2009-05-27 Thread Bill Andersen
Richmond wrote:
> I do think what is needed is a "Rev for people carrying all
> sorts of confusing baggage over from other programming languages
> and/or environments" book.

No doubt!  I think Rev would be easier to learn if I had NO experience
programming.  I really like it, but I must admit, some of the "approaches"
taken are "too easy".  I can't figure it out because it is right in front
of me!

Not to start a flame war, but it is sort of like Mac and Windows.  I got
my first Mac in 1984 and started "thinking the Mac way" early on.  Then I
got a job programming on Windows (hated it).  Now, I use Windows every day
and have migrated to a different way of doing things (The MS Way!)

My wife uses our Mac at home and I have always had a Win machine.  This last
year, I bought ME a new iMac 24" (got her one too) for Chrstmas.  I find
I sometimes make things way to hard when I have to re-learn the way a Mac
does something.  I forgot how just plain "sensible" most things are on Mac.

I guess Rev is sort of like that.  (and sometimes not!)

Bill


___
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: data grid hilite of checkbox

2009-05-27 Thread Trevor DeVore

On May 27, 2009, at 11:40 AM, Jim Sims wrote:

When I tried to follow my interpretation of "The code should be the  
same except that you just store the hilite of the checkbox when the  
user clicks on it." I received an error.


The following gave me the error:  -- button "Col 3 Behavior":  
execution error at line n/a (Object: object does not have this  
property)


...

I'm surely missing something simple as the above seems to get me  
nowhere.


What are the U_hilite and uHilite custom props for? The option menu  
example sets the menuhistory and stores the menuPick parameter. For a  
checkbox you just need to use the hilite property. Untested but this  
example should work:


on FillInData pData
set the hilite of button 1 of me to pData is true
end FillInData


on mouseUp pMouseBtnNum
SetDataOfIndex the dgIndex of me, the dgColumn of me, the hilite  
of button 1 of me

end mouseUp

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Best Practices Question

2009-05-27 Thread Bill Andersen
Devin,

  Great stuff.  Very helpful.  If nothing else to confirm I'm not as lost
  as I feel sometimes.  I find I do 90% or more of what you listed.  I guess
  just from experience with other languages!

> Declare your local variables and enable the "variable checking
> by default" option.  It will help prevent typos and cut down
> your debugging time.

  Variable Checking is one of the first things I found and turned on.
  I really like "C" because of its structure, but for the life of me
  I just can't "think that way" and get anything done in C.  I'm very
  familiar with VB (I wrote our in-house EDI transaction processing
  from scratch in VB...  Yikes!) and the first line of any of
  my projects in VB is "Option Explicit".

  However, Variable Checking by default throws a stick in the spokes
  when you download other peoples work and accidentally hit the compile
  button when viewing their code LOL!  (OK, OK, just don't hit save!!!)

> There! That's probably more than you bargained for. And I'm sure  
> others will chime in with more advice. We all have plenty of that, for  
> free. :-)

  I'm still reading the links you sent and Yes, this is a great group.

  Thanks to all!

Bill


___
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: data grid hilite of checkbox

2009-05-27 Thread Jim Sims


On May 27, 2009, at 4:05 PM, Trevor DeVore wrote:

The code should be the same except that you just store the hilite of  
the checkbox when the user clicks on it. You probably followed the  
instructions in the lesson "How Can I Store An Option Menu Value  
When The User Makes a Selection?":





Just modify FillInData to set the hilite of the checkbox and instead  
of calling SetDataOfIndex in menuPick call it in mouseUp.



Thanks for the reply Trevor.

When I tried to follow my interpretation of "The code should be the  
same except that you just store the hilite of the checkbox when the  
user clicks on it." I received an error.


The following gave me the error:  -- button "Col 3 Behavior":  
execution error at line n/a (Object: object does not have this property)


 on mouseUp
   set the U_hilite of me to the hilite of me
   setDataOfIndex the dgIndex of me, the dgColumn of me,   the  
U_hilite of me

end mouseUp

So,  tried a few other stabs in the dark, such as...

on FillInData pData
   -- This message is sent when the Data Grid needs to populate
   -- this template with the column data. pData is the value to be  
displayed.

   -- Example:
   --set the text of field 1 of me to pData
   if the hilite of me is "true" then set the uHilite of me to "TRUE"
   if the hilite of me is "false" then set the uHilite of me to "FALSE"
end FillInData

on mouseUp
   setDataOfIndex the dgIndex of me, the dgColumn of me,  the uHilite  
of me

end mouseUp

I'm surely missing something simple as the above seems to get me  
nowhere.



sims
___
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: Best Practices Question

2009-05-27 Thread Devin Asay


On May 27, 2009, at 9:05 AM, Mark Wieder wrote:


Devin-

Wednesday, May 27, 2009, 7:44:22 AM, you wrote:

As you mentioned there have been many wide ranging discussions here  
on


ROTFL. In my caffeine-deprived state I read that as "wide ranting
discussions"...


Amazing! That's exactly what I was thinking as I typed that. ;-)

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: DataGrid form question

2009-05-27 Thread Trevor DeVore

On May 27, 2009, at 10:20 AM, Yves COPPE wrote:


I want to use a "contextual" menu
I used therefore the follwing script in my popup Btn to know the  
data of the clickedLine


put the dgHilitedLines of group "DataGrid 1" into theLine
put the dgDataOfLine[theLine] of group "DataGrid 1" into theDataA

BUT

If I control-click a line,
it gives me the previous hilitedLine. In fact I have to first click  
the line to make it "hilited" and then click again with controlKey  
to have the correct theDataA


Can you help me ?


Take a look at this lesson I just added called "How Do I Show a  
Contextual Menu?"





You need to call dgMouseDown before showing the popup button so that  
the data grid can make the proper line selection.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Best Practices Question

2009-05-27 Thread Mark Wieder
Richmond-

Wednesday, May 27, 2009, 7:54:14 AM, you wrote:

> Thanks for  and all
> the other connected pages there;
> really good, sensible stuff, set out in a way that is much more 
> comprehensible than most programming
> manuals I have encountered.

Yes - Devin has done the community a great service by putting these
resources together and making them available. Great stuff.

-- 
-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: Best Practices Question

2009-05-27 Thread Mark Wieder
Devin-

Wednesday, May 27, 2009, 7:44:22 AM, you wrote:

> As you mentioned there have been many wide ranging discussions here on

ROTFL. In my caffeine-deprived state I read that as "wide ranting
discussions"...

-- 
-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: Best Practices Question

2009-05-27 Thread Richmond Mathewson
I suppose this is a bit 'OT', but just have been 'mooching' at Devin 
Asay's stuff and found this:


http://revolution.byu.edu/helps/shortcuts.php

which made me have another hard look at my Nostromo n52 Speedpad:

http://catalog.belkin.com/IWCatProductPage.process?Product_Id=164714

and realise that I don't have all those shortcuts set up on it.

This pad is for the left hand and really cuts down on the RSI. I have one
tacked on my Macintosh and another on my Ubuntu box, and as far as
I am concerned they make Revolution programming go much more
smoothly.

Bill Andersen wrote:

Can someone point me to a "Best Practices" or good itermediate tutorial
on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having trouble
understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write functions
and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a Custom
Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the board!

I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?

We really need a Rev for Dummies book!

Bill
 



___
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: Best Practices Question

2009-05-27 Thread Richmond Mathewson
Thanks for  and all 
the other connected pages there;
really good, sensible stuff, set out in a way that is much more 
comprehensible than most programming

manuals I have encountered.

Devin Asay wrote:

Hi Bill,

On May 27, 2009, at 8:05 AM, Bill Andersen wrote:


Can someone point me to a "Best Practices" or good itermediate tutorial
on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having trouble
understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write functions
and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a Custom
Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the board!

I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?


I teach a Revolution programming for non-programmers class, and a 
couple of years back I put together a fairly basic set of Best 
Practices. See . 
Obviously there are many more issues than this, and as you said, much 
of it is determined by programmer preference. The Best Practices list 
I put together represents some of my own biases, to be sure, but are 
intended to help learners develop good habits and discipline as they 
write code.


As you mentioned there have been many wide ranging discussions here on 
the list debating the pros and cons of this or that issue, notably the 
recent discussion about custom properties. You're right that much of 
this boils down to what makes sense for you and seems logical for you.


If you're interested in some nitty-gritty discussion of best 
programming practices, based on the principles of interoperability of 
shared Revolution stacks and resources, you can do no better than look 
through the documents created by the Revolution Interoperability 
project at . Note that 
it's a Yahoo group that requires (I believe) you to register (I 
believe to see the materials. Under the leadership of many of the 
leading lights of the Rev developer community, notably Richard Gaskin 
and Ken Ray, the Interop project has done some serious thinking about 
best practices and come up with lots of good guidance.


Incidentally, Richard has summarized much of this work at 
.


Finally, a few random thought from people on this list. When I was 
putting together my simple beginners list I solicited feedback from 
folks on the list. For various reasons, including personal laziness, I 
haven't yet included them all. But you may find some of the remarks of 
interest.


## quote
Students should always write their programs as if someone else will 
later come along to either maintain or enhance it. It's a good habit 
to get into as it forces better design practices. When it comes to 
maintaining or more importantly adding code to a loop the last thing 
you want is problems figuring out where and how the loop control 
variable is modified.


See Richard Gaskin's Script Style Guide at 
http://www.fourthworld.com/embassy/articles/scriptstyle.html


Ken Ray:
I name all buttons exactly the same as their labels, without any 
spaces or punctuation, so for example a checkbox that says "Use 
meaningful names" would be named "UseMeaningfulNames" - this makes it 
unnecessary to look up the name of a button in order to address it in 
a script. The only times I break this habit is where conventional 
abbreviations are things that come to "top of mind" as an alternative 
(for example, a button that says "Download Now" would be named "DLNow" 
because "DL" is a very common alternative for "Download").


Similarly I name all fields based on the label that precedes it (if 
there is one) using the same approach. So a label field that says 
"First Name:" and has a text entry field next to it would have the 
entry field named "FirstName". I generally don't give names to label 
fields, but if I do need to, I follow the rule above and add "lbl" in 
front of it (so the label field I describe above would be called 
"lblFirstName" if I needed to address it).


Inspired by Kay Lan:
As much as possible, keep object names unique within a stack. It will 
make finding and changing references to object names in  scripts 
easier, should it become necessary.


sh...@gypsyware.com
Comment your scripts:  Agree again.  Sometimes naming the handler to 
match isn't enough, especially with a long script.  One thing I do 
with very long scripts with many if's and repeat loops nested, is to 
comment the beginning and ending of an IF or REPEAT, in order to match 
them up.  I've got scripts where it's nearly im

Polly Ticks and Programming.

2009-05-27 Thread Richmond Mathewson

Just to issue a necessary corrective,
those of you who are still 'privileged'
to have access to the OLD revOnline are
cordially invited to download the stack
'POLITICS.rev' (find it under 'Richmond')
to prove, "finally and forever" that
there is Politics in Programming.  :)

I would hope that Jim Bufalini will
forgive me 'just a tad'.  :)
___
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: Best Practices Question

2009-05-27 Thread Devin Asay

Hi Bill,

On May 27, 2009, at 8:05 AM, Bill Andersen wrote:

Can someone point me to a "Best Practices" or good itermediate  
tutorial

on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having  
trouble

understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write  
functions

and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a  
Custom

Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the  
board!


I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?


I teach a Revolution programming for non-programmers class, and a  
couple of years back I put together a fairly basic set of Best  
Practices. See .  
Obviously there are many more issues than this, and as you said, much  
of it is determined by programmer preference. The Best Practices list  
I put together represents some of my own biases, to be sure, but are  
intended to help learners develop good habits and discipline as they  
write code.


As you mentioned there have been many wide ranging discussions here on  
the list debating the pros and cons of this or that issue, notably the  
recent discussion about custom properties. You're right that much of  
this boils down to what makes sense for you and seems logical for you.


If you're interested in some nitty-gritty discussion of best  
programming practices, based on the principles of interoperability of  
shared Revolution stacks and resources, you can do no better than look  
through the documents created by the Revolution Interoperability  
project at . Note that  
it's a Yahoo group that requires (I believe) you to register (I  
believe to see the materials. Under the leadership of many of the  
leading lights of the Rev developer community, notably Richard Gaskin  
and Ken Ray, the Interop project has done some serious thinking about  
best practices and come up with lots of good guidance.


Incidentally, Richard has summarized much of this work at .


Finally, a few random thought from people on this list. When I was  
putting together my simple beginners list I solicited feedback from  
folks on the list. For various reasons, including personal laziness, I  
haven't yet included them all. But you may find some of the remarks of  
interest.


## quote
Students should always write their programs as if someone else will  
later come along to either maintain or enhance it. It's a good habit  
to get into as it forces better design practices. When it comes to  
maintaining or more importantly adding code to a loop the last thing  
you want is problems figuring out where and how the loop control  
variable is modified.


See Richard Gaskin's Script Style Guide at 
http://www.fourthworld.com/embassy/articles/scriptstyle.html

Ken Ray:
I name all buttons exactly the same as their labels, without any  
spaces or punctuation, so for example a checkbox that says "Use  
meaningful names" would be named "UseMeaningfulNames" - this makes it  
unnecessary to look up the name of a button in order to address it in  
a script. The only times I break this habit is where conventional  
abbreviations are things that come to "top of mind" as an alternative  
(for example, a button that says "Download Now" would be named "DLNow"  
because "DL" is a very common alternative for "Download").


Similarly I name all fields based on the label that precedes it (if  
there is one) using the same approach. So a label field that says  
"First Name:" and has a text entry field next to it would have the  
entry field named "FirstName". I generally don't give names to label  
fields, but if I do need to, I follow the rule above and add "lbl" in  
front of it (so the label field I describe above would be called  
"lblFirstName" if I needed to address it).


Inspired by Kay Lan:
As much as possible, keep object names unique within a stack. It will  
make finding and changing references to object names in  scripts  
easier, should it become necessary.


sh...@gypsyware.com
Comment your scripts:  Agree again.  Sometimes naming the handler to  
match isn't enough, especially with a long script.  One thing I do  
with very long scripts with many if's and repeat loops nested, is to  
comment the beginning and ending of an IF or REPEAT, in order to match  
them up.  I've got scripts where it's nearly impossible to figure out  
which END goes with which beginning.  And if you're trying to  
troubleshoot, having things well labeled can be a lifesaver.


ME:
Hard-coding data in scripts and object i

Re: Best Practices Question

2009-05-27 Thread Richmond Mathewson

It doesn't sound as if you are a 'Dummy' at all;

surely a 'Dummy' wouldn't know what Globals
and Custom Properties are. Or, putting it
another way, I know at least one person
[err, myself] who has done many things without
ever having used either of the above.

I don't think either you, or many other people,
really need a "Rev for Dummies"  book.

"good intermediate tutorial"

betrayed you  :)

I do think what is needed is a
"Rev for people carrying all sorts of confusing baggage over from
other programming languages and/or environments" book.

A "Best Practices" book sounds a bit clunky; surely we ALL need a
few pages on best practices - a list containing guidelines.

Bill Andersen wrote:

Can someone point me to a "Best Practices" or good itermediate tutorial
on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having trouble
understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write functions
and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a Custom
Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the board!

I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?

We really need a Rev for Dummies book!

Bill
 



___
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


DataGrid form question

2009-05-27 Thread Yves COPPE

Hi List

I'm very happy with the datagrid !!!

I still have a question : about a click on a line of DataGrid Form

I want to use a "contextual" menu
I used therefore the follwing script in my popup Btn to know the  
data of the clickedLine


 put the dgHilitedLines of group "DataGrid 1" into theLine
 put the dgDataOfLine[theLine] of group "DataGrid 1" into theDataA

BUT

If I control-click a line,
it gives me the previous hilitedLine. In fact I have to first click  
the line to make it "hilited" and then click again with controlKey  
to have the correct theDataA


Can you help me ?
thanks.

Greetings.

Yves COPPE
yvesco...@skynet.be


___
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


Best Practices Question

2009-05-27 Thread Bill Andersen
Can someone point me to a "Best Practices" or good itermediate tutorial
on programming in Rev.  I've been able to do quite a bit and can use
the dictionary to learn how to use the language, but I'm having trouble
understanding how most people use Globals, Custom Properties, etc.

I've read pro and cons on using globals.  I've tried to write functions
and pass params around to avoid them (which I think is best), but then
there are times a global seems to be a better idea... OR would a Custom
Property be better?  I just don't know how others would do it.  I've
looked through a lot of examples and it seems it is all over the board!

I know it isn't written in stone (and really a personal preference),
but has someone put together a "Best Practices" document?

We really need a Rev for Dummies book!

Bill
 


___
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: data grid hilite of checkbox

2009-05-27 Thread Trevor DeVore

On May 27, 2009, at 9:52 AM, jim sims wrote:


in my Data Grid table I have:
text fld - option btn - checkbox - checkbox in each row.

I've been able to get the hilitedline, the text in the line, and the  
menuhistory of the option btn.


But I have not read anywhere how one gets the hilite of a checkbox.

Is it similar to how one gets the menuhistory of the option btn?


The code should be the same except that you just store the hilite of  
the checkbox when the user clicks on it. You probably followed the  
instructions in the lesson "How Can I Store An Option Menu Value When  
The User Makes a Selection?":





Just modify FillInData to set the hilite of the checkbox and instead  
of calling SetDataOfIndex in menuPick call it in mouseUp.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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


data grid hilite of checkbox

2009-05-27 Thread jim sims

in my Data Grid table I have:
text fld - option btn - checkbox - checkbox in each row.

I've been able to get the hilitedline, the text in the line, and the  
menuhistory of the option btn.


But I have not read anywhere how one gets the hilite of a checkbox.

Is it similar to how one gets the menuhistory of the option btn?

sims



___
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