Re: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread Jan Schenkel
Is this Snow Leopard by any chance?
I got bitten by this too in Quartam Reports Layout builder - there is a change 
in the AppleEvent data that comes with an 'odoc' event. So if you have an 
'editor' application and need to fix your AppleEvent handler, I just published 
a blog entry describing my workaround for this:


HTH,

Jan Schenkel.
=
Quartam Reports & PDF Library for Revolution


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


--- On Sun, 10/25/09, Andre Garzia  wrote:

> From: Andre Garzia 
> Subject: anyone know how to fix that silly stack file opening bug on mac os x 
> and rev 4.0
> To: "How to use Revolution" 
> Date: Sunday, October 25, 2009, 10:45 AM
> Folks,
> 
> I am sick of not being able to double click my stack files
> on MacOS X with
> Rev 4.0.
> 
> Rev IDE says the stack is corrupted. It is not, it opens
> fine thru file ->
> open or go stack url.
> 
> Anyone knows how to fix this?
> 
> Thanks in advance mates!
> Andre
> 
> -- 
> http://www.andregarzia.com All We Do Is Code.
> ___
> 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: replace group script on multiple cards

2009-10-25 Thread Richmond Mathewson

tareq_tawaiha wrote:


I have a stack with over 80 groups that contain 4 radio buttons  ( i have
attached a picture example below), they all have a similar scripts. I need
to replace the script of all of the groups with a new script.  Unfortunately
by using the "find " option in the script editor i can not use the "REPLACE
ALL " button for many cards .  


Old Script :
   on mouseDown
Do 1 
   End mouseDown 


I want to create a button that will go through all the cards, FIND THE
GROUPS and edit their script to 
NEW Script

   on mouseDown
Do 1 
Do 2 and 3 . 
   End mouseDown


What i am looking for could look like this : 


on mouseUp
   repeat with x= 1 to the number of cards
  go to cd x 
 -- a step here should find the groups , the groups are named
differently on every card) 
 -- a step here should replace the OLD script for every group with a NEW
script 
   end repeat

  go to cd 1
  
end mouseUp


http://www.nabble.com/file/p26052673/Picture%2B1.png 



  

Tareq,

I am about to go downstairs and teach little children English.
[I run a private language mini-school in Bulgaria although
I come from Scotland.]

BUT; to replace a script you can do something like this:

set the script of btn "XYZ" to fld "ABC"

and whatever is contained in field "ABC" will become the script
of button "XYZ".

I will have a think about the rest and get back to you at lunchtime.
___
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: New direction for Stacks and Code Samples

2009-10-25 Thread capellan

Actually the free webhosting that I choose, 000space,
allows revlets, but no big files.

al
-- 
View this message in context: 
http://www.nabble.com/New-direction-for-Stacks-and-Code-Samples-tp26042254p26053882.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: FTP Files To Server

2009-10-25 Thread tareq_tawaiha



It might be worth it to take a look at the FTPCommander Stack that was
created by Andre Alves Garzia  at
http://www.soapdog.org/rev/FTPCommander.rev 




Warren Kuhl-2 wrote:
> 
> Jim,
> 
> Thanks...this worked!  Appreciate your help!
> 
> Warren
> 
> 
> On 10/23/09, Jim Ault  wrote:
>>
>> try
>>
>> put url ("binfile:" & gInitialFolder & "/" & "az.bk") into url turl
>>
>>
>> On Oct 23, 2009, at 11:20 AM, Warren Kuhl wrote:
>>
>> I am running into a weird situation.  I have been uploading a backup of a
>>> database to a server and everything was working file.  I decided to
>>> change
>>> my host to hostgator.com and updated my program to reflect the changes.
>>> Now, instead of my database backup, I am getting the path of the
>>> datafile
>>> being uploaded.
>>>
>>> The command I am using is...
>>>
>>> put "ftp://tUserID:tpassw...@ftp.mywebsite.com/www/az/"; & tFile into
>>> turl
>>> put url "binfile:" & (gInitialFolder & "/" & "az.bk") into url turl
>>>
>>> when I check az.bk on my server, it contains...
>>> E:/Program Files/az/az.bk
>>>
>>> ...instead of the database.  Any suggestions?
>>>
>>> Thanks for any help!
>>> Warren
>>>
>>
>> Jim Ault
>> jimaultw...@yahoo.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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FTP-Files-To-Server-tp26031059p26053851.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: RevMedia Portable

2009-10-25 Thread capellan

Hi Peter,


Peter Alcibiades wrote:
> 
> Alejandro, what is the problem exactly? 
> [snip]
> But it seems to run fine from the stick.  Or is there something else? 
> Must be
> 

Yes, there is something else. The development enviroment freeze and
had to force quit RevMedia. Tested in different machines with the
same result.

al
-- 
View this message in context: 
http://www.nabble.com/RevMedia-Portable-tp26036319p26053839.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: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread Sarah Reichelt
On Mon, Oct 26, 2009 at 11:56 AM, J. Landman Gay
 wrote:
> Sarah Reichelt wrote:

 I am sick of not being able to double click my stack files on MacOS X
 with
 Rev 4.0.

 Rev IDE says the stack is corrupted. It is not, it opens fine thru file
 ->
 open or go stack url.

 Anyone knows how to fix this?
>>>
>>> It will be fixed in the next update. For now, I just drop stacks onto the
>>> dock icon. That seems to work.
>>
>> Does that work if Rev is already running Jacque? Because it doesn't for
>> me.
>
> Yes, it works here for me. But I'm not on Snow Leopard yet, so maybe that's
> it?


Yes, this corrupted stack message is only for stack files that are
double-clicked AFTER Rev has started and only on Snow Leopard.
A bit alarming the first time you see it!

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: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread J. Landman Gay

Sarah Reichelt wrote:

I am sick of not being able to double click my stack files on MacOS X with
Rev 4.0.

Rev IDE says the stack is corrupted. It is not, it opens fine thru file ->
open or go stack url.

Anyone knows how to fix this?

It will be fixed in the next update. For now, I just drop stacks onto the
dock icon. That seems to work.


Does that work if Rev is already running Jacque? Because it doesn't for me.


Yes, it works here for me. But I'm not on Snow Leopard yet, so maybe 
that's 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


Re: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread Sarah Reichelt
>> I am sick of not being able to double click my stack files on MacOS X with
>> Rev 4.0.
>>
>> Rev IDE says the stack is corrupted. It is not, it opens fine thru file ->
>> open or go stack url.
>>
>> Anyone knows how to fix this?
>
> It will be fixed in the next update. For now, I just drop stacks onto the
> dock icon. That seems to work.

Does that work if Rev is already running Jacque? Because it doesn't for me.
So I wrote a plugin that opens any stack files to be dropped on it.
Anyone who wants it is welcome to download it from


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


Password field

2009-10-25 Thread Mark Schonewille

Hi,

I needed a better password field for a project of mine. You can  
download a stack with my new password field at .


This version:
- multiple password fields on a card possible
- only one object per password field (no more hidden fields necessary)
- all ASCII symbols above 31 are allowed
- easy way to preset a (e.g. earlier saved) password

--
Best regards,

Mark Schonewille

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

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.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


replace group script on multiple cards

2009-10-25 Thread tareq_tawaiha



I have a stack with over 80 groups that contain 4 radio buttons  ( i have
attached a picture example below), they all have a similar scripts. I need
to replace the script of all of the groups with a new script.  Unfortunately
by using the "find " option in the script editor i can not use the "REPLACE
ALL " button for many cards .  

Old Script :
   on mouseDown
Do 1 
   End mouseDown 

I want to create a button that will go through all the cards, FIND THE
GROUPS and edit their script to 
NEW Script
   on mouseDown
Do 1 
Do 2 and 3 . 
   End mouseDown

What i am looking for could look like this : 

on mouseUp
   repeat with x= 1 to the number of cards
  go to cd x 
 -- a step here should find the groups , the groups are named
differently on every card) 
 -- a step here should replace the OLD script for every group with a NEW
script 
   end repeat
  go to cd 1
  
end mouseUp

http://www.nabble.com/file/p26052673/Picture%2B1.png 


-- 
View this message in context: 
http://www.nabble.com/replace-group-script--on-multiple-cards-tp26052673p26052673.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


worked

2009-10-25 Thread tareq_tawaiha


Terry setting a custom property worked as well !



Terry Judd wrote:
> 
> What about using custom properties? You would set a property (e.g. CID)
> for
> each of the four buttons in a group to A, B, C or D and then use a script
> in
> the group something like this...
> 
> on mouseUp
>   if the cID of the target = "B" then
> doStuff
>   end if
> end mouseUp
> 
> ...to react when the user clicked the correct answer.
> 
> This way you could simply copy and paste your group to create a new set of
> options, change the labels of the buttons to whatever you wanted and only
> have a single script to deal with for each group.
> 
> Alternatively, you could use a single handler in all groups to catch the
> group name and the button property and pass these to a stack handler that
> deals with all you groups...
> 
> on mouseUp
> doStuff (the short name of the owner of the target),(the cID of the
> target)
> end mouseUp
> 
> And then in the stack script...
> 
> on doStuff grpName,btnID
>   switch grpName
> case "someGrp"
>   if btnID = "B" then...
>   break
> case "someOtherGrp"
>  if btnID = "D" then...
>  break
>   end switch
> end doStuff
> 
> Or you could use a behaviour.
> 
> HTH,
> 
> Terry...
> 
> 
> On 26/10/09 6:19 AM, "tareq_tawaiha"  wrote:
> 
>> 
>> 
>> This might be a simple question. I have 4 buttons in a group. Each
>> buttons
>> name and label are similar for that button. If i edit the group then
>> select
>> a button and check its "Size and position" in the property inspector , at
>> the end of the inspector there is a field called number, is there a way
>> to
>> use that number in a script ?
>> 
>> I have made sure that for all the buttons in my group (top to bottom) the
>> number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if
>> i
>> inspect button "simple" it is one , button colorful it is "2" see
>> attached
>> picture). 
>> 
>>  I want to be able to assign a letter (A,B, C and D) for every button
>> when
>> selected. If a user selects "colorful" then i want to put "b". I could
>> use a
>> switch statement IF i could get that assigned number .
>> 
>> I use this code , its not working ( any other way of doing this ?)
>> 
>> on mouseDown
>>get the  hilitedButtonName of me
>>put it into bname
>>put bname
>>
>>get the number of button bname
>>put it into X
>> 
>> switch X
>> 
>> case "1" 
>> put "A"
>> break 
>> 
>> case "2" 
>> put "B"
>> 
>> case "3"
>> put "C"
>> http://www.nabble.com/file/p26050917/Picture%2B1.png
>> case "4"
>> put "D"
>> 
>> end switch 
>> 
>> end mouseDown
> 
> ___
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exact-number-of-a-radio-button-in-a-group-tp26050917p26052591.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


find and replace script in stack

2009-10-25 Thread tareq_tawaiha


Terry setting a custom property worked as well !



Terry Judd wrote:
> 
> What about using custom properties? You would set a property (e.g. CID)
> for
> each of the four buttons in a group to A, B, C or D and then use a script
> in
> the group something like this...
> 
> on mouseUp
>   if the cID of the target = "B" then
> doStuff
>   end if
> end mouseUp
> 
> ...to react when the user clicked the correct answer.
> 
> This way you could simply copy and paste your group to create a new set of
> options, change the labels of the buttons to whatever you wanted and only
> have a single script to deal with for each group.
> 
> Alternatively, you could use a single handler in all groups to catch the
> group name and the button property and pass these to a stack handler that
> deals with all you groups...
> 
> on mouseUp
> doStuff (the short name of the owner of the target),(the cID of the
> target)
> end mouseUp
> 
> And then in the stack script...
> 
> on doStuff grpName,btnID
>   switch grpName
> case "someGrp"
>   if btnID = "B" then...
>   break
> case "someOtherGrp"
>  if btnID = "D" then...
>  break
>   end switch
> end doStuff
> 
> Or you could use a behaviour.
> 
> HTH,
> 
> Terry...
> 
> 
> On 26/10/09 6:19 AM, "tareq_tawaiha"  wrote:
> 
>> 
>> 
>> This might be a simple question. I have 4 buttons in a group. Each
>> buttons
>> name and label are similar for that button. If i edit the group then
>> select
>> a button and check its "Size and position" in the property inspector , at
>> the end of the inspector there is a field called number, is there a way
>> to
>> use that number in a script ?
>> 
>> I have made sure that for all the buttons in my group (top to bottom) the
>> number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if
>> i
>> inspect button "simple" it is one , button colorful it is "2" see
>> attached
>> picture). 
>> 
>>  I want to be able to assign a letter (A,B, C and D) for every button
>> when
>> selected. If a user selects "colorful" then i want to put "b". I could
>> use a
>> switch statement IF i could get that assigned number .
>> 
>> I use this code , its not working ( any other way of doing this ?)
>> 
>> on mouseDown
>>get the  hilitedButtonName of me
>>put it into bname
>>put bname
>>
>>get the number of button bname
>>put it into X
>> 
>> switch X
>> 
>> case "1" 
>> put "A"
>> break 
>> 
>> case "2" 
>> put "B"
>> 
>> case "3"
>> put "C"
>> http://www.nabble.com/file/p26050917/Picture%2B1.png
>> case "4"
>> put "D"
>> 
>> end switch 
>> 
>> end mouseDown
> 
> ___
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exact-number-of-a-radio-button-in-a-group-tp26050917p26052590.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: Data Grid Documentation

2009-10-25 Thread Josh Mellicker

Trevor,

It's taken me this long to actually start experimenting with the  
DataGrid and just wanted to post in an open letter here how amazing it  
is. And kudos to Runrev for their integration work as well.


Also a lesson for any software developer is your approach to  
documentation - rather than the traditional developer originated  
"here's what we want to tell you" you've taken frequently asked  
questions from users, created ScreenStep tutorials, and exported those  
to a manual, reversing the paradigm to "here's what you wanted to  
know", thinking, well, if no one asks about a certain process or  
feature, then it's either easy or no one cares, and if people keep  
asking about something, it needs more detail and elucidation. User  
Driven Documentation Ensures Relevance. UDDERly brilliant.


Looking into the thought process leading to the creation of the  
DataGrid object, and being aware of your SQL Yoga product, it's pretty  
obvious that part of your vision has to do with a form-based DataGrid  
linking to a multiuser database, in which (in the simplest case) each  
row in the Grid represents a row in a DB table. Of course, with  
relational DBs, the correspondence of form elements to tables gets  
more complex, with some elements referring to linked tables, possible  
sets of data for menus, etc.


Forgive me if this has already been covered, I don't read the list  
much and have not been Revtalking in a couple years so I am a bit out  
of touch. The below is just a train of thought about a few random  
basic needs of a framework connecting a form-based DataGrid that  
provides CRUD functionality with a multiuser DB:


It seems to me that some of the most common elements needed would be:

single line text field
multiple line text field
option menu
date popup
time popup

Each of those objects, it seems, would need 4 custom properties to  
know where that data comes from and is to be stored:


tableName
columnName
rowID
tableIDcolumnName

The single line and multiple line text fields are simple, and you've  
provided the specific example of updating an external data source with  
CloseFieldEditor.


An option menu could be used in two major ways:
a. the menu options are a fixed set (small, medium, large)
b. the menu options come from all possible values of a certain row in  
a table


The option menu probably needs an "edit list..." option allowing the  
user, right in context, to add, edit or delete options.


The date & time popups are simple, just need the ability to translate  
from SQL date and time storage and a cool popup calendar.


On another topic, with a locally data store, data synchronization  
becomes an issue. Every row in every table would need a dateTimeStamp  
so that on a periodic basis (1m, 5m, 10m), the local app could do a  
query of the remote DB to update the local store with the rows changed  
since the last refresh. Any data, before storing remotely, would have  
to compare the remote timeStamp to see if someone else changed the  
data to avoid overwriting someone else's newly stored data.


The purpose of this message (finally! :-) is just to say, if any of  
these thoughts spark even just a sentence or two in response, it could  
be quite valuable, as I am embarking on a project doing exactly this-  
building a framework connecting a form-based DataGrid to a multiuser DB.


Also, in a final thought, if you wanted to do an iChat or Skype screen  
share in which we could build a simple DataGrid project, I'd be happy  
to pay a consulting fee, plus I could record video of it and post for  
the benefit of everyone's greater enlightenment on the amazing DataGrid.





On Mar 6, 2009, at 11:46 PM, Trevor DeVore wrote:


On Mar 6, 2009, at 6:59 PM, Josh Mellicker wrote:

I will say, after years of working with the Rev table object, that  
if everyone on this list doesn't fly to your town, lift you up on a  
chair and parade you around town with confetti and a marching band,  
then your efforts have been underappreciated :-)


Okay, if that's a little over the top, I hope at least developers  
that use this commercially will consider it de rigeur to donate to  
a Data Grid Appreciation Fund. I've just sent $50 to you PayPal.


Hey, thanks for the love Josh :-)

Regards,

--
Trevor DeVore

___
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: Exact number of a radio button in a group

2009-10-25 Thread tareq_tawaiha

It works

Thanks !! 





Richmond Mathewson-2 wrote:
> 
> tareq_tawaiha wrote:
>> That would be GREAT if i had 1 group , but i have over 80 groups, each
>> group
>> has 4 possible answers (radio buttons). That would mean i would have to
>> go
>> into every button's script and add that script. Which could be my last
>> resort , but i would prefer to edit 80 groups , instead of over 300
>> buttons
>> . Is there away to control it from the group itself instead of editing
>> every
>> button ?
>>
>>   
> I am sorry I took so long: after about 9 years with Runtime Revolution I 
> have
> never really worked with groups before . . .   :)
> 
> Try this:
> 
> on mouseUp
>if the mouseLoc is within the rect of btn 1
>   then
>   put "a" into fld "fOUTPUT"
>end if
> if the mouseLoc is within the rect of btn 2
>   then
>   put "b" into fld "fOUTPUT"
> end if
> if the mouseLoc is within the rect of btn 3
>   then
>   put "c" into fld "fOUTPUT"
>end if
> if the mouseLoc is within the rect of btn 4
>   then
>   put "d" into fld "fOUTPUT"
>   end if
> end mouseUp
> 
> It works !
> 
> Love, Richmond.
> ___
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exact-number-of-a-radio-button-in-a-group-tp26050917p26051662.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: Exact number of a radio button in a group

2009-10-25 Thread Terry Judd
What about using custom properties? You would set a property (e.g. CID) for
each of the four buttons in a group to A, B, C or D and then use a script in
the group something like this...

on mouseUp
  if the cID of the target = "B" then
doStuff
  end if
end mouseUp

...to react when the user clicked the correct answer.

This way you could simply copy and paste your group to create a new set of
options, change the labels of the buttons to whatever you wanted and only
have a single script to deal with for each group.

Alternatively, you could use a single handler in all groups to catch the
group name and the button property and pass these to a stack handler that
deals with all you groups...

on mouseUp
doStuff (the short name of the owner of the target),(the cID of the
target)
end mouseUp

And then in the stack script...

on doStuff grpName,btnID
  switch grpName
case "someGrp"
  if btnID = "B" then...
  break
case "someOtherGrp"
 if btnID = "D" then...
 break
  end switch
end doStuff

Or you could use a behaviour.

HTH,

Terry...


On 26/10/09 6:19 AM, "tareq_tawaiha"  wrote:

> 
> 
> This might be a simple question. I have 4 buttons in a group. Each buttons
> name and label are similar for that button. If i edit the group then select
> a button and check its "Size and position" in the property inspector , at
> the end of the inspector there is a field called number, is there a way to
> use that number in a script ?
> 
> I have made sure that for all the buttons in my group (top to bottom) the
> number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if i
> inspect button "simple" it is one , button colorful it is "2" see attached
> picture). 
> 
>  I want to be able to assign a letter (A,B, C and D) for every button when
> selected. If a user selects "colorful" then i want to put "b". I could use a
> switch statement IF i could get that assigned number .
> 
> I use this code , its not working ( any other way of doing this ?)
> 
> on mouseDown
>get the  hilitedButtonName of me
>put it into bname
>put bname
>
>get the number of button bname
>put it into X
> 
> switch X
> 
> case "1" 
> put "A"
> break 
> 
> case "2" 
> put "B"
> 
> case "3"
> put "C"
> http://www.nabble.com/file/p26050917/Picture%2B1.png
> case "4"
> put "D"
> 
> end switch 
> 
> end mouseDown

___
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: Exact number of a radio button in a group

2009-10-25 Thread Richmond Mathewson

tareq_tawaiha wrote:

That would be GREAT if i had 1 group , but i have over 80 groups, each group
has 4 possible answers (radio buttons). That would mean i would have to go
into every button's script and add that script. Which could be my last
resort , but i would prefer to edit 80 groups , instead of over 300 buttons
. Is there away to control it from the group itself instead of editing every
button ?

  
I am sorry I took so long: after about 9 years with Runtime Revolution I 
have

never really worked with groups before . . .   :)

Try this:

on mouseUp
  if the mouseLoc is within the rect of btn 1
 then
 put "a" into fld "fOUTPUT"
  end if
   if the mouseLoc is within the rect of btn 2
 then
 put "b" into fld "fOUTPUT"
end if
   if the mouseLoc is within the rect of btn 3
 then
 put "c" into fld "fOUTPUT"
  end if
   if the mouseLoc is within the rect of btn 4
 then
 put "d" into fld "fOUTPUT"
 end if
end mouseUp

It works !

Love, Richmond.
___
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: Exact number of a radio button in a group

2009-10-25 Thread tareq_tawaiha


That would be GREAT if i had 1 group , but i have over 80 groups, each group
has 4 possible answers (radio buttons). That would mean i would have to go
into every button's script and add that script. Which could be my last
resort , but i would prefer to edit 80 groups , instead of over 300 buttons
. Is there away to control it from the group itself instead of editing every
button ?







Richmond Mathewson-2 wrote:
> 
> tareq_tawaiha wrote:
>> This might be a simple question. I have 4 buttons in a group. Each
>> buttons
>> name and label are similar for that button. If i edit the group then
>> select
>> a button and check its "Size and position" in the property inspector , at
>> the end of the inspector there is a field called number, is there a way
>> to
>> use that number in a script ? 
>>
>> I have made sure that for all the buttons in my group (top to bottom) the
>> number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if
>> i
>> inspect button "simple" it is one , button colorful it is "2" see
>> attached
>> picture). 
>>
>>  I want to be able to assign a letter (A,B, C and D) for every button
>> when
>> selected. If a user selects "colorful" then i want to put "b". I could
>> use a
>> switch statement IF i could get that assigned number . 
>>
>> I use this code , its not working ( any other way of doing this ?) 
>>
>> on mouseDown
>>get the  hilitedButtonName of me 
>>put it into bname
>>put bname
>>
>>get the number of button bname
>>put it into X
>>
>> switch X
>>
>> case "1" 
>> put "A"
>> break 
>>
>> case "2" 
>> put "B"
>>
>> case "3"
>> put "C"
>> http://www.nabble.com/file/p26050917/Picture%2B1.png 
>> case "4"
>> put "D"
>>
>> end switch 
>>
>> end mouseDown
>>   
> What an incredibly complicated way of doing things!!
> 
> I made a stack with a copy of your group and put these scripts into
> buttons "simple", "colorful", "large" and "visible" respectedly:
> 
> on mouseUp
>put "a" into fld "fOUTPUT"
> end mouseUp
> 
> on mouseUp
>put "b" into fld "fOUTPUT"
> end mouseUp
> 
> on mouseUp
>put "c" into fld "fOUTPUT"
> end mouseUp
> 
> on mouseUp
>put "d" into fld "fOUTPUT"
> end mouseUp
> 
> no stress, no mess!
> 
> Love, Richmond.
> ___
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exact-number-of-a-radio-button-in-a-group-tp26050917p26051143.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: Exact number of a radio button in a group

2009-10-25 Thread Richmond Mathewson

tareq_tawaiha wrote:

This might be a simple question. I have 4 buttons in a group. Each buttons
name and label are similar for that button. If i edit the group then select
a button and check its "Size and position" in the property inspector , at
the end of the inspector there is a field called number, is there a way to
use that number in a script ? 


I have made sure that for all the buttons in my group (top to bottom) the
number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if i
inspect button "simple" it is one , button colorful it is "2" see attached
picture). 


 I want to be able to assign a letter (A,B, C and D) for every button when
selected. If a user selects "colorful" then i want to put "b". I could use a
switch statement IF i could get that assigned number . 

I use this code , its not working ( any other way of doing this ?) 


on mouseDown
   get the  hilitedButtonName of me 
   put it into bname

   put bname
   
   get the number of button bname

   put it into X

switch X

case "1" 
put "A"
break 

case "2" 
put "B"


case "3"
put "C"
http://www.nabble.com/file/p26050917/Picture%2B1.png 
case "4"

put "D"

end switch 


end mouseDown
  

What an incredibly complicated way of doing things!!

I made a stack with a copy of your group and put these scripts into
buttons "simple", "colorful", "large" and "visible" respectedly:

on mouseUp
  put "a" into fld "fOUTPUT"
end mouseUp

on mouseUp
  put "b" into fld "fOUTPUT"
end mouseUp

on mouseUp
  put "c" into fld "fOUTPUT"
end mouseUp

on mouseUp
  put "d" into fld "fOUTPUT"
end mouseUp

no stress, no mess!

Love, Richmond.
___
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


Exact number of a radio button in a group

2009-10-25 Thread tareq_tawaiha


This might be a simple question. I have 4 buttons in a group. Each buttons
name and label are similar for that button. If i edit the group then select
a button and check its "Size and position" in the property inspector , at
the end of the inspector there is a field called number, is there a way to
use that number in a script ? 

I have made sure that for all the buttons in my group (top to bottom) the
number of the buttons are  (1, 2 , 3, 4) (In the picture i attached , if i
inspect button "simple" it is one , button colorful it is "2" see attached
picture). 

 I want to be able to assign a letter (A,B, C and D) for every button when
selected. If a user selects "colorful" then i want to put "b". I could use a
switch statement IF i could get that assigned number . 

I use this code , its not working ( any other way of doing this ?) 

on mouseDown
   get the  hilitedButtonName of me 
   put it into bname
   put bname
   
   get the number of button bname
   put it into X

switch X

case "1" 
put "A"
break 

case "2" 
put "B"

case "3"
put "C"
http://www.nabble.com/file/p26050917/Picture%2B1.png 
case "4"
put "D"

end switch 

end mouseDown
-- 
View this message in context: 
http://www.nabble.com/Exact-number-of-a-radio-button-in-a-group-tp26050917p26050917.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: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread stephen barncard
I never try to open a rev document in the IDE by double clicking; I keep too
many old versions of Rev on my machine and the wrong one usually gets loaded
if I do that  (in spite of the settings)..

 I either open tRev first (which launches the correct Rev version) and
navigate to the stack or drop it on to the Doc icon.
So I haven' t noticed the bug in 4. dp04 !

Disclamer; I use 'Defaultfolder' which aids greatly in navigating among many
directories.

I'll bet this is fixed in the November launch.

-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


2009/10/25 J. Landman Gay 

> Andre Garzia wrote:
>
>> Folks,
>>
>> I am sick of not being able to double click my stack files on MacOS X with
>> Rev 4.0.
>>
>> Rev IDE says the stack is corrupted. It is not, it opens fine thru file ->
>> open or go stack url.
>>
>> Anyone knows how to fix this?
>>
>
> It will be fixed in the next update. For now, I just drop stacks onto the
> dock icon. That seems to work.
>
> --
> 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: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread J. Landman Gay

Andre Garzia wrote:

Folks,

I am sick of not being able to double click my stack files on MacOS X with
Rev 4.0.

Rev IDE says the stack is corrupted. It is not, it opens fine thru file ->
open or go stack url.

Anyone knows how to fix this?


It will be fixed in the next update. For now, I just drop stacks onto 
the dock icon. That seems to work.


--
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: anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread Mark Schonewille

Andre,

I made a stack launcher, which you can find at the bottom of this  
page: .


You might also try to find the location of the appleevent handler or  
maybe you can add an appleevent handler to a backscript.


--
Best regards,

Mark Schonewille

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

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 25 okt 2009, at 18:45, Andre Garzia wrote:


Folks,

I am sick of not being able to double click my stack files on MacOS  
X with

Rev 4.0.

Rev IDE says the stack is corrupted. It is not, it opens fine thru  
file ->

open or go stack url.

Anyone knows how to fix this?

Thanks in advance mates!
Andre

--
http://www.andregarzia.com All We Do Is Code.
___
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


anyone know how to fix that silly stack file opening bug on mac os x and rev 4.0

2009-10-25 Thread Andre Garzia
Folks,

I am sick of not being able to double click my stack files on MacOS X with
Rev 4.0.

Rev IDE says the stack is corrupted. It is not, it opens fine thru file ->
open or go stack url.

Anyone knows how to fix this?

Thanks in advance mates!
Andre

-- 
http://www.andregarzia.com All We Do Is Code.
___
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 can I say REV to show another language in the keyboard viewer

2009-10-25 Thread Reinhold Venzl-Schubert

Hi!

I want to type polish text in a field. I switch the keyboard viewer  
(Mac OS 10.6) to Polish and start writing. Every think works well.
But when I change to another field on my card the keyboard viewer  
switches back to german.


I think I need a script like this:

on focusIn
do field "KBVPo" as "applescript"
end focusIn

The content of field "KBVPo is:

changeInputLanguage("Polnisch Pro")

 on changeInputLanguage(L)
	tell application "System Events" to tell process  
"SystemUIServer"
		tell (1st menu bar item of menu bar 1 whose value of  
attribute "AXDescription" is "text input")

return {its value, click, click menu 1's menu 
item L}
end tell
end tell
 end changeInputLanguage

But it do not works as expected. The same AppleScript works very well  
in the AppleScript Editor.


What is the mistake?
What do I have to change?

Thanks
Reinhold

___
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: Goofy Tip #57

2009-10-25 Thread Andre Garzia
Richmond,

Geocities will shut down tomorrow, for good... if those files are yours, you
should take them out ASAP!

:D

On Sun, Oct 25, 2009 at 3:38 PM, Richmond Mathewson <
richmondmathew...@gmail.com> wrote:

> Why '57'?  Well here's a clue:
>
> http://www.geocities.com/stl_owen/heinz.html
>
> Anyway . . .
>
> Suppose you see somebody else's stack which features
> a really groovy backgroundColor but is not one with
> an obvious name such as "blue". Then you can just do
> this:
>
> on mouseUp
>  set the backgroundColor of fld "fXXX" to the backgroundColor of card
> "cZZZ"
> end mouseUp
>
> and then save your field on a stack of your own for future
> reference.
>
> -
>
> Not quite as 'goofy' as one might think as I have been worrying
> for a while about how to temporarily change the backgroundColor
> of a field while I export a screenshot.
>
> In the latest Beta of my Sanskrit Typewriter I have set the text entry
> field's backgroundColor to a sort of mushroomy grey to save
> end-user's eyes; but also want an option to export screenshots of the
> text field with a white background:
>
> on mouseUp
>  set the backgroundColor of fld "fTextENTRY" to white
>  export snapshot from fld "fTextENTRY" to file "TextEXPORT.png" as PNG
>  set the backgroundColor of fld "fTextENTRY" to the backgroundColor of fld
> "fMyColour"
> end mouseUp
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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


Goofy Tip #57

2009-10-25 Thread Richmond Mathewson

Why '57'?  Well here's a clue:

http://www.geocities.com/stl_owen/heinz.html

Anyway . . .

Suppose you see somebody else's stack which features
a really groovy backgroundColor but is not one with
an obvious name such as "blue". Then you can just do
this:

on mouseUp
  set the backgroundColor of fld "fXXX" to the backgroundColor of card 
"cZZZ"

end mouseUp

and then save your field on a stack of your own for future
reference.

-

Not quite as 'goofy' as one might think as I have been worrying
for a while about how to temporarily change the backgroundColor
of a field while I export a screenshot.

In the latest Beta of my Sanskrit Typewriter I have set the text entry
field's backgroundColor to a sort of mushroomy grey to save
end-user's eyes; but also want an option to export screenshots of the
text field with a white background:

on mouseUp
  set the backgroundColor of fld "fTextENTRY" to white
  export snapshot from fld "fTextENTRY" to file "TextEXPORT.png" as PNG
  set the backgroundColor of fld "fTextENTRY" to the backgroundColor of 
fld "fMyColour"

end mouseUp

___
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: Behaviors

2009-10-25 Thread Mark Wieder
Beat-

Sunday, October 25, 2009, 8:39:03 AM, you wrote:

> 2.  A couple of btns have a behavior (DoA) assigned for mouseUp. Now
> one of the buttons has an additional task to perform on mouseUp  
> (DoB). 'DoA' needs to be done before 'DoB'.

Use the dispatch command in the behavior object:

on mouseUp
 DoA
 dispatch "DoB"
end mouseUp

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


Behaviors

2009-10-25 Thread Beat Cornaz

I started to use Behaviors today and ran into two things :

1. I have a behavior assigned to a couple of buttons and some label  
fields.


The script of the behavior button is :

on mouseEnter
   set the uVraagteken of stack "Timer-general_Lib" to true
end mouseEnter

on mouseLeave
   set the uVraagteken of stack "Timer-general_Lib" to false
end mouseLeave

Now all of a sudden this 'behavior' is all over the place. This  
'behavior' is also excecuted when I mouseEnter a graphic or a button  
which has the behavior removed. Even with a freshly created button.  
And it is the script in the behavior button, because if I comment it  
out, nothing happens. What is the matter here? For a while it worked ok.


2.  A couple of btns have a behavior (DoA) assigned for mouseUp. Now  
one of the buttons has an additional task to perform on mouseUp  
(DoB). 'DoA' needs to be done before 'DoB'.


This works, but is the wrong order :

on mouseUp
  Do B
  pass mouseUp  -- to activate the behavior
end mouseUp

I can't do it with 'send in Time' because the behavior (DoA) will  
exit to top in certain conditions.


I have come up with the inelegant solution : (especially if mouseDown  
has already a script). Any better ideas?


on mouseDown
   mouseUp   -- activates the behavior
   DoB
end mouseDown

on DoB
 -- do what is needed
end DoB

Any better ideas?
best,

Beat


___
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: RevMedia Portable

2009-10-25 Thread Mark Schonewille

Alejandro,

You might try the U3 version, although it seems that this was  
unsupported the day it was released. Unfortuntely, RunRev never made a  
statement about this, so I don't know whether it makes sense to buy a  
U3 license.


--
Best regards,

Mark Schonewille

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

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

On 25 okt 2009, at 08:38, Peter Alcibiades wrote:

capellan wrote:


Hi all,

Reading news about RevMedia launching in November,
I will repeat the same question from days ago:

When RunRev will launch RevMedia as a portable application,
that run from a PenDrive or CD, without installation?


Alejandro



___
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: RevMedia Portable

2009-10-25 Thread Peter Alcibiades

Alejandro, what is the problem exactly?  To try to find out, I copied my
Media folder to a usb stick, and ran it just now.  Seemed to run just fine. 
The Media folder was just the result of downloading and, don't recall
exactly, but think it needed to be unpacked and have the registration code
typed in.  But it seems to run fine from the stick.  Or is there something
else?  Must be

Peter


capellan wrote:
> 
> Hi all,
> 
> Reading news about RevMedia launching in November,
> I will repeat the same question from days ago:
> 
> When RunRev will launch RevMedia as a portable application,
> that run from a PenDrive or CD, without installation?
> 
> 
> Alejandro
> 

-- 
View this message in context: 
http://www.nabble.com/RevMedia-Portable-tp26036319p26045784.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: New direction for Stacks and Code Samples

2009-10-25 Thread Richmond Mathewson

Cheapjacks might be interested in 110mb.com;
the 'price' of this FREE web-hosting solution is
that it won't tolerate revlets and will only
tolerate stacks if they are zipped.

Still, it is FREE.
___
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: Simple Chat Server on On-Rev ?

2009-10-25 Thread Shao Sean
I did a test server a couple months ago with RevCGI and had a couple  
people connect in via telnet where we chatted in a rather weirdly  
redrawn chat so it is very possible to do as a CGI..

___
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