Behavior Problem

2010-11-08 Thread charles61

I have two sets of checkboxes, which are grouped ("marked" ad "major") I have
the following script in a button:

on mouseUp
  switch
  case (hilitedButton of group "marked" is not 0 and hilitedButton of
group "major" is not 0 )
 set the hilite of button "RBE" to true
 set the hilite of button "RBN" to false
 show field "Elig"
 hide field "NotElig" 
 break
  case (hilitedButton of group "marked" is not 0 and hilitedButton of
group "major" is 0)
 hide field "Elig"
 show field "NotElig" 
 break
  case (hilitedButton of group "marked" is 0 and the hilitedButton of
group "major" is 0)
 hide field "Elig"
 show field "NotElig" 
 break
   end switch

In the property inspector for both groups, I referenced the button: button
ID number stack "test"

The script only works when I click on the button. Why doesn't the Behavior
of the button handle this automatically?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Behavior-Problem-tp3032636p3032636.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do you program a save dialog when no changes in the file has been made?

2010-11-08 Thread charles61

Björnke,

Thanks! This gives me a starting point on how to do this.

Charles Szasz
csz...@mac.com




On Nov 7, 2010, at 6:11 PM, Björnke von Gierke [via Runtime Revolution] wrote:

> you need to set a flag, for example, if this would be in a text editor, i'd 
> set a "dirty" flag on  rawkeydown of the main text entry field, and then when 
> the stack  (window) is closed i'd check for that flag: 
> 
> --in the field 
> on rawkeydown theKey 
>   set the dirty of me to true 
>   pass rawkeydown 
> end rawkeydown 
> 
> --in the stack 
> on openstack 
>   set the dirty of field "text" to false 
> end openstack 
> 
> on closestackrequest 
>   if the dirty of field "text" then 
> -- do the save dialog here 
>   else 
> pass closestackrequest 
>   end if 
> end closestackrequest 
> 
> note: this is a simplified example, and does not cover all real life 
> possibilities 
> 
> On 7 Nov 2010, at 23:46, charles61 wrote: 
> 
> > 
> > I have code in my save menu that brings up a dialog for saving a file with 
> > "Don't Save", "Cancel" and "Save". After the user saves the file the first 
> > time, the code will automatically insert the name of the file into the 
> > dialog above when the user wants to save it again or get ready to open a 
> > new 
> > file. Any time the user gets ready to close the file or open a new file the 
> > dialog above (Don't Save, Cancel and Save) appears. How do I code it so 
> > that 
> > when the user does NOT make a change to the file (preserving the save file) 
> > the dialog of Don't Save, Cancel and Save will not appear and the file will 
> > go ahead close or a new file dialog will appear?
> 
> 
> 
> -- 
> 
> official ChatRev page: 
> http://bjoernke.com?target=chatrev
> 
> Chat with other RunRev developers: 
> go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev"; 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3031306.html
>  
> To unsubscribe from How do you program a save dialog when no changes in the 
> file has been made?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3032092.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


How do you program a save dialog when no changes in the file has been made?

2010-11-07 Thread charles61

I have code in my save menu that brings up a dialog for saving a file with
"Don't Save", "Cancel" and "Save". After the user saves the file the first
time, the code will automatically insert the name of the file into the
dialog above when the user wants to save it again or get ready to open a new
file. Any time the user gets ready to close the file or open a new file the
dialog above (Don't Save, Cancel and Save) appears. How do I code it so that
when the user does NOT make a change to the file (preserving the save file)
the dialog of Don't Save, Cancel and Save will not appear and the file will
go ahead close or a new file dialog will appear? 
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3031279.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: Problematic script on Windows 7!

2010-11-05 Thread charles61

Mark,

You are correct. For some card, there are some checkboxes that cannot be 
include in the grouping of the other checkboxes on that card. Is this what 
causing the problem?

Charles Szasz
csz...@mac.com




On Nov 5, 2010, at 10:20 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> My next guess would be that you have one checkbox on a card that isn't part 
> of the group. 
> 
> Just "put the number of buttons" into the message box and then "put the 
> number of buttons of this card" into the message box. Exactly like that. 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553 
> 
> Economy-x-Talk on Facebook now and get a free Color Converter license 
> http://qurl.tk/gn (read the conditions) 
> 
> On 6 nov 2010, at 02:59, charles61 wrote: 
> 
> > 
> > Mark, 
> > 
> > There are no "pass mouseUp' commands in any of the checkboxes. Most of the 
> > checkboxes don't have a script. They do have a custom property, uMylabel, 
> > which is used in a group script to populate a field with the labels on 
> > print only cards. The checkboxes that do have scripts consist of displaying 
> > a field when checked and putting empty into the field when it is not 
> > checked on both the regular cards and print cards. 
> > 
> > The exact error message: 
> > 
> > Type: Handler: can't find handler 
> > Object: button 'Print' of card 'comm' of stack 
> > 'C/ProgramData/StudentReport.rev 
> > Line: send 'mouseUp' to button b 
> > Line Num: 2608 
> > Hint: mouseUp 
> > 
> > When I move the script from the print button to the script of the card, I 
> > get the same error message except it references the card and a different 
> > line number. 
> > 
> > How do you check no. of buttons and the no. of buttons of this card? 
> > 
> > Charles Szasz 
> > [hidden email]
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029630.html
>  
> To unsubscribe from Problematic script on Windows 7!, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029634.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: Problematic script on Windows 7!

2010-11-05 Thread charles61

Mark,

There are no "pass mouseUp' commands in any of the checkboxes. Most of the 
checkboxes don't have a script. They do have a custom property, uMylabel, which 
is used in a group script to populate a field with the labels on print only 
cards. The checkboxes that do have scripts consist of displaying a field when 
checked and putting empty into the field when it is not checked on both the 
regular cards and print cards.

The exact error message:

Type: Handler: can't find handler
Object: button 'Print' of card 'comm' of stack 'C/ProgramData/StudentReport.rev
Line: send 'mouseUp' to button b
Line Num: 2608
Hint: mouseUp

When I move the script from the print button to the script of the card, I get 
the same error message except it references the card and a different line 
number.

How do you check no. of buttons and the no. of buttons of this card?

Charles Szasz
csz...@mac.com




On Nov 5, 2010, at 9:25 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Hi, 
> 
> No idea why you don't get an error on Mac. Do you have a 'pass mouseUp' 
> command in one of the checkboxes? Or does one of the buttons lack a mouseUp 
> handler? Could you copy and paste the exact text of the error message? Can 
> you check that the number of buttons and the number of buttons of this card 
> return the same number? 
> 
> -- 
> Kind regards, 
> 
> Mark Schonewille 
> Economy-x-Talk 
> Http://economy-x-talk.com 
> 
> Share the clipboard of your computer over a local network with Clipboard Link 
> http://clipboardlink.economy-x-talk.com
> 
> 
> Op 6 nov. 2010 om 02:11 heeft charles61 <[hidden email]> het volgende 
> geschreven: 
> 
> > 
> > The following script, which works fine on the Mac, gets flagged by Windows 
> > 7 
> > in a windows standalone. 
> > 
> > The line that is cited: Send 'mouseUp' to button b is displayed in bug 
> > report on the standalone that it cannot find a handler with the above line. 
> > After the message, printing of a single page starts. 
> > 
> > on doStuff3 
> >   put the num of this card into tStartCard 
> >   lock screen 
> > 
> >   repeat with y = 1 to the number of cards 
> >  if the mark of card y <> true then 
> > next repeat 
> >  end if 
> >  lock messages 
> >  go card y   
> >  unlock messages 
> >  repeat with b = 1 to the number of buttons 
> > if the style of button b = "checkbox" then 
> >send "mouseUp" to button b 
> > end if 
> >  end repeat 
> > 
> >   end repeat 
> >   lock messages 
> >   go card tStartCard 
> >   unlock messages 
> >   unlock screen 
> > end doStuff3 
> > 
> > Any suggestions? 
> > 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029606.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029614.html
>  
> To unsubscribe from Problematic script on Windows 7!, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029626.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


Problematic script on Windows 7!

2010-11-05 Thread charles61

The following script, which works fine on the Mac, gets flagged by Windows 7
in a windows standalone.

The line that is cited: Send 'mouseUp' to button b is displayed in bug
report on the standalone that it cannot find a handler with the above line.
After the message, printing of a single page starts. 

on doStuff3
   put the num of this card into tStartCard
   lock screen
   
   repeat with y = 1 to the number of cards
  if the mark of card y <> true then
 next repeat
  end if
  lock messages
  go card y  
  unlock messages
  repeat with b = 1 to the number of buttons
 if the style of button b = "checkbox" then 
send "mouseUp" to button b
 end if
  end repeat
  
   end repeat
   lock messages
   go card tStartCard
   unlock messages
   unlock screen
end doStuff3 

Any suggestions?

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029606.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: What is wrong with this script?

2010-11-04 Thread charles61

Jacqueline,

I am using the handler to send mouseUp commands to Print Only cards for 
printing. I will try your suggestion of combing two commands in a handler. And, 
yes I did try command period several times without success.

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 9:23 PM, J. Landman Gay [via Runtime Revolution] wrote:

> On 11/4/10 7:55 PM, charles61 wrote: 
> 
> > When I of marked card y, the script that looks like the following 
> > caused the printing to hang and I had to force quit Rev 4.0 and 
> > relaunch Rev. 
> 
> This, plus the recursion error you got, likely indicates that your 
> scripts are going in circles without a way to complete. What does your 
> "mouseUp" handler do exactly? If it calls a different handler, which in 
> turn calls the mouseUp again, then your script will loop between the two 
> handlers until eventually you get the error, or it looks like you hung. 
> (Did you try command-period to stop the scripts?) 
> 
> Usually it's better not to call system messages if possible. Instead of 
> sending a mouseup to a button, send a custom handler name instead. Then 
> have your mouseUp handler call that same custom handler. For example, if 
> you have this: 
> 
> on mouseUp 
>commandOne 
>commandTwo 
> end mouseUp 
> 
> Instead, do this: 
> 
> on mouseUp 
>   doStuff 
> end mouseUp 
> 
> on doStuff 
>commandOne 
>commandTwo 
> end doStuff 
> 
> Now your looping reset script can send "doStuff" to each button instead 
> of sending "mouseUp" to it. In fact, all your handlers that need to do 
> the mouseUp button stuff should be sending "doStuff" instead. 
> 
> 
> -- 
> Jacqueline Landman Gay | [hidden email] 
> HyperActive Software   | http://www.hyperactivesw.com
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028051.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028076.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: What is wrong with this script?

2010-11-04 Thread charles61

Craig,

I should mention that the recursive message came after I discovered that I left 
out the following:

of marked card y for the first part of if the style of button b


on doStuff3
   --->Sends mouseUp to checkboxes that are checked on marked cards
   repeat with y = 1 to the number of marked cards
  repeat with b = 1 to the number of buttons of marked card y
 if the style of button b = "checkbox" and the hilite of button b of 
marked card y = true then
   send "mouseUp" to button b
end if
  end repeat
   end repeat

When I of marked card y, the script that looks like the following caused the 
printing to hang and I had to force quit Rev 4.0 and relaunch Rev.

So this script is the one that is causing Rev to hang:
on doStuff3
   --->Sends mouseUp to checkboxes that are checked on marked cards
   repeat with y = 1 to the number of marked cards
  repeat with b = 1 to the number of buttons of marked card y
 if the style of button b of marked card y = "checkbox" and the hilite 
of button b of marked card y = true then
   send "mouseUp" to button b
end if
  end repeat
   end repeat



Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote:

> Charles. 
> 
> Good. This never happens to me. 
> 
> Your script can be shortened, and sped up, a bit. Watch line wraps: 
> 
> on doStuff3 
> repeat with y = 1 to the number of marked cards 
>repeat with b = 1 to the number of buttons of marked cd y 
>   if the style of button b of marked cd y = "checkbox" and the 
> hilite of button b of marked cd y = "true" then 
> send "mouseUp" to button b 
>  end if 
>end repeat 
> end repeat 
> end doStuff3 
> 
> The important thing here is to see that the references to remote cards can 
> substitute for actually going there. Sometimes navigating is better; usually 
> not. So you never actually have to go to each card.   You don't have to 
> lock anything, or save your location and return. 
> 
> By using the mark property, you don't need to test to see if a card is 
> marked. 
> 
> Craig 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028030.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: What is wrong with this script?

2010-11-04 Thread charles61

Crag,

I checked and rechecked the script but there were no typos or spaces. I ran the 
script several more times and got a dialog message:

The handler: mouseUp has reached the recursion limit of: 40. Execution will 
be terminated to prevent hang.

i have never gotten this message before!

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote:

> Charles. 
> 
> Good. This never happens to me. 
> 
> Your script can be shortened, and sped up, a bit. Watch line wraps: 
> 
> on doStuff3 
> repeat with y = 1 to the number of marked cards 
>repeat with b = 1 to the number of buttons of marked cd y 
>   if the style of button b of marked cd y = "checkbox" and the 
> hilite of button b of marked cd y = "true" then 
> send "mouseUp" to button b 
>  end if 
>end repeat 
> end repeat 
> end doStuff3 
> 
> The important thing here is to see that the references to remote cards can 
> substitute for actually going there. Sometimes navigating is better; usually 
> not. So you never actually have to go to each card.   You don't have to 
> lock anything, or save your location and return. 
> 
> By using the mark property, you don't need to test to see if a card is 
> marked. 
> 
> Craig 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028016.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: What is wrong with this script?

2010-11-04 Thread charles61

Craig,

Your script the first time but I got an error the second time I tried printing 
saying;

flagging the line end "mouseUp" to button b

and reporting the error message:

button "Print"; execution error at line 287 (Chunk: no such object) near "27", 
char 31

I went to line 27 which had the code: answer information "Please enter the 
date." 

I typed in your suggestion - no copy and paste because of the line breaks:


on doStuff3
   --->Sends mouseUp to checkboxes that are checked on marked cards
   repeat with y = 1 to the number of marked cards
  repeat with b = 1 to the number of buttons of marked card y
 if the style of button b of marked card y = "checkbox" and the hilite 
of button b of marked card y = true then
   send "mouseUp" to button b
end if
  end repeat
   end repeat
end doStuff3

Any idea of what is going on here?

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote:

> Charles. 
> 
> Good. This never happens to me. 
> 
> Your script can be shortened, and sped up, a bit. Watch line wraps: 
> 
> on doStuff3 
> repeat with y = 1 to the number of marked cards 
>repeat with b = 1 to the number of buttons of marked cd y 
>   if the style of button b of marked cd y = "checkbox" and the 
> hilite of button b of marked cd y = "true" then 
> send "mouseUp" to button b 
>  end if 
>end repeat 
> end repeat 
> end doStuff3 
> 
> The important thing here is to see that the references to remote cards can 
> substitute for actually going there. Sometimes navigating is better; usually 
> not. So you never actually have to go to each card.   You don't have to 
> lock anything, or save your location and return. 
> 
> By using the mark property, you don't need to test to see if a card is 
> marked. 
> 
> Craig 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028013.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: What is wrong with this script?

2010-11-04 Thread charles61

Craig,

Your script not only worked faster but it was also worked better with the 
grouped checkboxes than my script. Thanks!!!

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote:

> Charles. 
> 
> Good. This never happens to me. 
> 
> Your script can be shortened, and sped up, a bit. Watch line wraps: 
> 
> on doStuff3 
> repeat with y = 1 to the number of marked cards 
>repeat with b = 1 to the number of buttons of marked cd y 
>   if the style of button b of marked cd y = "checkbox" and the 
> hilite of button b of marked cd y = "true" then 
> send "mouseUp" to button b 
>  end if 
>end repeat 
> end repeat 
> end doStuff3 
> 
> The important thing here is to see that the references to remote cards can 
> substitute for actually going there. Sometimes navigating is better; usually 
> not. So you never actually have to go to each card.   You don't have to 
> lock anything, or save your location and return. 
> 
> By using the mark property, you don't need to test to see if a card is 
> marked. 
> 
> Craig 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027977.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: What is wrong with this script?

2010-11-04 Thread charles61

Craig,

Thanks for that suggestion! I will indeed try it out. I did find some glitches 
with my posted script in my actual project. The script did not seem to work as 
well when I had grouped some checkboxes so that I could show an alert message 
when none checkboxes had been checked in the group. 

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote:

> Charles. 
> 
> Good. This never happens to me. 
> 
> Your script can be shortened, and sped up, a bit. Watch line wraps: 
> 
> on doStuff3 
> repeat with y = 1 to the number of marked cards 
>repeat with b = 1 to the number of buttons of marked cd y 
>   if the style of button b of marked cd y = "checkbox" and the 
> hilite of button b of marked cd y = "true" then 
> send "mouseUp" to button b 
>  end if 
>end repeat 
> end repeat 
> end doStuff3 
> 
> The important thing here is to see that the references to remote cards can 
> substitute for actually going there. Sometimes navigating is better; usually 
> not. So you never actually have to go to each card.   You don't have to 
> lock anything, or save your location and return. 
> 
> By using the mark property, you don't need to test to see if a card is 
> marked. 
> 
> Craig 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027972.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: What is wrong with this script?

2010-11-04 Thread charles61

Craig,

Yes I got it to work on a test stack that I was working with. A typo was the 
culprit.

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 7:01 PM, dunbarx [via Runtime Revolution] wrote:

> It does work. It's a bit wordy, but works fine. 
> 
> If you have these buttons in a background, you do have the sharedHilite set 
> to "false", right? This would matter. 
> 
> So what doesn't work? 
> 
> Craig Newman 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027935.html
>  
> To unsubscribe from What is wrong with this script?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027942.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


What is wrong with this script?

2010-11-04 Thread charles61

I am trying to use the following in another handler to send a mouseUp to
hilited checkboxes on marked cards but it does not work. Any suggestions?

on doStuff3
   put the num of this card into tStartCard
   lock screen
   repeat with y = 1 to the number of cards
  if the mark of card y <> true then
 next repeat
  end if
  lock messages
  go card y  
  unlock messages
  repeat with b = 1 to the number of buttons
 if the style of button b = "checkbox" then
if the hilite of button b = true then
   send "mouseUp" to button b
end if
 end if
  end repeat
   end repeat
   lock messages
   go card tStartCard
   unlock messages
   unlock screen
end doStuff3
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027821.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: Skipping a mark card

2010-11-04 Thread charles61

Jim,

Thanks! I will try your script little later today.

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 10:38 AM, Jim Ault [via Runtime Revolution] wrote:

> (untested, but might work) 
> 
> In the stack script 
> 
> on preopencard 
> if the number of marked cards is the number of cards then 
>   answer "All cards are marked" 
> else 
>if the marked of this card is true then go next card 
> end if 
> end preopencard 
> 
> 
> On Nov 4, 2010, at 7:27 AM, [hidden email] wrote: 
> 
> > Charles: 
> > 
> > Just one possible way: 
> > 
> > on preOpenCard 
> >   if the yourSpecialProperty of this stack is "skip" then go next   
> > marked 
> > card 
> > end preOpenCard 
> > 
> > You would create the custom property for the stack, and set it to   
> > "skip" or 
> > empty depending on what you want to do. 
> > 
> > Craig 
> > In a message dated 11/4/10 10:09:32 AM, [hidden email] writes: 
> > 
> > 
> >> 
> >> That is interesting! How would I script this using preOpenCard? 
> >>
> 
> Jim Ault 
> Las Vegas 
> 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027126.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027197.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: Skipping a mark card

2010-11-04 Thread charles61

Craig,

Thanks! I will try your script little later today.

Charles Szasz
csz...@mac.com




On Nov 4, 2010, at 10:27 AM, dunbarx [via Runtime Revolution] wrote:

> Charles: 
> 
> Just one possible way: 
> 
> on preOpenCard 
>if the yourSpecialProperty of this stack is "skip" then go next marked 
> card 
> end preOpenCard 
> 
> You would create the custom property for the stack, and set it to "skip" or 
> empty depending on what you want to do. 
> 
> Craig 
> In a message dated 11/4/10 10:09:32 AM, [hidden email] writes: 
> 
> 
> > 
> > That is interesting! How would I script this using preOpenCard? 
> > 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027102.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027195.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: Skipping a mark card

2010-11-04 Thread charles61

Jim,

That is interesting! How would I script this using preOpenCard?

Charles Szasz
csz...@mac.com




On Nov 3, 2010, at 5:40 PM, Jim Ault [via Runtime Revolution] wrote:

> You might try   preOpenCard 
> which is sent before the user see the card being opened. 
> 
> 
> On Nov 3, 2010, at 1:56 PM, [hidden email] wrote: 
> 
> > Charles. 
> > 
> > I see. So might you simply put an opencard handler into the script   
> > of your 
> > special card, sending the user to the next marked card unless some   
> > property 
> > was set? 
> > __ 
> 
> Jim Ault 
> Las Vegas 
> 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3026234.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027069.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: Skipping a mark card

2010-11-03 Thread charles61

Craig,

I forgot to add that I had to use the following script in my navigation button 
in addition to checking the Find Command ignores box of the special marked card:

on mouseUp
   if  dontSearch of next marked card = false 
   then
  go next marked card
   end if
end mouseUp

Charles Szasz
csz...@mac.com




On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote:

> Do you always want to do this, to always go to the following marked card? 
> In other words, to always go to the second marked card during any navigation? 
> 
> If so, why not just lock the screen, go to the next marked card, and then 
> go to the next marked card? 
> 
> It seems like an odd way to get around, though. I am missing something. 
> 
> Craig Newman 
> 
> In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: 
> 
> 
> > I have a project that uses marked cards to navigate them. Aside from 
> > unmarking a card, is there a way to skip a mark card when you are using a 
> > script (go to next marked card) to go to marked cards? 
> > 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025488.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: Skipping a mark card

2010-11-03 Thread charles61

Craig,

I found that by checking the Find Command ignores box of the special marked 
card that I don't want the user to access using the marked command works! But 
this card has to be the last marked card in the stack to work.  

When the user is on the next to last marked card and clicks on a navigation 
button to go to next marked card, the button does nothing. But on other marked 
cards it works. So this keeps the user from accessing the special marked card 
using navigation buttons.

Charles Szasz
csz...@mac.com




On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote:

> Do you always want to do this, to always go to the following marked card? 
> In other words, to always go to the second marked card during any navigation? 
> 
> If so, why not just lock the screen, go to the next marked card, and then 
> go to the next marked card? 
> 
> It seems like an odd way to get around, though. I am missing something. 
> 
> Craig Newman 
> 
> In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: 
> 
> 
> > I have a project that uses marked cards to navigate them. Aside from 
> > unmarking a card, is there a way to skip a mark card when you are using a 
> > script (go to next marked card) to go to marked cards? 
> > 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025484.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: Skipping a mark card

2010-11-03 Thread charles61

Hi Craig,

I have a special marked card that is always marked. This because I also want it 
to be included when a text file is saved. I only want the special card to be 
accessible via a button. 

In addition, I have other marked cards that the user has access to while using 
my application. I use the marked cards for the user to go from one marked card 
to others that are marked. I also use marked cards for printing. So, the 
special marked card is always saved even if it is empty. This special marked 
card is reserved for the user when a certain type of meeting is needed. When 
the user clicks on a button to go to this special card, the user can fill it 
out and print it. Then save it along with the other marked cards.

Charles Szasz
csz...@mac.com




On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote:

> Do you always want to do this, to always go to the following marked card? 
> In other words, to always go to the second marked card during any navigation? 
> 
> If so, why not just lock the screen, go to the next marked card, and then 
> go to the next marked card? 
> 
> It seems like an odd way to get around, though. I am missing something. 
> 
> Craig Newman 
> 
> In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: 
> 
> 
> > I have a project that uses marked cards to navigate them. Aside from 
> > unmarking a card, is there a way to skip a mark card when you are using a 
> > script (go to next marked card) to go to marked cards? 
> > 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025401.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: Skipping a mark card

2010-11-03 Thread charles61

Richmond,

Thanks for your humor!

Charles Szasz
csz...@mac.com




On Nov 3, 2010, at 10:07 AM, Richmond Mathewson-2 [via Runtime Revolution] 
wrote:

>   'Skipping the difficult bits' is a well-documented sport, as well as 
> 'Jumping to conclusions' 
> and 'Running a temperature': 
> 
> http://openlibrary.org/books/OL2875493M/Alice_through_the_needle's_eye
> 
> So 'Skipping a marked card' is an extremely SHARP thing to do; mind you 
> I don't 
> how much money I would plonk down on the table if I knew my opponent 
> was using marked cards . . .  :) 
> 
> On 11/3/10 3:48 PM, [hidden email] wrote:
> 
> > Do you always want to do this, to always go to the following marked card? 
> > In other words, to always go to the second marked card during any 
> > navigation? 
> > 
> > If so, why not just lock the screen, go to the next marked card, and then 
> > go to the next marked card? 
> > 
> > It seems like an odd way to get around, though. I am missing something. 
> > 
> > Craig Newman 
> > 
> > In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: 
> > 
> > 
> >> I have a project that uses marked cards to navigate them. Aside from 
> >> unmarking a card, is there a way to skip a mark card when you are using a 
> >> script (go to next marked card) to go to marked cards? 
> >> 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025410.html
>  
> To unsubscribe from Skipping a mark card, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025412.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


Skipping a mark card

2010-11-03 Thread charles61

I have a project that uses marked cards to navigate them. Aside from
unmarking a card, is there a way to skip a mark card when you are using a
script (go to next marked card) to go to marked cards?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025277.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: Underscore in script for windows?

2010-11-01 Thread charles61

Ken,

Thanks very much!

Charles Szasz
csz...@mac.com




On Nov 1, 2010, at 4:12 PM, Ken Ray [via Runtime Revolution] wrote:

> 
> > I am using the following script to open a text file for both windows and 
> > Macintosh. My question is do I need two separate scripts one for the Mac 
> > and 
> > one for for Windows (XP, Vista, Windows 7) with a space instead of an 
> > underscore?  For example "/S504_Student" for "/S504 Student" for Windows. 
> > 
> > if the_selection is 1 
> >then 
> >   answer file "Open Student file:" with specialFolderPath("documents") 
> > & 
> > "/S504 Student" 
> 
> No, that should work on all platforms you mentioned. 
> 
> Ken Ray 
> Sons of Thunder Software, Inc. 
> Email: [hidden email] 
> Web Site: http://www.sonsothunder.com/
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Underscore-in-script-for-windows-tp3017600p3022719.html
>  
> To unsubscribe from Underscore in script for windows?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Underscore-in-script-for-windows-tp3017600p3022768.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


Underscore in script for windows?

2010-10-28 Thread charles61

I am using the following script to open a text file for both windows and
Macintosh. My question is do I need two separate scripts one for the Mac and
one for for Windows (XP, Vista, Windows 7) with a space instead of an
underscore?  For example "/S504_Student" for "/S504 Student" for Windows.

if the_selection is 1 
   then
  answer file "Open Student file:" with specialFolderPath("documents") &
"/S504 Student"
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Underscore-in-script-for-windows-tp3017600p3017600.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: Close File question

2010-10-26 Thread charles61

Bob,

I thought that I was using the full filePath (/Users/cszasz/Documents/S504 
School Personnel/Tom Jones.txt)! And how do you use a literal in closing a file?

Charles Szasz
csz...@mac.com




On Oct 26, 2010, at 12:15 PM, Bob Sneidar-2 [via Runtime Revolution] wrote:

> Charles, try using the full path to the file. I noticed you are using a 
> relative path. Not sure if that makes a difference but give it a shot. Also 
> try closing the file using a literal, that is using the value and not the 
> variable. 
> 
> Bob 
> 
> 
> On Oct 26, 2010, at 8:29 AM, charles61 wrote: 
> 
> > 
> > I have the name and location of a file in a variable, gOpenDataFile. For 
> > example: 
> > /Users/cszasz/Documents/School Personnel/Tom Jones.txt 
> > 
> > Can I use the following: Put empty into gOpenDataFile to close a file? The 
> > reason I ask is that I have been unable to use the Close File command to 
> > close files. 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013929.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3014028.html
>  
> To unsubscribe from Close File question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3014037.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: Close File question

2010-10-26 Thread charles61

Mark,

Thanks for your suggestions!

Charles Szasz
csz...@mac.com




On Oct 26, 2010, at 12:07 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> You use EITHER 
> 
> open file gOpenDataFile 
> read from/write to file gOpenDataFile 
> close file gOpenDataFile 
> 
> OR 
> 
> put/get URL ("file:" & gOpenDataFile) 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553 
> 
> Download the Installer Maker plugin for Runtime Revolution at 
> http://qurl.tk/ce Create installers for Mac and Windows on *every* 
> Rev-compatible platform. No additional software needed. 
> 
> On 26 okt 2010, at 18:00, charles61 wrote: 
> 
> > 
> > Mark, 
> > 
> > I also tried the following which did not work. Any suggestions? 
> > 
> > close file URL ("file:" & gOpenDataFile) 
> > 
> > Charles Szasz 
> > [hidden email] 
> > 
> >
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3014012.html
>  
> To unsubscribe from Close File question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3014019.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: Close File question

2010-10-26 Thread charles61

Mark,

I also tried the following which did not work. Any suggestions?

close file URL ("file:" & gOpenDataFile)

Charles Szasz
csz...@mac.com




On Oct 26, 2010, at 11:33 AM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Charles, 
> 
> No, you must use the close file command. 
> What makes you think you're unable to do so? 
> You could also use get URL or put URL instead of open-read/write-close. 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553 
> 
> Download the Installer Maker plugin for Runtime Revolution at 
> http://qurl.tk/ce Create installers for Mac and Windows on *every* 
> Rev-compatible platform. No additional software needed. 
> 
> On 26 okt 2010, at 17:29, charles61 wrote: 
> 
> > 
> > I have the name and location of a file in a variable, gOpenDataFile. For 
> > example: 
> > /Users/cszasz/Documents/School Personnel/Tom Jones.txt 
> > 
> > Can I use the following: Put empty into gOpenDataFile to close a file? The 
> > reason I ask is that I have been unable to use the Close File command to 
> > close files. 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013938.html
>  
> To unsubscribe from Close File question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013993.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: Close File question

2010-10-26 Thread charles61

Hi Mark,

This is the script that I have tried using the close command for "Don't Save". 
I tried the following which did not work in the script below: 
Close file "file:" & gOpenDataFile


case "New Student Referral"
  go to card "referral"  
  
  if field "first" of card "referral" is not empty then ---> Name field is 
not empty.
 if gOpenDataFile is not empty then  ---> A saved file is open.
set the itemDel to "/"
put item -1 of gOpenDataFile into tFileName
answer warning "Save changes to " & tFileName &"?" with "Don't 
Save" or "Cancel" or "Save" titled "Save File"

--->answer warning "Save changes to: "with "Don't Save" or "Cancel" 
or "Save" titled "Save File?"
--->Your changes will be lost if you do not save them.

if it = "Don't Save" then close file "file:" & gOpenDataFile -->New 
10-25-10: Close file 


Charles Szasz
csz...@mac.com




On Oct 26, 2010, at 11:33 AM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Charles, 
> 
> No, you must use the close file command. 
> What makes you think you're unable to do so? 
> You could also use get URL or put URL instead of open-read/write-close. 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553 
> 
> Download the Installer Maker plugin for Runtime Revolution at 
> http://qurl.tk/ce Create installers for Mac and Windows on *every* 
> Rev-compatible platform. No additional software needed. 
> 
> On 26 okt 2010, at 17:29, charles61 wrote: 
> 
> > 
> > I have the name and location of a file in a variable, gOpenDataFile. For 
> > example: 
> > /Users/cszasz/Documents/School Personnel/Tom Jones.txt 
> > 
> > Can I use the following: Put empty into gOpenDataFile to close a file? The 
> > reason I ask is that I have been unable to use the Close File command to 
> > close files. 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013938.html
>  
> To unsubscribe from Close File question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013959.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


Close File question

2010-10-26 Thread charles61

I have the name and location of a file in a variable, gOpenDataFile. For
example: 
/Users/cszasz/Documents/School Personnel/Tom Jones.txt

Can I use the following: Put empty into gOpenDataFile to close a file? The
reason I ask is that I have been unable to use the Close File command to
close files.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Close-File-question-tp3013929p3013929.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


Need help with this script...

2010-10-25 Thread charles61

I have the following script where the user is given the option of not saving
a new file, canceling, or saving it. The problem is that when the I select
New in the File dialog the dialog with the three options does not appear and
the fields in the open file are cleared out.

 switch pWhich
  global gOpenDataFile  --->Used to set the name of the file in a Save
Dialog
  
   case "New Student Referral"
  go to card "referral"  
  
  if field "first" of card "referral" is not empty then ---> Name field
is not empty & a saved file is open.
 if gOpenDataFile is not empty then
set the itemDel to "/"
put item -1 of gOpenDataFile into tFileName
answer warning "Save changes to " & tFileName &"?" with "Don't
Save" or "Cancel" or "Save" titled "Save File"

if it = "Don't Save" then close file "file:" & gOpenDataFile
specialFolderPath("documents") & "/Student" 
put empty into gOpenDataFile
unmark all cards
set the mark of card "referral" to true

if it = "Cancel" then exit to top --->Stop saving a new referral

else if it ="Save" then
   
   IF the platform is "MacOS" 
   THEN
  put specialFolderPath("documents") & "/Student" into
tNewFolder
   end if
   
   IF the platform is "win32" 
   THEN 
  put specialFolderPath("documents") & "/Student" into
tNewFolder
   end if
   
   if there is not a folder tNewFolder then
  create folder tNewFolder
   end if
   
   ask file "Save Student file as: " with (tNewFolder &
"/untitled.txt")
   
   put it into tSaveFile
   put it into gOpenDataFile
   
   put empty into tAllData
   repeat with x= 1 to the number of cards
  if the mark of card x is true then
 put the short name of card x into tCardName
 put "*" & cr & tCardName & cr & "*" &
cr after tAllData
 put gatherData(tCardName) & cr after tAllData
  end if
   end repeat
   put tAllData into URL ("file:" & gOpenDataFile)
   
   if the result is not empty then  ---> Stop here if the file
didn't save
  answer error "There was a problem saving the current data
file."
  exit to top
   end if
end if
 end if
  end if
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Need-help-with-this-script-tp3010422p3010422.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: Progress bar with lock?

2010-10-22 Thread charles61

Hugh,

Thanks for this suggestion! I will give it a try.

Charles Szasz
csz...@mac.com




On Oct 22, 2010, at 3:26 AM, FlexibleLearning-2 [via Runtime Revolution] wrote:

> 
> Hi Charles, 
> 
> According to the Scripter's Scrapbook: 
> 
> "A useful tip for displaying a modal that will not block, for example, a 
> progress indicator. 
> 
> The secret to having a modal dialog that you can update is this: 
> 
>  go invisible stack "MyModal" as modal 
>  set visible of me to true 
> 
> By opening the stack as invisible your scripts won't halt but you will 
> display a modal dialog." 
> 
> 
> Hugh Senior 
> FLCo 
> 
> 
> Charles wrote: 
> I have an app that I am working on that takes a few seconds to clear fields, 
> reset radio buttons and checkboxes before it goes to the second card. During 
> this time, the screen is locked. I wanted to show a progress bar during this 
> process is going on. Is there anyway to show a progress bar while the screen 
> is locked? Is there a way to fake a progress bar while the screen is locked? 
> Version: 10.0.1136 / Virus Database: 422/3210 - Release Date: 10/21/10 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006728.html
>  
> To unsubscribe from Progress bar with lock?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3007323.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: Progress bar with lock?

2010-10-21 Thread charles61

Bob,

I think that is a great idea! Maybe Scott will see this and create one.

Charles Szasz
csz...@mac.com




On Oct 21, 2010, at 4:15 PM, Bob Sneidar-2 [via Runtime Revolution] wrote:

> Here's a question: Would a window created by an external still update while 
> the screen is locked? If so, then I think we need a progress bar external. 
> Scott made some really nice controls a while back. How about if Scott made a 
> standalone that could be called from Runtime Rev as an external. Is that even 
> possible? Otherwise, a real compiled c++ or java external would have to be 
> made. I bet a lot of people here on the list would pay for that. I know I 
> would! I cannot code in c++ or java so I cannot do it. 
> 
> Bob 
> 
> 
> On Oct 21, 2010, at 12:14 PM, charles61 wrote: 
> 
> > 
> > I have an app that I am working on that takes a few seconds to clear 
> > fields, 
> > reset radio buttons and checkboxes before it goes to the second card. 
> > During 
> > this time, the screen is locked. I wanted to show a progress bar during 
> > this 
> > process is going on. Is there anyway to show a progress bar while the 
> > screen 
> > is locked? Is there a way to fake a progress bar while the screen is 
> > locked? 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006132.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006223.html
>  
> To unsubscribe from Progress bar with lock?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006329.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: Progress bar with lock?

2010-10-21 Thread charles61

Scott,

That is a good idea! It seems easy to do and would serve the same purpose. 
Thanks very much!  

Charles Szasz
csz...@mac.com




On Oct 21, 2010, at 3:19 PM, Scott Rossi [via Runtime Revolution] wrote:

> Recently, charles61 wrote: 
> 
> > I have an app that I am working on that takes a few seconds to clear 
> > fields, 
> > reset radio buttons and checkboxes before it goes to the second card. 
> > During 
> > this time, the screen is locked. I wanted to show a progress bar during 
> > this 
> > process is going on. Is there anyway to show a progress bar while the 
> > screen 
> > is locked? Is there a way to fake a progress bar while the screen is 
> > locked? 
> 
> AFAIK, there's no way to do this.  I could have sworn screen locking used to 
> affect whatever stack was active at the time it was called, but currently it 
> affects all stacks.  You might consider throwing up a text message "One 
> moment please..." while the cleanup happens, but I don't believe there's any 
> way to have just a portion of the screen locked. 
> 
> Regards, 
> 
> Scott Rossi 
> Creative Director 
> Tactile Media, UX Design 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006141.html
>  
> To unsubscribe from Progress bar with lock?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006156.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: Progress bar with lock?

2010-10-21 Thread charles61

Hi Mark!

That is a great idea! But will the screenshot show the progress bar filling up 
or is it just a static screenshot?

Charles Szasz
csz...@mac.com




On Oct 21, 2010, at 3:18 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> No, you can't do this. However, you can show a screenshot of the card with a 
> progress bad on top. 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553 
> 
> Download the Installer Maker plugin for Runtime Revolution at 
> http://qurl.tk/ce Create installers for Mac and Windows on *every* 
> Rev-compatible platform. No additional software needed. 
> 
> On 21 okt 2010, at 21:14, charles61 wrote: 
> 
> > 
> > I have an app that I am working on that takes a few seconds to clear 
> > fields, 
> > reset radio buttons and checkboxes before it goes to the second card. 
> > During 
> > this time, the screen is locked. I wanted to show a progress bar during 
> > this 
> > process is going on. Is there anyway to show a progress bar while the 
> > screen 
> > is locked? Is there a way to fake a progress bar while the screen is 
> > locked? 
> > -- 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006138.html
>  
> To unsubscribe from Progress bar with lock?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006144.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


Progress bar with lock?

2010-10-21 Thread charles61

I have an app that I am working on that takes a few seconds to clear fields,
reset radio buttons and checkboxes before it goes to the second card. During
this time, the screen is locked. I wanted to show a progress bar during this
process is going on. Is there anyway to show a progress bar while the screen
is locked? Is there a way to fake a progress bar while the screen is locked?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Progress-bar-with-lock-tp3006132p3006132.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Robert,

Thanks for your explanation and your time!

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 1:01 PM, Robert Brenstein [via Runtime Revolution] wrote:

> On 20.10.10 at 09:47 -0700 charles61 apparently wrote:
> 
> >Robert, 
> > 
> >I understand your previous e-mail about using custom handlers.  I 
> >have never used this concept before. But I am not following you when 
> >you sent the following: 
> > 
> >f one uses full reference in the called script (that is script in 
> >btn b of cd y refers to itself as btn b of cd y) then going to that 
> >card before running that script is not needed. 
> > 
> >While the script that Klaus posted works, I still want to fully 
> >understand your comments above. Could you elaborate further? 
> > 
> >Charles Szasz 
> >[hidden email] 
> >
> 
> For example, a btn on cd 1 does 
> 
>send dostuff to btn 3 of cd 2 
> 
> handler dostuff in btn 3 on cd 2 has 
> 
>show fld 1 
> 
> This will fail unless you are on this card (using go in btn on cd 1 
> as Klaus suggested). However, 
> 
>show fld 1 of cd 2 
> 
> will work with the send without having to go. This will work just 
> fine if executed by clicking btn 3 on cd 2, if its mouseUp is 
> 
> mouseUp 
>dostuff 
> end mouseUp 
> 
> Having "of cd 2" in the object reference is what I meant by full 
> reference. Of course, normally, one would use names of objects. 
> 
> Robert 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004246.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004252.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Robert,

I understand your previous e-mail about using custom handlers.  I have never 
used this concept before. But I am not following you when you sent the 
following:

f one uses full reference in the called script (that is script in 
btn b of cd y refers to itself as btn b of cd y) then going to that 
card before running that script is not needed. 

While the script that Klaus posted works, I still want to fully understand your 
comments above. Could you elaborate further?

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 12:30 PM, Robert Brenstein [via Runtime Revolution] wrote:

> On 20.10.10 at 18:04 +0200 Klaus on-rev apparently wrote:
> 
> >  >> Anyway, your script may fail if your mouseup function does sth that 
> >>>  refers to the buttons on the other card, which are not present on the 
> >>>  current card and it does not make full reference to them but only 
> >>>  uses short names. 
> > 
> >To avoid this and other traps when sending "mouseup" to object on 
> >other cards you coul do this and 
> >since there is no "defaultCard" (like "defaultstack") that we can 
> >set, we have to go to all the cards to 
> >avoid this above mentioned phenomenon!
> 
> If one uses full reference in the called script (that is script in 
> btn b of cd y refers to itself as btn b of cd y) then going to that 
> card before running that script is not needed. 
> 
> Robert 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004205.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004229.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Klaus,

Thanks!

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 12:35 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> > Klaus, 
> > 
> > Your script worked!   
> 
> Go figure :-) 
> 
> > What changes do I have to make if I wanted to use this script to send a 
> > mouseUp to checkboxes on marked cards?  I did not use marked cards in my 
> > sample stack. 
> 
> See below... 
> 
> > Charles Szasz 
> > [hidden email] 
> > 
> > 
> > ... 
> >> 
> >> 
> > on mouseUp 
> > ## We want to return to this card after the script has finished! 
> > put the num of this cd into tStartCard 
> > lock screen 
> >  repeat with y = 1 to the number of cards
> 
>   if the mark of cd y <> true then 
>next repeat 
>   end if
> 
> > 
> >  ## We actually have to GO to the cards but to avoid unnecessary 
> >  ## PRE/OPENCARD messages we have to: 
> > lock messages 
> > go cd y 
> > unlock messages 
> > repeat with b= 1 to the number of buttons 
> >if the style of button b  = "checkbox" then 
> >   if the hilite of button b  = "true" then 
> >   send "mouseUp" to button b 
> >   end if 
> >   end if 
> > end repeat 
> > end repeat 
> > 
> > ## Go back 
> > lock messages 
> > go cd tStartCard 
> > unlock messages 
> > unlock screen 
> > end mouseUp
> 
> Best 
> 
> Klaus 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004211.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004215.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Klaus,

Your script worked!  What changes do I have to make if I wanted to use this 
script to send a mouseUp to checkboxes on marked cards?  I did not use marked 
cards in my sample stack.

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 12:05 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> > Robert, 
> > 
> > I tried your suggestion. But I get the same results: the checkboxes 
> > received the message on the first card but the checkboxes on the second 
> > card did not receive the mouseUp message. 
> > 
> > Charles Szasz 
> > [hidden email] 
> 
> your script is OK! 
> But check Roberts answer, that is what's going on on your side! 
> 
> >> ... 
> >> Anyway, your script may fail if your mouseup function does sth that 
> >> refers to the buttons on the other card, which are not present on the 
> >> current card and it does not make full reference to them but only 
> >> uses short names. 
> 
> To avoid this and other traps when sending "mouseup" to object on other cards 
> you coul do this and 
> since there is no "defaultCard" (like "defaultstack") that we can set, we 
> have to go to all the cards to 
> avoid this above mentioned phenomenon! 
> 
> on mouseUp 
>  ## We want to return to this card after the script has finished! 
>  put the num of this cd into tStartCard 
>  lock screen 
>   repeat with y = 1 to the number of cards 
>   
>   ## We actually have to GO to the cards but to avoid unnecessary 
>   ## PRE/OPENCARD messages we have to: 
>  lock messages 
>  go cd y 
>  unlock messages 
>  repeat with b= 1 to the number of buttons 
> if the style of button b  = "checkbox" then 
>if the hilite of button b  = "true" then 
>send "mouseUp" to button b 
>end if 
>end if 
>  end repeat 
> end repeat 
> 
> ## Go back 
>  lock messages 
>  go cd tStartCard 
>  unlock messages 
>  unlock screen 
> end mouseUp 
> 
> >> 
> >> Robert 
> 
> Best 
> 
> Klaus 
> 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004174.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004195.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61



Charles Szasz
csz...@mac.com


Klaus,

Thanks for your suggestion! I will try it. Thanks again!

On Oct 20, 2010, at 12:05 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> > Robert, 
> > 
> > I tried your suggestion. But I get the same results: the checkboxes 
> > received the message on the first card but the checkboxes on the second 
> > card did not receive the mouseUp message. 
> > 
> > Charles Szasz 
> > [hidden email] 
> 
> your script is OK! 
> But check Roberts answer, that is what's going on on your side! 
> 
> >> ... 
> >> Anyway, your script may fail if your mouseup function does sth that 
> >> refers to the buttons on the other card, which are not present on the 
> >> current card and it does not make full reference to them but only 
> >> uses short names. 
> 
> To avoid this and other traps when sending "mouseup" to object on other cards 
> you coul do this and 
> since there is no "defaultCard" (like "defaultstack") that we can set, we 
> have to go to all the cards to 
> avoid this above mentioned phenomenon! 
> 
> on mouseUp 
>  ## We want to return to this card after the script has finished! 
>  put the num of this cd into tStartCard 
>  lock screen 
>   repeat with y = 1 to the number of cards 
>   
>   ## We actually have to GO to the cards but to avoid unnecessary 
>   ## PRE/OPENCARD messages we have to: 
>  lock messages 
>  go cd y 
>  unlock messages 
>  repeat with b= 1 to the number of buttons 
> if the style of button b  = "checkbox" then 
>if the hilite of button b  = "true" then 
>send "mouseUp" to button b 
>end if 
>end if 
>  end repeat 
> end repeat 
> 
> ## Go back 
>  lock messages 
>  go cd tStartCard 
>  unlock messages 
>  unlock screen 
> end mouseUp 
> 
> >> 
> >> Robert 
> 
> Best 
> 
> Klaus 
> 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004174.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004183.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

This weird! The script editor shows that the checkboxes on the second card are 
being examined in the repeat loop but the checkboxes that are checked are not 
receiving the mouseUp command. This is also supported that the checkboxes are 
not showing the fields that are not hidden. 

So, I don't know what the difference is between your sample stack and my sample 
stack to account for the difference results. 

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 11:54 AM, dunbarx [via Runtime Revolution] wrote:

> I made a small stack with three cards. 
> 
> On the first card I placed a button with your script. On all cards I placed 
> a checkBox button with a mouseUp handler in it. 
> 
> I ran the handler from the first card, and got results from the handlers on 
> the other cards. 
> 
> In a message dated 10/20/10 11:21:45 AM, [hidden email] writes: 
> 
> 
> > 
> > Robert, 
> > 
> > I tried your suggestion. But I get the same results: the checkboxes 
> > received the message on the first card but the checkboxes on the second 
> > card did 
> > not receive the mouseUp message. 
> > 
> > Charles Szasz 
> > [hidden email] 
> > 
> >
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004159.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004169.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Robert,

I tried your suggestion. But I get the same results: the checkboxes received 
the message on the first card but the checkboxes on the second card did not 
receive the mouseUp message. 

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 11:10 AM, Robert Brenstein [via Runtime Revolution] wrote:

> On 20.10.10 at 07:49 -0700 charles61 apparently wrote:
> 
> >Hi Craig! 
> > 
> >I checked for line breaks but there is none. I think the one in my 
> >posting was due to cutting and pasting the code to Nabble. 
> > 
> >My sample stack of two cards has four checkboxes on one card and 
> >four on the second. Each checkbox has code to show a field that when 
> >it is checked. To see if the checkboxes are receiving the mouseUp, I 
> >set all of the fields associated with the checkboxes to invisible. 
> >The checkboxes that are checked on the first card show the fields 
> >but the checkboxes on the second card do not and generates an error 
> >message in the IDE when I pressed the mouseUp button on the first 
> >card. If I click on the checkbox to uncheck, the error message 
> >appears for the next checkbox that is checked. If you have any other 
> >ideas, please feel free to suggest them! 
> > 
> >Charles Szasz 
> >[hidden email] 
> >
> 
> Craig meant me thinks that your inner if should be 
> 
> if the hilite of button b of card y = "true" then 
>send mouseUp to button b of card y 
> end if 
> 
> instead of 
> 
> if the hilite of button b of card y = "true" then send mouseUp to 
> button b of card y 
> 
> to avoid compilation ambiguity. 
> 
> Anyway, your script may fail if your mouseup function does sth that 
> refers to the buttons on the other card, which are not present on the 
> current card and it does not make full reference to them but only 
> uses short names. 
> 
> Robert 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004073.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004100.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Robert,

I am sorry for the wrong name! I was looking at an e-mail above yours when I 
sent you a reply. I will try your suggestion and read your comments. Thanks!

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 11:10 AM, Robert Brenstein [via Runtime Revolution] wrote:

> On 20.10.10 at 07:49 -0700 charles61 apparently wrote:
> 
> >Hi Craig! 
> > 
> >I checked for line breaks but there is none. I think the one in my 
> >posting was due to cutting and pasting the code to Nabble. 
> > 
> >My sample stack of two cards has four checkboxes on one card and 
> >four on the second. Each checkbox has code to show a field that when 
> >it is checked. To see if the checkboxes are receiving the mouseUp, I 
> >set all of the fields associated with the checkboxes to invisible. 
> >The checkboxes that are checked on the first card show the fields 
> >but the checkboxes on the second card do not and generates an error 
> >message in the IDE when I pressed the mouseUp button on the first 
> >card. If I click on the checkbox to uncheck, the error message 
> >appears for the next checkbox that is checked. If you have any other 
> >ideas, please feel free to suggest them! 
> > 
> >Charles Szasz 
> >[hidden email] 
> >
> 
> Craig meant me thinks that your inner if should be 
> 
> if the hilite of button b of card y = "true" then 
>send mouseUp to button b of card y 
> end if 
> 
> instead of 
> 
> if the hilite of button b of card y = "true" then send mouseUp to 
> button b of card y 
> 
> to avoid compilation ambiguity. 
> 
> Anyway, your script may fail if your mouseup function does sth that 
> refers to the buttons on the other card, which are not present on the 
> current card and it does not make full reference to them but only 
> uses short names. 
> 
> Robert 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004073.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004084.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: Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

Hi Craig!

I checked for line breaks but there is none. I think the one in my posting was 
due to cutting and pasting the code to Nabble.

My sample stack of two cards has four checkboxes on one card and four on the 
second. Each checkbox has code to show a field that when it is checked. To see 
if the checkboxes are receiving the mouseUp, I set all of the fields associated 
with the checkboxes to invisible. The checkboxes that are checked on the first 
card show the fields but the checkboxes on the second card do not and generates 
an error message in the IDE when I pressed the mouseUp button on the first 
card. If I click on the checkbox to uncheck, the error message appears for the 
next checkbox that is checked. If you have any other ideas, please feel free to 
suggest them!

Charles Szasz
csz...@mac.com




On Oct 20, 2010, at 10:12 AM, dunbarx [via Runtime Revolution] wrote:

> Hi. 
> 
> It works. It is possible you left that line break in the second "if" 
> statement? 
> 
> Craig Newman 
> In a message dated 10/20/10 10:04:01 AM, [hidden email] writes: 
> 
> 
> > on mouseUp 
> > repeat with y = 1 to the number of cards 
> >   repeat with b= 1 to the number of buttons of card y 
> >  if the style of button b of card y = "checkbox" then 
> > if the hilite of button b of card y = "true" then send mouseUp 
> > to button b of card y 
> >  end if 
> >   end repeat 
> > end repeat 
> > end mouseUp 
> >
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3003945.html
>  
> To unsubscribe from Sending mouseup to checkboxes on different card, click 
> here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3004034.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


Sending mouseup to checkboxes on different card

2010-10-20 Thread charles61

I am trying to devise a script to send a mouseUp to checkboxes on different
cards that are already checked. The following script works for checkboxes on
the first card but gives an execution error message on the second card
saying there is no such object. 

I checked the fields and script in this sample stack and cannot find
anything incorrect. So, I have to think there is a problem in my button
script below.

Here is my script:

on mouseUp
repeat with y = 1 to the number of cards
  repeat with b= 1 to the number of buttons of card y
 if the style of button b of card y = "checkbox" then
if the hilite of button b of card y = "true" then send mouseUp
to button b of card y
 end if
  end repeat
end repeat
end mouseUp
I would appreciate any suggestions!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Sending-mouseup-to-checkboxes-on-different-card-tp3003921p3003921.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


Save and Print Card Problem

2010-10-18 Thread charles61

I have a stack that has 72 cards. When the user selects a set of cards and
completes some fields, radio buttons and checkboxes, the results are loaded
into another set of cards that are used for printing. The print cards are
devoid of buttons. Then the user clicks on the Print button and the print
cards are printed showing the status of the controls and contents of the
fields. This setup works well for printing. 

The Save code I used correctly saves the status of the radio buttons, fields
and checkboxes. But here is the problem. When the user opens the saved file
and tries to print the cards, the print cards do not show the status of the
controls (radio buttons, checkboxes and fields in the cards that were saved.
I am lost here on how to solve this problem. I would GREATLY APPRECIATIVE
any help I can to resolve this unexpected problem!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Save-and-Print-Card-Problem-tp390p390.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


Unable to select text in script editor!!

2010-09-18 Thread charles61

I am using Rev 4.0 Build 950 for the Mac. I have been experiencing sporadic
problems in the script editor. At times, I unable to select text. In these
situations, I can insert the cursor before text or after text to  move
forward to add or move backwards to delete text. 

I have checked my preferences and found nothing. I have experienced this
with the Script Debug turn on and off. I have been forced to save and quit
and then restart Rev to get rid of this problem. Does anybody have any ideas
how I can fix this? 
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-select-text-in-script-editor-tp2545631p2545631.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


Need help with ListMagic!

2010-09-17 Thread charles61

I am using ListMagic (LM) in my project. I have two LM tables - student and
adult. The adult table works fine but I have been having persistent problems
with the student table for the past two weeks!

The two tables are on different cards. I am using Rev. Enterprise 4.0 Built
950 on the Mac.

The problem is that the first default row below the headers is not
reflecting the names of the headers above it which it is suppose to do. This
default row is present when there are no entries in the table. The row has
the following names: Header 2, Header 3, Header 4, Header 5, Header 6 and
Header 7 instead of the header names above the row. The adult table
correctly shows the default header names in the default row. 

Although the adult table has only only four headers (not including the
number column), the code for both is the same except for the global:
globalFieldData. The adult table has the global globalFieldData2.

I would greatly appreciate any help on this whether it be on this list or
off line: csz...@mac.com

Thanks!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Need-help-with-ListMagic-tp2544033p2544033.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: Grouping checkboxes with label fields

2010-09-14 Thread charles61

Thanks to everyone for their suggestions! Although Jacquline's suggestion may
be the easiest to implement, I am going to try each suggestion to see which
works best for me. Thanks everybody!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Grouping-checkboxes-with-label-fields-tp2538305p2539772.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


Grouping checkboxes with label fields

2010-09-13 Thread charles61

I have a series of cards that have checkboxes. Some of the checkboxes have
labels fields under them because the label of the checkbox will not hold the
content of the information displayed. Here is my question: I want to modify
the following group script for checkboxes to display the content of the
checkboxes plus the label fields for some of the checkboxes. I have tried
grouping the checkboxes that have an additional label fields but that does
not work.

What changes would I need to make this work both checkboxes that have label
fields and those that do not have label fields?


on mouseUp
   put the number of buttons of me into nbr
   repeat with n = 1 to nbr
  put the short name of button n of me into tName
  if not the hilite of button n of me then next repeat
  put tName & ", " after theList
  --  put tName & cr after theList
   end repeat
   delete char -2 to -1 of theList
   put theList into field "list"
end mouseUp
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Grouping-checkboxes-with-label-fields-tp2538305p2538305.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


Optimizing print code

2010-09-10 Thread charles61

I have developed the following print card code for both the Mac and Windows.
When I tested it the Print Dialog seems to take longer to show up despite
improvements I made to both print scripts. 
I would certainly appreciate any suggestions on how to speed up the print
dialog appearing!

Here is my code:

on mouseUp
   if the platform is "macos"
   then
  select empty
  
  open printing with dialog as sheet
  if the result = "cancel" then exit to top
  
  set the printPaperOrientation to "portrait"
  set the printmargins to 36,108,36,72
  set the printScale to .8738
  
  set the mark of card "referral" to false
  set the mark of card "letter" to false
  set the mark of card "help" to false
  
  lock screen
  set the hiliteColor of this stack to 255,255,255
  set the backgroundColor of this stack to 255,255,255
  hideStuff
  
  go to first marked card
  select empty
  
  repeat with x=1 to the number of marked cards ---> Page numbering of
marked cards
 put "Page" && x into field "PageNumber" of marked card x
  end repeat
  
  select empty
  click at "0,0"
  print marked cards
  
  close printing ---> Printing is done!
  
  set the mark of card "referral" to true
  set the mark of card "letter" to true
  set the mark of card "help" to true
  
  set the hiliteColor of this stack to 126,188,237
  set the backgroundcolor of this stack to 237,239,217
   
  showStuff
  unlock screen
  go to card "communications"
   end if
   
   if the platform is "win32" 
   then 
  answer printer
  set the printPaperOrientation to "portrait"
  set the printmargins to 36,108,36,72
  set the printScale to .8738
  
  open printing 
  if the result = "cancel" then exit to top
  
  set the mark of card "referral" to false
  set the mark of card "letter" to false
  set the mark of card "help" to false
  
  set the formatforprinting of this stack to true
  select empty
  
  lock screen
  hide stuff
  go to first marked card
  
  repeat with x=1 to the number of marked cards ---> Page numbering of
marked cards
 put "Page" && x into field "PageNumber" of marked card x
  end repeat
  
  select empty
  print marked cards
  close printing > Printing completed --->Added 9-7-10
   end if
   
   set the mark of card "referral" to true
   set the mark of card "letter" to true
   set the mark of card "help" to true
   
   set the backgroundcolor of this stack to 237,239,217
   set the formatforprinting of this stack to false
   showStuff
   go to card "communications"
   unlock screen
end mouseUp

on hideStuff
   hide group "menubar 1" of card "eligibility"
   hide button "print Elig" of card "eligibility"
   hide button "continue" of card "eligibility"
   hide button "eligmenu" of card "eligibility"
   hide group "main" of card "eligibility"
   --   hide button "Omenu1" of card "eligibility"
   hide button "print" of card "communications"
   hide group "nav" of card "communications"
   hide button "list" of card "communications"
   hide group "main" of card "communications"
   
   hide button "print" of card "help" ---> New 9-7-10
   hide button "save" of card "help"
   hide button "eligibility page" of card "help"
   hide button "clear" of card "help"
end hideStuff

on showStuff
   show group "menubar 1" of card "eligibility"
   show button "print Elig" of card "eligibility"
   show button "continue" of card "eligibility"
   show button "eligmenu" of card "eligibility"
   show group "main" of card "eligibility"
   show button "print" of card "communications"
   show group "nav" of card "communications"
   show button "list" of card "communications"
   show group "main" of card "communications"
   
   show button "print" of card "help" ---> New 9-7-10
   show button "save" of card "help"
   show button "eligibility page" of card "help"
   show button "clear" of card "help"
end showStuff

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Optimizing-print-code-tp2534663p2534663.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


ListMagic Users: Cannot import LM data with the status of checkboxes

2010-08-10 Thread charles61

I love List Magic. It makes it extremely easy to make lists in Rev apps.
After using the syntax given in the docs to export and then import LM lists,
I found that the status of the checkboxes in the second header are not being
imported when you import the list back into your app. Has any LM users run
into this problem? 

If so, how did you deal with it? I would be happy to share my export and
import scripts to compare notes about this problem!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ListMagic-Users-Cannot-import-LM-data-with-the-status-of-checkboxes-tp2320015p2320015.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


Creating a folder using get specialFolderPath

2010-08-09 Thread charles61

I have the following handler that creates a text file (list) on the user's
application support folder on OS X:

 if the platform = "MacOS" then
  get specialFolderPath("home") & specialFolderPath("asup") &"/" &
"list"
  put it into tfilePath
 end if

I tried the following to create a folder in the user's application support
folder that would store the text file (list):

if the platform = "MacOS" then
  get specialFolderPath("home") & specialFolderPath("asup") &"/" &
"Student Report" & "/" & "list"
  put it into tfilePath
 end if

But it does not work? Any suggestions?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Creating-a-folder-using-get-specialFolderPath-tp2318720p2318720.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: A real problem with Prefs!!

2010-08-06 Thread charles61

Chipp,

Thanks! I will save it and use it in my next project!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 8:53 PM, Chipp Walters [via Runtime Revolution] wrote:

> Charles, I will sometimes have a getPrefsFolder() function. Something like: 
> 
> function getPrefsFolder 
>get the effective filename of this stack 
>set itemDel to "/" 
>delete last item of it 
>put "/" & "Prefs" after it 
>If there is not a folder it then create folder it 
>return it 
> end getPrefsFolder 
> 
> HTH 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2315803.html
>  
> To unsubscribe from Re: A real problem with Prefs!!, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2316441.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Richard,

I am sorry to open this can of worms!  The apps I made in the past were ones 
that did only computations where no data was saved. And, recently I learned 
about creating, saving and reading Prefs!  

My current app is the only one that has LM tables where information have to be 
saved for these tables within the app itself. Otherwise, data files created by 
my app are saved as data files in documents. So, I will go ahead and use 
Application Support to put my app.

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 12:45 PM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
>  > After going to Key Ray's site, I found "asup" as code for Application 
>  > Support constant for OS X. Is this the best place to put your app 
>  > when you install it on an user's OS X computer? 
> 
> Now you've gone an opened up a can of worms, Charles! :) 
> 
> This question touches on a few issues, but let's handle the small one first: 
> 
> If you want to save DATA (not the app, we'll get to that in a moment) to 
> the Application Data folder, you need to decide which one.  There's a 
> system-wide one in the System folder, and a user-specific one in the 
> user's Library folder. 
> 
> The system-wide one can be useful for data which will be used by all 
> users on that machine: 
> 
>get specialFolderPath("asup") 
> 
> There is no special constant for the user's App Support folder, but you 
> can get it by concatenating the user folder with the App Support folder: 
> 
>get specialFolderPath("home")& specialFolderPath("asup") 
> 
> 
> But that's for data only.  And Apple gets somewhat specific about 
> *which* data should go there - see this overview of "Where to put 
> application files": 
> <http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html>
>  
> 
> In short, they suggest using the Preferences folder for prefs data, and 
> Application Support for "any type of file that supports the application 
> but is not required for the application to run." 
> 
> As for the application itself, it should go into the Applications folder 
> on OS X and Program Files on Windows.  But remember that modern versions 
> of both OS X and Windows can restrict access to those folders for 
> non-admin accounts. 
> 
> For Windows, any installer builder you use will allow an option for the 
> user to elevate privileges to a level appropriate for installation, or 
> if you're rolling your own you can use the option for setting User 
> Access Control in Rev's Standalone Builder. 
> 
> On OS X, it's common to deliver apps in a DMG image file, so they user 
> will be able to put it wherever they have permissions to do so. 
> 
> Once the app is installed, if the user doesn't have admin permissions 
> the app may not be able to write to its own folder. So for things like 
> your Reports stack, I would consider using Application Support on OS X 
> and Application Data on Windows. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315129.html
>  
> To unsubscribe from Saving data in List Magic tables, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315148.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Richard,

After going to Key Ray's site, I found "asup" as code for Application Support 
constant for OS X. Is this the best place to put your app when you install it 
on an user's OS X computer? 

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 10:35 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
> > I have a standalone consisting of a splash stack and an app stack. I have 
> > set 
> > up a script that the user can insert some information into two tables - one 
> > for students and one for adults. These tables are on two different cards in 
> > my app stack. 
> > 
> > I have been testing my standalone on Windows XP where it was installed in 
> > the AllUsersAppData directory using an installer program.  I tried the 
> > following script for the card that has the student list: 
> > 
> > on closeCard 
> >Save "School Report" as "\Documents and Settings\All Users\Application 
> > Data" 
> > end closeCard 
> > 
> > But this does not save the data in the two tables!  Any suggestions would 
> > be 
> > greatly appreciated!
> 
> When the unexpected happens, it's time for error-checking.   One of the 
> challenges of crafting apps is that when you're being diligent only 
> about half your code will actually do what your app does, and the other 
> half will be all the stuff you add to account for when things go wrong. :) 
> 
> In Rev, most error conditions are reported in "the result" immediately 
> after a command fails, and for I/O and other system-related tasks you 
> may find an additional OS-supplied error code using the sysError function. 
> 
> So to better understand what's happening there you may try adding that 
> to your script. 
> 
> Also, by hard-wiring your paths they won't work on international systems 
> where the spelling may differ, and may not survive changes to the OS if 
> MS changes the names of those folders in a future version. 
> 
> The solution for that is Rev's specialFolderPath function.  Rev provides 
> a variety of constants you can pass to that function to get the path, 
> and pretty much all OS constants provided by the OS vendor can be used 
> as well -- Ken Ray's put together this comprehensive list: 
> <http://sonsothunder.com/devres/revolution/tips/file010.htm> 
> 
> While Rev doesn't include a built-in constant for that, looking at Ken's 
> list you can use the OS constant instead, which is "35". 
> 
> If you want that to be cross-platform you can use Ken's list to get the 
> Application Support constant for OS X, but for now here's your code 
> modified with specialFolderPath and including the error check which will 
> hopefully help diagnose the issue. 
> 
> A ha!  As I was rewriting your code I noticed that you're specifying 
> only the folder and not the file name, so effectively you're asking Rev 
> to try to turn the stack into a folder, which of course it can't do. 
> The fix for that is included in this revision: 
> 
> on closeCard 
> Save "School Report" as (specialFolderPath(35)&"/School Report.rev") 
> if the result is not empty then 
>answer error "An error occurred while saving the report: "&cr&\ 
>   the result & "("& sysError() &")" 
>  end if 
> end closeCard 
> 
> Note that the ".rev" extension can be changed to anything else you feel 
> might be appropriate for your app. Rev opens stacks based on their 
> internal stucture, and a standalone is not required to use the .rev file 
> name extension to work with stack files, allowing you to define your own 
> document types. 
> 
> If you want to use a custom file name extension you may want to check 
> <http://filext.com/> to see if another program may be using it.  That's 
> not a comprehensive list (Microsoft doesn't maintain such an index), but 
> it'll at least help avoid some of the more obvious conflicts. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314948.html
>  
> To unsubscribe from Saving data in List Magic tables, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315052.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Richard,

What is the best location for an app to be installed on OSX?

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 10:35 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
> > I have a standalone consisting of a splash stack and an app stack. I have 
> > set 
> > up a script that the user can insert some information into two tables - one 
> > for students and one for adults. These tables are on two different cards in 
> > my app stack. 
> > 
> > I have been testing my standalone on Windows XP where it was installed in 
> > the AllUsersAppData directory using an installer program.  I tried the 
> > following script for the card that has the student list: 
> > 
> > on closeCard 
> >Save "School Report" as "\Documents and Settings\All Users\Application 
> > Data" 
> > end closeCard 
> > 
> > But this does not save the data in the two tables!  Any suggestions would 
> > be 
> > greatly appreciated!
> 
> When the unexpected happens, it's time for error-checking.   One of the 
> challenges of crafting apps is that when you're being diligent only 
> about half your code will actually do what your app does, and the other 
> half will be all the stuff you add to account for when things go wrong. :) 
> 
> In Rev, most error conditions are reported in "the result" immediately 
> after a command fails, and for I/O and other system-related tasks you 
> may find an additional OS-supplied error code using the sysError function. 
> 
> So to better understand what's happening there you may try adding that 
> to your script. 
> 
> Also, by hard-wiring your paths they won't work on international systems 
> where the spelling may differ, and may not survive changes to the OS if 
> MS changes the names of those folders in a future version. 
> 
> The solution for that is Rev's specialFolderPath function.  Rev provides 
> a variety of constants you can pass to that function to get the path, 
> and pretty much all OS constants provided by the OS vendor can be used 
> as well -- Ken Ray's put together this comprehensive list: 
> <http://sonsothunder.com/devres/revolution/tips/file010.htm> 
> 
> While Rev doesn't include a built-in constant for that, looking at Ken's 
> list you can use the OS constant instead, which is "35". 
> 
> If you want that to be cross-platform you can use Ken's list to get the 
> Application Support constant for OS X, but for now here's your code 
> modified with specialFolderPath and including the error check which will 
> hopefully help diagnose the issue. 
> 
> A ha!  As I was rewriting your code I noticed that you're specifying 
> only the folder and not the file name, so effectively you're asking Rev 
> to try to turn the stack into a folder, which of course it can't do. 
> The fix for that is included in this revision: 
> 
> on closeCard 
> Save "School Report" as (specialFolderPath(35)&"/School Report.rev") 
> if the result is not empty then 
>answer error "An error occurred while saving the report: "&cr&\ 
>   the result & "("& sysError() &")" 
>  end if 
> end closeCard 
> 
> Note that the ".rev" extension can be changed to anything else you feel 
> might be appropriate for your app. Rev opens stacks based on their 
> internal stucture, and a standalone is not required to use the .rev file 
> name extension to work with stack files, allowing you to define your own 
> document types. 
> 
> If you want to use a custom file name extension you may want to check 
> <http://filext.com/> to see if another program may be using it.  That's 
> not a comprehensive list (Microsoft doesn't maintain such an index), but 
> it'll at least help avoid some of the more obvious conflicts. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314948.html
>  
> To unsubscribe from Saving data in List Magic tables, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2315009.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Richard,

I check the standalones setting and found for the Mac, .rev is being used. I 
will uncheck that and try using .dat again.

Thanks!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 11:00 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
>  > Regarding the .Rev extension, I had used the extension of .dat for 
>  > a previous app, which consisted of only 8 cards. This was to make 
>  > it harder for someone to try to open the app. The .dat extension 
>  > worked great.  But I was not successfully in using the .dat extension 
>  > with my current project, which consists of 71 cards plus 18 
>  > customized dialogs. I got standalone errors in the exec recognizing 
>  > the app stack. 
> 
> FWIW I use ".dat" often and it seems to work as well as any other file 
> name extension. 
> 
> If the standalone has trouble opening the file there must be something 
> else at play beyond the file name. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314981.html
>  
> To unsubscribe from Saving data in List Magic tables, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314997.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: E-mailing data file

2010-08-05 Thread charles61

Richard,

Thanks and I will check Jacque's tutorial for CGIs!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 11:08 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
>  > Wow!  I really appreciate your suggestions on e-mailing data. 
>  > This is something I hope to add on to my app after it is 
>  > deployed. I don't have any experience with CGI. So thanks again!!! 
> 
> Charles, your life is about to change.  :) 
> 
> Getting started with CGIs can be daunting at first because in many ways 
> it's quite different from writing in a desktop app. 
> 
> But once you get the hang of it and you've ironed out all your 500 
> errors (yes, you'll have them, but most are caused by only three issues 
> so when you encounter 'em just post here and we'll help you sort 'em 
> out) you'll have all sorts of ideas for ways you can use CGIs. 
> 
> Pretty soon you'll be the master of your server, able to have it do your 
> bidding when called from your stacks or your browser.  It'll open many 
> new worlds of discovery and personal achievement. 
> 
> I can't stress enough how helpful Jacque's tutorial is for getting 
> started with CGIs: 
> <http://hyperactivesw.com/cgitutorial/> 
> 
> You're about to have a very good time.  Let us know how it goes. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2314990.html
>  
> To unsubscribe from E-mailing data file, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2314993.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: E-mailing data file

2010-08-05 Thread charles61

Richard,

Wow!  I really appreciate your suggestions on e-mailing data. This is something 
I hope to add on to my app after it is deployed. I don't have any experience 
with CGI. So thanks again!!!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 10:54 AM, Richard Gaskin [via Runtime Revolution] wrote:

> Michael D Mays wrote: 
> 
>  > In a lot of places email is the only way. I have people whose 
>  > parent corporation provides their internet connection. They 
>  > have limited bandwidth and a less than stellar corporate IT. 
>  > Emails of less than a few MB is the only way for them. 
> 
> Unless I misunderstood the original request, this isn't a question of 
> bandwidth but merely of finding a reliable way to send the message. 
> 
> The mailto: protocol is often used for such things, and in many cases 
> will open the user's default email client with a preformatted message 
> ready to send. 
> 
> The problem with mailto is that it's not reliable on Windows systems if 
> there's any risk that the total URL string passed to it may exceed 512 
> characters -- see the first comment at: 
>  
> 
> Complicating things further, this limit appears to vary between 
> different versions of Windows and/or Outlook (I've seen some systems 
> where lengths up to 2048 are accepted, but even that's kinda small for 
> sending logs). 
> 
> When that limit is exceeded, in most cases (but again, this is not 
> consistently implemented) the OS will simply fail to open the client at all. 
> 
> Faced with that unpredictable limit, mailto is only useful on Windows 
> when you know the message will be very short. 
> 
> So instead, we need to explore other options, and CGI is a great one. 
> 
> With a CGI you use the same bandwidth, since the message isn't any 
> longer regardless how it's sent. 
> 
> But using a CGI to handle the message you no longer give up control over 
> the message length, provided you send it with POST rather than GET 
> (well, technically speaking some hosts may impose limits on POST data 
> length, but usually those limits are so large they won't come into play 
> for most common uses). 
> 
> In fact, using a CGI you can send the same message in much a smaller 
> data chunk using Rev's built-in gzip compression: 
> 
> post compress(tMyData) to url "http://mydomain.com/cgi-bin/myscript.cgi"; 
> 
> Gzip compression works wonders on text, often reducing its length by as 
> much as 40% and sometimes as high as 70% depending on the content. 
> 
> On the receiving end, the CGI script can get the POST data, run it 
> through Rev's decompress function, and either email it to you, or write 
> it to a file you can pick up with FTP, or any number of other options. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2314969.html
>  
> To unsubscribe from E-mailing data file, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2314978.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Klaus,

I appreciate your comments along with Richard's. Thanks so much!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 10:47 AM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> additionally to Richard's answer, plese see my coments below your code. 
> 
> > I have a standalone consisting of a splash stack and an app stack. I have 
> > set 
> > up a script that the user can insert some information into two tables - one 
> > for students and one for adults. These tables are on two different cards in 
> > my app stack. 
> > 
> > I have been testing my standalone on Windows XP where it was installed in 
> > the AllUsersAppData directory using an installer program.  I tried the 
> > following script for the card that has the student list: 
> > 
> > on closeCard 
> >   Save "School Report" as "\Documents and Settings\All Users\Application 
> > Data" 
> > end closeCard
> 
> 1. You only provide the STRING "School report" to the SAVE command! 
> Probably you mean "save STACK "School report..."? 
> 
> 2. You only provided the target FOLDER and no filename! 
> Hint: specialfolderpath(35) will give you that folder on all win versions! 
> ... 
> save STACK "School report" as (specialfolderpath(35) & "/" & "School 
> report.rev" 
> ## Richards debug code here... 
> ... 
> 
> Hope that helps. 
> 
> > But this does not save the data in the two tables!  Any suggestions would 
> > be 
> > greatly appreciated! 
> 
> Best 
> 
> Klaus 
> 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314959.html
>  
> To unsubscribe from Saving data in List Magic tables, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314966.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: Saving data in List Magic tables

2010-08-05 Thread charles61

Richard,

Thanks for pointing out my mistake and how to correct it! I was using Rev's 
Dictionary examples. And I agree with your comments about crafting an app! 

Regarding the .Rev extension, I had used the extension of .dat for a previous 
app, which consisted of only 8 cards. This was to make it harder for someone to 
try to open the app. The .dat extension worked great.  But I was not 
successfully in using the .dat extension with my current project, which 
consists of 71 cards plus 18 customized dialogs. I got standalone errors in the 
exec recognizing the app stack.

Thanks so much!!

Charles Szasz
csz...@mac.com




On Aug 5, 2010, at 10:35 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
> > I have a standalone consisting of a splash stack and an app stack. I have 
> > set 
> > up a script that the user can insert some information into two tables - one 
> > for students and one for adults. These tables are on two different cards in 
> > my app stack. 
> > 
> > I have been testing my standalone on Windows XP where it was installed in 
> > the AllUsersAppData directory using an installer program.  I tried the 
> > following script for the card that has the student list: 
> > 
> > on closeCard 
> >Save "School Report" as "\Documents and Settings\All Users\Application 
> > Data" 
> > end closeCard 
> > 
> > But this does not save the data in the two tables!  Any suggestions would 
> > be 
> > greatly appreciated!
> 
> When the unexpected happens, it's time for error-checking.   One of the 
> challenges of crafting apps is that when you're being diligent only 
> about half your code will actually do what your app does, and the other 
> half will be all the stuff you add to account for when things go wrong. :) 
> 
> In Rev, most error conditions are reported in "the result" immediately 
> after a command fails, and for I/O and other system-related tasks you 
> may find an additional OS-supplied error code using the sysError function. 
> 
> So to better understand what's happening there you may try adding that 
> to your script. 
> 
> Also, by hard-wiring your paths they won't work on international systems 
> where the spelling may differ, and may not survive changes to the OS if 
> MS changes the names of those folders in a future version. 
> 
> The solution for that is Rev's specialFolderPath function.  Rev provides 
> a variety of constants you can pass to that function to get the path, 
> and pretty much all OS constants provided by the OS vendor can be used 
> as well -- Ken Ray's put together this comprehensive list: 
> <http://sonsothunder.com/devres/revolution/tips/file010.htm> 
> 
> While Rev doesn't include a built-in constant for that, looking at Ken's 
> list you can use the OS constant instead, which is "35". 
> 
> If you want that to be cross-platform you can use Ken's list to get the 
> Application Support constant for OS X, but for now here's your code 
> modified with specialFolderPath and including the error check which will 
> hopefully help diagnose the issue. 
> 
> A ha!  As I was rewriting your code I noticed that you're specifying 
> only the folder and not the file name, so effectively you're asking Rev 
> to try to turn the stack into a folder, which of course it can't do. 
> The fix for that is included in this revision: 
> 
> on closeCard 
> Save "School Report" as (specialFolderPath(35)&"/School Report.rev") 
> if the result is not empty then 
>answer error "An error occurred while saving the report: "&cr&\ 
>   the result & "("& sysError() &")" 
>  end if 
> end closeCard 
> 
> Note that the ".rev" extension can be changed to anything else you feel 
> might be appropriate for your app. Rev opens stacks based on their 
> internal stucture, and a standalone is not required to use the .rev file 
> name extension to work with stack files, allowing you to define your own 
> document types. 
> 
> If you want to use a custom file name extension you may want to check 
> <http://filext.com/> to see if another program may be using it.  That's 
> not a comprehensive list (Microsoft doesn't maintain such an index), but 
> it'll at least help avoid some of the more obvious conflicts. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> __

Saving data in List Magic tables

2010-08-05 Thread charles61

I have a standalone consisting of a splash stack and an app stack. I have set
up a script that the user can insert some information into two tables - one
for students and one for adults. These tables are on two different cards in
my app stack. 

I have been testing my standalone on Windows XP where it was installed in
the AllUsersAppData directory using an installer program.  I tried the
following script for the card that has the student list:

on closeCard
   Save "School Report" as "\Documents and Settings\All Users\Application
Data"
end closeCard

But this does not save the data in the two tables!  Any suggestions would be
greatly appreciated!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Saving-data-in-List-Magic-tables-tp2314915p2314915.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: E-mailing data file

2010-08-05 Thread charles61

Thanks to everyone for your suggestions!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2314908.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: E-mailing data file

2010-08-04 Thread charles61

Richard,

The only problem is that I am dealing with individual computers running the 
program and not a server. Any other ideas?

Charles Szasz
csz...@mac.com




On Aug 4, 2010, at 10:07 AM, Richard Gaskin [via Runtime Revolution] wrote:

> charles61 wrote: 
> 
> > I created an app that generates a data file.  The files are saved on the 
> > user's hard drive.  I want to add an e-mail button that would allow the 
> > user 
> > to send the file by e-mail by selecting the file within the app to send to 
> > another person who is using my program.  How can I do that? 
> 
> Many people would recommend using mailto.  Don't count on it.  Microsoft 
> has imposed a limit on the length of URLs used with that protocol; it's 
> short, and varies from release to release, making the use of mailto for 
> setting up emails on Windows unreliable unless you know your 
> email+attachment will be very short. 
> 
> I would use a CGI on the server, and post the file to that, which could 
> then email it to you.  You can even compress the data using the built-in 
> compress function to make the transfer much sorter. 
> 
> It's a bit more work to set up a CGI, but well worth it:  once you get 
> comfortable with CGIs a very large universe of possibilities opens up to 
> you. 
> 
> The basics of getting started with the Rev CGI are here: 
> <http://www.hyperactivesw.com/cgitutorial/> 
> 
> If you get going and have any trouble working out the email part of it, 
> drop a note here and we'll sort it out for you. 
> 
> -- 
>   Richard Gaskin 
>   Fourth World 
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2313496.html
>  
> To unsubscribe from E-mailing data file, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2313565.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


E-mailing data file

2010-08-04 Thread charles61

I created an app that generates a data file.  The files are saved on the
user's hard drive.  I want to add an e-mail button that would allow the user
to send the file by e-mail by selecting the file within the app to send to
another person who is using my program.  How can I do that?  
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/E-mailing-data-file-tp2313404p2313404.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: A real problem with Prefs!!

2010-08-03 Thread charles61

Hi Mark,

I tried your suggestion and it works on both my windows and mac apps!!

Here is my revised stack script of my app stack:

on preOpenStack
   set the loc of this stack to the screenloc
   loadPrefs
end preOpenStack

on loadPrefs pFilename
   local tPrefs
   
   --   put url ("binfile:" & pFilename) into tPrefs
   IF the platform is "MacOS" then 
  if there is a file (specialFolderPath(26) & "/" & "S504_prefs") then
 put url ("binfile:" & specialFolderPath("preferences") & "/" &
"S504_prefs") into tPrefs
 
 put arrayDecode(tPrefs) into tPrefs

 -- now fill in all my data...
 put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs"
 put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs"
 put tPrefs["email"] into field "email" of card id 1002 of stack
"prefs"
  end if
   end if
   
   IF the platform is "win32" then
  if there is a file (specialFolderPath(26) & "/" & "S504_prefs") then 
 put url ("binfile:" & specialFolderPath(26) & "/" & "S504_prefs")
into tPrefs
 
 put arrayDecode(tPrefs) into tPrefs

 -- now fill in all my data...
 put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs"
 put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs"
 put tPrefs["email"] into field "email" of card id 1002 of stack
"prefs"
  end if
   end if
   
end loadPrefs

Please feel free to make any additional comments. This is my first app that
employs a prefs stack. My experience with this have been frustrating at time
but invaluable for future apps. I am posting this code so that it will be
helpful to others.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2311755.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: A real problem with Prefs!!

2010-08-03 Thread charles61

Mark,

Thanks for your suggestion. Here is what I am trying to do. My app has a
preferences for the user to complete. It includes the name of the user,
telephone number and e-mail address that are used on a couple of cards as
part of a document that is later printed out. When the app is first
launched, the preferences are empty, waiting to be filled by the user. I
will try your suggestion! Again thanks for your time!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2311653.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: A real problem with Prefs!!

2010-08-02 Thread charles61

Hi Mark!

I had that code in the actual Prefs stack but not in my app stack script. If I 
put the following:

put tPrefs into url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs") 

before loadPrefs in app stack script I should be okay?

Charles Szasz
csz...@mac.com




On Aug 2, 2010, at 9:02 PM, Mark Wieder [via Runtime Revolution] wrote:

> put tPrefs into url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs") 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2311185.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


A real problem with Prefs!!

2010-08-02 Thread charles61

I successful finished testing my app within the IDE. I created a standalone
and then launched it on Windows XP. I got the following error message from
the Bug Report as an email:

Object: stack 'C:/Documents and Settings/All Users/Application
Data/MyProduct/S504.rev'
Line Num: 65
Hint: loadPrefs

I dismissed the error report. I went ahead and ran my program. I opened the
prefs and created a pref file. The next time I launched my program, I did
not get the error report above. So, apparently the program is looking for a
nonexistent Prefs file and when it doesn't find it I get the error report.

Here is my stack script:

on preOpenStack
   loadPrefs
end preOpenStack

on loadPrefs pFilename
   local tPrefs
   --   put url ("binfile:" & pFilename) into tPrefs
   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs") into
tPrefs
   end if
   
   put arrayDecode(tPrefs) into tPrefs
   
   put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs"
   put tPrefs["school"] into field "school" of card "referral" of stack
"S504"
   put tPrefs["school"] into field "site" of card "adult" of stack "S504"
   
   put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs"
   put tPrefs["contact"] into field "contact" of card "letter" of stack
"S504"
   put tPrefs["contact"] into field "contact" of card "adult letter" of
stack "S504"
   
end loadPrefs

I thought that the code:
put url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs") into tPrefs

created a folder named 504_Prefs

What am I missing here?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-real-problem-with-Prefs-tp2311179p2311179.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: Unique problem

2010-07-27 Thread charles61

Mark,

That looks like a way to handle this problem. Where this handler go?

Charles Szasz
csz...@mac.com




On Jul 27, 2010, at 1:34 PM, Mark Swindell [via Runtime Revolution] wrote:

> I'm not sure I'm following the structure of all you're doing, but would 
> something like this work? 
> 
> on enableMe — at cd script level (or higher if it is to be used on various 
> cards) 
>   mark this card 
>   enable menuItem 1 of button "File" of group "menubar 1" -->Student 
>   disable menuItem 2 of button "File" of group "menubar 1" -->Adult 
>   enable menuItem 3 of button "File" of group "menubar 1" -->Student 
>   disable menuItem 4 of button "File" of group "menubar 1" -->Adult 
>   enable menuItem 5 of button "File" of group "menubar 1" -->Student 
>   disable menuItem 6 of button "File" of group "menubar 1" -->Adult 
> end enableMe 
> 
> on opencard 
> send "enableMe" to this card 
> end openCard 
> 
> -Mark 
> 
> On Jul 27, 2010, at 10:16 AM, charles61 wrote: 
> 
> > 
> > I have developed an app that deals with student files and adult files. When 
> > the user goes to the student section, the file menu items for adults is 
> > disabled. And, when the user goes to the adult section, the file menu items 
> > for students is disabled. I set up my app like so that the user would not 
> > be 
> > able to create a student file and then save it by accident as an adult file 
> > and visa vera. 
> > 
> > Here is my unique problem: When I save a student file and then later 
> > reopened it in the student section of the app, the adult menus items are 
> > not 
> > disabled. I used a preOpenCard handler: 
> > 
> > on preopenCard 
> >   mark this card 
> >   enable menuItem 1 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 2 of button "File" of group "menubar 1" -->Adult 
> >   enable menuItem 3 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 4 of button "File" of group "menubar 1" -->Adult 
> >   enable menuItem 5 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 6 of button "File" of group "menubar 1" -->Adult 
> > end preopenCard 
> > 
> > I understand why the script doesn't work because I am not opening a card 
> > when I open a file. This is verified when I go back through the file and 
> > then come back to the card. The menuitems are disabled as expected.  I 
> > don't 
> > have a clue how to handle this problem! So, script suggestions will be 
> > welcomed with open arms! 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303870.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303889.html
>  
> To unsubscribe from Unique problem, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303901.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: Unique problem

2010-07-27 Thread charles61

Hi Bob,

That is a good idea but I don't know how to script this in the open file menu. 

Charles Szasz
csz...@mac.com




On Jul 27, 2010, at 1:35 PM, Bob Sneidar-2 [via Runtime Revolution] wrote:

> Make the student files only accessible after going to the student section of 
> the app. Do the same for the Adult files. (I assume you mean "Teachers"). 
> 
> Barring that, does your app actually do the opening? Then create a command 
> that opens the file, determines if it is a student or "adult" file, and sets 
> the menu's accordingly. 
> 
> Without actually seeing the app, that's all I can offer. I don't think there 
> is a system message that gets fired off when you open a file. 
> 
> Bob 
> 
> 
> On Jul 27, 2010, at 10:16 AM, charles61 wrote: 
> 
> > 
> > I have developed an app that deals with student files and adult files. When 
> > the user goes to the student section, the file menu items for adults is 
> > disabled. And, when the user goes to the adult section, the file menu items 
> > for students is disabled. I set up my app like so that the user would not 
> > be 
> > able to create a student file and then save it by accident as an adult file 
> > and visa vera. 
> > 
> > Here is my unique problem: When I save a student file and then later 
> > reopened it in the student section of the app, the adult menus items are 
> > not 
> > disabled. I used a preOpenCard handler: 
> > 
> > on preopenCard 
> >   mark this card 
> >   enable menuItem 1 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 2 of button "File" of group "menubar 1" -->Adult 
> >   enable menuItem 3 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 4 of button "File" of group "menubar 1" -->Adult 
> >   enable menuItem 5 of button "File" of group "menubar 1" -->Student 
> >   disable menuItem 6 of button "File" of group "menubar 1" -->Adult 
> > end preopenCard 
> > 
> > I understand why the script doesn't work because I am not opening a card 
> > when I open a file. This is verified when I go back through the file and 
> > then come back to the card. The menuitems are disabled as expected.  I 
> > don't 
> > have a clue how to handle this problem! So, script suggestions will be 
> > welcomed with open arms! 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303870.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303890.html
>  
> To unsubscribe from Unique problem, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303898.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


Unique problem

2010-07-27 Thread charles61

I have developed an app that deals with student files and adult files. When
the user goes to the student section, the file menu items for adults is
disabled. And, when the user goes to the adult section, the file menu items
for students is disabled. I set up my app like so that the user would not be
able to create a student file and then save it by accident as an adult file
and visa vera. 

Here is my unique problem: When I save a student file and then later
reopened it in the student section of the app, the adult menus items are not
disabled. I used a preOpenCard handler:

on preopenCard
   mark this card
   enable menuItem 1 of button "File" of group "menubar 1" -->Student
   disable menuItem 2 of button "File" of group "menubar 1" -->Adult
   enable menuItem 3 of button "File" of group "menubar 1" -->Student
   disable menuItem 4 of button "File" of group "menubar 1" -->Adult
   enable menuItem 5 of button "File" of group "menubar 1" -->Student
   disable menuItem 6 of button "File" of group "menubar 1" -->Adult
end preopenCard

I understand why the script doesn't work because I am not opening a card
when I open a file. This is verified when I go back through the file and
then come back to the card. The menuitems are disabled as expected.  I don't
have a clue how to handle this problem! So, script suggestions will be
welcomed with open arms!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unique-problem-tp2303870p2303870.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: Unable to get saved preferences file into a standalone at launched

2010-07-24 Thread charles61

Mike,

Thanks for your explanation and suggestion. I will take a look at this and see 
what modifications I need to make it work. Thanks again!

Charles Szasz
csz...@mac.com




On Jul 24, 2010, at 11:58 AM, Mike Bonner [via Runtime Revolution] wrote:

> After glancing through your description of the problem, I believe you 
> gave yourself the answer.  You said that when you launch your app, the 
> prefs aren't loaded until you manually open and then close the prefs 
> stack. This is because you have the call to do so in the prefs stack 
> itself and unless you open it, the preopenstack handler in it doesn't 
> fire.  You open the prefs stack, and viola' it fires and everything is 
> peachy. 
> 
> I'm not sure its the best way, but if you have a preopenstack handler 
> in your app stack, and have it check for a preferences file and do the 
> load itself, then the problem should be solved.  If the preferences 
> file doesn't exist, load the preferences stack, get the user to fill 
> it in, and when the prefs are saved, tell the appstack to try and 
> reload the preferences file. 
> 
> On Sat, Jul 24, 2010 at 8:33 AM, charles61 <[hidden email]> wrote:
> 
> > 
> > I have two stacks: a splash and an app stack (S504). I have a stack "prefs" 
> > which is part of the app stack. The Prefs stack is not moved out as a 
> > separate stack when the standalone is made. I used an installer to install 
> > my program in the AllUsersAppData directory for windows Xp. 
> > 
> > When I run the installed Window app, I open the Prefs stack and entered 
> > information into six fields: myCounty, school system, site, agent, contact 
> > and email. I closed the Prefs stack and then quit my app. When I relaunched 
> > my app, the fields cited above are not filled in my app. But I open the 
> > Prefs stack, the fields are filled in. When I closed the Prefs stack, then 
> > the fields in my app are filled. 
> > 
> > I would appreciate suggestions on how I can get my preferences into my app! 
> > 
> > I have the following script in my Prefs stack: 
> > 
> > on preOpenStack 
> >   set the loc of me to the loc of stack "S504" 
> >   loadPrefs 
> > end preOpenStack 
> > 
> > on closeStack 
> >   saveprefs 
> > end closeStack 
> > 
> > on loadPrefs pFilename 
> >   local tPrefs 
> > 
> >   --   put url ("binfile:" & pFilename) into tPrefs 
> >   IF the platform is "MacOS" 
> >   then 
> >  put url ("binfile:" & specialFolderPath("preferences") & "/" & 
> > "S504_prefs") into tPrefs 
> >   end if 
> > 
> >   IF the platform is "win32" 
> >   then 
> >  put url ("binfile:" & specialFolderPath(26) & "/" & "S504_prefs") into 
> > tPrefs 
> >   end if 
> > 
> >   put arrayDecode(tPrefs) into tPrefs 
> > 
> >   -- now fill in all my data... 
> >   put tPrefs["county"] into field "myCounty" of card id 1002 of stack 
> > "prefs" 
> >   put tPrefs["county"] into field "school system" of card "referral" of 
> > stack "S504" 
> >   --   put tPrefs["county"] into field "site" of card "adult" of stack 
> > "S504" 
> > 
> >   put tPrefs["school"] into field "mySchool" of card id 1002 of stack 
> > "prefs" 
> >   put tPrefs["school"] into field "school" of card "referral" of stack 
> > "S504" 
> >   put tPrefs["school"] into field "site" of card "adult" of stack "S504" 
> > 
> >   put tPrefs["agent"] into field "agent" of card id 1002 of stack "prefs" 
> >   put tPrefs["agent"] into field "agent" of card "letter" of stack "S504" 
> >   put tPrefs["agent"] into field "agent" of card "adult letter" of stack 
> > "S504" 
> > 
> >   put tPrefs["contact"] into field "contact" of card id 1002 of stack 
> > "prefs" 
> >   put tPrefs["contact"] into field "contact" of card "letter" of stack 
> > "S504" 
> >   put tPrefs["contact"] into field "contact" of card "adult letter" of 
> > stack "S504" 
> > 
> >   put tPrefs["email"] into field "email" of card 

Re: Unable to save prefs in Windows/Mac standalones

2010-07-24 Thread charles61

Richmond,

The prefs appear in the Prefs stack of the standalone but they do not appear in 
the app itself. I am puzzled why they do not appear in the app.

Charles Szasz
csz...@mac.com




On Jul 24, 2010, at 11:45 AM, Richmond Mathewson-2 [via Runtime Revolution] 
wrote:

> On 07/24/2010 05:31 PM, charles61 wrote: 
> > Richmond, 
> > 
> > Apparently you only read the header of my posting and my script. I am NOT 
> > saving preferences in a standalone. If you look at my script you will see 
> > that I am trying to save my preferences as a separate file. The Preferences 
> > are read into the program each time it is launched. With this in mind, do 
> > you have any suggestions? 
> > 
> I;m sorry; I don't know what made me think you were 
> saving prefs from a standalone. 
> 
> Notwithstanding, I cannot see anything intrinsically wrong 
> with saving to a TAB-delimited text file. 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Unable-to-save-prefs-in-Windows-Mac-standalones-tp2298911p2301126.html
>  
> To unsubscribe from Re: Unable to save prefs in Windows/Mac standalones, 
> click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-save-prefs-in-Windows-Mac-standalones-tp2298911p2301135.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


Unable to get saved preferences file into a standalone at launched

2010-07-24 Thread charles61

I have two stacks: a splash and an app stack (S504). I have a stack "prefs"
which is part of the app stack. The Prefs stack is not moved out as a
separate stack when the standalone is made. I used an installer to install
my program in the AllUsersAppData directory for windows Xp. 

When I run the installed Window app, I open the Prefs stack and entered
information into six fields: myCounty, school system, site, agent, contact
and email. I closed the Prefs stack and then quit my app. When I relaunched
my app, the fields cited above are not filled in my app. But I open the
Prefs stack, the fields are filled in. When I closed the Prefs stack, then
the fields in my app are filled. 

I would appreciate suggestions on how I can get my preferences into my app! 

I have the following script in my Prefs stack: 

on preOpenStack 
   set the loc of me to the loc of stack "S504" 
   loadPrefs 
end preOpenStack 

on closeStack 
   saveprefs 
end closeStack 

on loadPrefs pFilename 
   local tPrefs 

   --   put url ("binfile:" & pFilename) into tPrefs 
   IF the platform is "MacOS" 
   then 
  put url ("binfile:" & specialFolderPath("preferences") & "/" &
"S504_prefs") into tPrefs 
   end if 

   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26) & "/" & "S504_prefs") into
tPrefs 
   end if 

   put arrayDecode(tPrefs) into tPrefs 

   -- now fill in all my data... 
   put tPrefs["county"] into field "myCounty" of card id 1002 of stack
"prefs" 
   put tPrefs["county"] into field "school system" of card "referral" of
stack "S504" 
   --   put tPrefs["county"] into field "site" of card "adult" of stack
"S504" 

   put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs" 
   put tPrefs["school"] into field "school" of card "referral" of stack
"S504" 
   put tPrefs["school"] into field "site" of card "adult" of stack "S504" 

   put tPrefs["agent"] into field "agent" of card id 1002 of stack "prefs" 
   put tPrefs["agent"] into field "agent" of card "letter" of stack "S504" 
   put tPrefs["agent"] into field "agent" of card "adult letter" of stack
"S504" 

   put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs" 
   put tPrefs["contact"] into field "contact" of card "letter" of stack
"S504" 
   put tPrefs["contact"] into field "contact" of card "adult letter" of
stack "S504" 

   put tPrefs["email"] into field "email" of card id 1002 of stack "prefs" 
   put tPrefs["email"] into field "email" of card "letter" of stack "S504" 
   put tPrefs["email"] into field "email" of card "adult letter" of stack
"S504" 
end loadPrefs 

on savePrefs pFilename 
   local tPrefs 

   --Fill in all of my data 
   put field "myCounty" into tPrefs["county"] 
   put field "mySchool" into tPrefs["school"] 
   put field "agent" into tPrefs["agent"] 
   put field "contact" into tPrefs["contact"] 
   put field "email" into tPrefs["email"] 

   IF the platform is "MacOS" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" &
specialFolderPath("preferences") & "/" & "S504_prefs") 

   end if 

   IF the platform is "win32" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" & specialFolderPath(26) &
"/" & "S504_prefs") 

   end if 

end savePrefs 
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-get-saved-preferences-file-into-a-standalone-at-launched-tp2301100p2301100.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: Unable to save prefs in Windows/Mac standalones

2010-07-24 Thread charles61

Richmond,

Apparently you only read the header of my posting and my script. I am NOT
saving preferences in a standalone. If you look at my script you will see
that I am trying to save my preferences as a separate file. The Preferences
are read into the program each time it is launched. With this in mind, do
you have any suggestions?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-save-prefs-in-Windows-Mac-standalones-tp2298911p2301098.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


Unable to save prefs in Windows/Mac standalones

2010-07-22 Thread charles61

I have two stacks: a splash and an app stack (S504). I have a stack "prefs"
which is part of the app stack. The Prefs stack is not moved out as a
separate stack when the standalone is made. I used an installer to install
my program in the AllUsersAppData directory for windows Xp. 

When I run the installed Window app, I open the Prefs stack and entered
information into six fields: myCounty, school system, site, agent, contact
and email. I closed the Prefs stack and then quit my app. When I relaunched
my app, the fields cited above are not filled in my app. But I open the
Prefs stack, the fields are filled in. When I closed the Prefs stack, then
the fields in my app are filled. 

I would appreciate suggestions on how to correct this problem!

I have the following script in my Prefs stack:

on preOpenStack
   set the loc of me to the loc of stack "S504"
   loadPrefs
end preOpenStack

on closeStack
   saveprefs
end closeStack

on loadPrefs pFilename
   local tPrefs
   
   --   put url ("binfile:" & pFilename) into tPrefs
   IF the platform is "MacOS" 
   then 
  put url ("binfile:" & specialFolderPath("preferences") & "/" &
"S504_prefs") into tPrefs
   end if
   
   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26) & "/" & "S504_prefs") into
tPrefs
   end if
   
   put arrayDecode(tPrefs) into tPrefs
   
   -- now fill in all my data...
   put tPrefs["county"] into field "myCounty" of card id 1002 of stack
"prefs"
   put tPrefs["county"] into field "school system" of card "referral" of
stack "S504"
   --   put tPrefs["county"] into field "site" of card "adult" of stack
"S504"
   
   put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs"
   put tPrefs["school"] into field "school" of card "referral" of stack
"S504"
   put tPrefs["school"] into field "site" of card "adult" of stack "S504"
   
   put tPrefs["agent"] into field "agent" of card id 1002 of stack "prefs"
   put tPrefs["agent"] into field "agent" of card "letter" of stack "S504"
   put tPrefs["agent"] into field "agent" of card "adult letter" of stack
"S504"
   
   put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs"
   put tPrefs["contact"] into field "contact" of card "letter" of stack
"S504"
   put tPrefs["contact"] into field "contact" of card "adult letter" of
stack "S504"
   
   put tPrefs["email"] into field "email" of card id 1002 of stack "prefs"
   put tPrefs["email"] into field "email" of card "letter" of stack "S504"
   put tPrefs["email"] into field "email" of card "adult letter" of stack
"S504"
end loadPrefs

on savePrefs pFilename
   local tPrefs
   
   --Fill in all of my data
   put field "myCounty" into tPrefs["county"]
   put field "mySchool" into tPrefs["school"]
   put field "agent" into tPrefs["agent"]
   put field "contact" into tPrefs["contact"]
   put field "email" into tPrefs["email"]
   
   IF the platform is "MacOS" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" &
specialFolderPath("preferences") & "/" & "S504_prefs")
   
   end if
   
   IF the platform is "win32" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" & specialFolderPath(26) &
"/" & "S504_prefs")
   
   end if
   
end savePrefs


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-save-prefs-in-Windows-Mac-standalones-tp2298911p2298911.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


Unable to save prefs in Windows/Mac standalones

2010-07-22 Thread charles61

I have two stacks: a splash and an app stack (S504). I have a stack "prefs"
which is part of the app stack. The Prefs stack is not moved out as a
separate stack when the standalone is made. I used an installer to install
my program in the AllUsersAppData directory for windows Xp. 

When I run the installed Window app, I open the Prefs stack and entered
information into six fields: myCounty, school system, site, agent, contact
and email. I closed the Prefs stack and then quit my app. When I relaunched
my app, the fields cited above are not filled in my app. But I open the
Prefs stack, the fields are filled in. When I closed the Prefs stack, then
the fields in my app are filled. 

I would appreciate suggestions on how to correct this problem!

I have the following script in my Prefs stack:

on preOpenStack
   set the loc of me to the loc of stack "S504"
   loadPrefs
end preOpenStack

on closeStack
   saveprefs
end closeStack

on loadPrefs pFilename
   local tPrefs
   
   --   put url ("binfile:" & pFilename) into tPrefs
   IF the platform is "MacOS" 
   then 
  put url ("binfile:" & specialFolderPath("preferences") & "/" &
"S504_prefs") into tPrefs
   end if
   
   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26) & "/" & "S504_prefs") into
tPrefs
   end if
   
   put arrayDecode(tPrefs) into tPrefs
   
   -- now fill in all my data...
   put tPrefs["county"] into field "myCounty" of card id 1002 of stack
"prefs"
   put tPrefs["county"] into field "school system" of card "referral" of
stack "S504"
   --   put tPrefs["county"] into field "site" of card "adult" of stack
"S504"
   
   put tPrefs["school"] into field "mySchool" of card id 1002 of stack
"prefs"
   put tPrefs["school"] into field "school" of card "referral" of stack
"S504"
   put tPrefs["school"] into field "site" of card "adult" of stack "S504"
   
   put tPrefs["agent"] into field "agent" of card id 1002 of stack "prefs"
   put tPrefs["agent"] into field "agent" of card "letter" of stack "S504"
   put tPrefs["agent"] into field "agent" of card "adult letter" of stack
"S504"
   
   put tPrefs["contact"] into field "contact" of card id 1002 of stack
"prefs"
   put tPrefs["contact"] into field "contact" of card "letter" of stack
"S504"
   put tPrefs["contact"] into field "contact" of card "adult letter" of
stack "S504"
   
   put tPrefs["email"] into field "email" of card id 1002 of stack "prefs"
   put tPrefs["email"] into field "email" of card "letter" of stack "S504"
   put tPrefs["email"] into field "email" of card "adult letter" of stack
"S504"
end loadPrefs

on savePrefs pFilename
   local tPrefs
   
   --Fill in all of my data
   put field "myCounty" into tPrefs["county"]
   put field "mySchool" into tPrefs["school"]
   put field "agent" into tPrefs["agent"]
   put field "contact" into tPrefs["contact"]
   put field "email" into tPrefs["email"]
   
   IF the platform is "MacOS" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" &
specialFolderPath("preferences") & "/" & "S504_prefs")
   
   end if
   
   IF the platform is "win32" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" & specialFolderPath(26) &
"/" & "S504_prefs")
   
   end if
   
end savePrefs


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Unable-to-save-prefs-in-Windows-Mac-standalones-tp2298910p2298910.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: A problem with radio buttons group...

2010-07-13 Thread charles61

Hi Mike!

Thanks for your help! I just finished looking at your suggestions and your 
explanations for it. I see what you are talking about. I changed my script and 
it works just the way I want it to. Thanks again!

Charles Szasz
csz...@mac.com




On Jul 13, 2010, at 6:25 PM, Mike Bonner [via Runtime Revolution] wrote:

> The reason it is behaving this way is you are checking for a false in 
> your case statements. You only really care about which buttons are 
> true.  If you check against false you get a match before the 2nd click 
> because the condition started out as false. 
> 
> Switch your logic around to only check for true/true only.  So for 
> example your second case checks part1a of group part1 is false, simply 
> change the check to group part1b true and you get the correct result 
> of 1b is checked, but don't get any false positives if nothing is 
> chosen. 
> Same for the 3rd case, change both to true checking the opposite 
> button, so would check for part1b true and part2b true. 4th case, 
> check for part2b true as your change there. 
> 
> On Tue, Jul 13, 2010 at 3:34 PM, charles61 <[hidden email]> wrote:
> 
> > 
> > I have two groups of button sets, part1 and part2. Each group has two 
> > buttons: Part1 group: buttons 1a and 1b; and Part2 group: buttons 2a and 
> > 2b. 
> > 
> > The following script is on a single card with the card script setting 
> > groups 
> > of buttons to zero when the user gets to the card. I get the desire effect 
> > of showing a certain message ("noman") when both buttons 1a and 2a are 
> > highlighted or another message ("man") when either button 1b or 2b is 
> > highlighted. 
> > 
> > But here is my problem. Before the user selects a second button from the 
> > second group, I get the message "man" which is not supposed to appear until 
> > both choices are made in the two button groups. How can I correct this 
> > script so that the message is Not shown UNTIL after both buttons are shown? 
> > 
> > switch 
> >  case (hilite of button "part1a" of group "part1" = true and hilite of 
> > button "part2a" of group "part2"  = true) 
> > show field "noman" 
> > hide field "man" 
> > break 
> >  case (hilite of button "part1a" of group "part1" = false and hilite of 
> > button "part2a" of group "part2"  = true) 
> > show field "man" 
> > hide field "noman" 
> > break 
> >  case (hilite of button "part1a" of group "part1" = false and hilite of 
> > button "part2a" of group "part2"  = false) 
> > show field "man" 
> > hide field "noman" 
> > break 
> >  case (hilite of button "part1a" of group "part1"  = true and hilite of 
> > button "part2a" of group "part2"  = false) 
> > show field "man" 
> > hide field "noman" 
> > break 
> >   end switch 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/A-problem-with-radio-buttons-group-tp2288022p2288022.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-revolution mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/A-problem-with-radio-buttons-group-tp2288022p2288055.html
>  
> To unsubscribe from A problem with radio buttons group..., click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-problem-with-radio-buttons-group-tp2288022p2288083.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


A problem with radio buttons group...

2010-07-13 Thread charles61

I have two groups of button sets, part1 and part2. Each group has two
buttons: Part1 group: buttons 1a and 1b; and Part2 group: buttons 2a and 2b. 

The following script is on a single card with the card script setting groups
of buttons to zero when the user gets to the card. I get the desire effect
of showing a certain message ("noman") when both buttons 1a and 2a are
highlighted or another message ("man") when either button 1b or 2b is
highlighted. 

But here is my problem. Before the user selects a second button from the
second group, I get the message "man" which is not supposed to appear until
both choices are made in the two button groups. How can I correct this
script so that the message is Not shown UNTIL after both buttons are shown?

switch
  case (hilite of button "part1a" of group "part1" = true and hilite of
button "part2a" of group "part2"  = true)
 show field "noman"
 hide field "man"
 break
  case (hilite of button "part1a" of group "part1" = false and hilite of
button "part2a" of group "part2"  = true)
 show field "man"
 hide field "noman"
 break
  case (hilite of button "part1a" of group "part1" = false and hilite of
button "part2a" of group "part2"  = false)
 show field "man"
 hide field "noman"
 break
  case (hilite of button "part1a" of group "part1"  = true and hilite of
button "part2a" of group "part2"  = false)
 show field "man"
 hide field "noman"
 break
   end switch
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-problem-with-radio-buttons-group-tp2288022p2288022.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: A problem with this prefers script...

2010-07-07 Thread charles61

I want to thank everyone for their help! I have to go back and review
information on file management. For others who may have this same question
or problem, here is my script for loading prefs:

on loadPrefs pFilename
   local tPrefs
   
   --   put url ("binfile:" & pFilename) into tPrefs
   IF the platform is "MacOS" 
   then 
  put url ("binfile:" & specialFolderPath("preferences") & "/" &
"504_prefs") into tPrefs
   end if
   
   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26) & "/" & "504_prefs") into
tPrefs
   end if

and here is my script for saving my prefs file:

IF the platform is "MacOS" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" &
specialFolderPath("preferences") & "/" & "504_prefs")
   end if
   
   IF the platform is "win32" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" & specialFolderPath(26) &
"/" & "504_prefs")
   end if
   
Again, thanks to everyone for their help!
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-problem-with-this-prefers-script-tp2281250p2281473.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: A problem with this prefers script...

2010-07-07 Thread charles61

Klaus,

Thank! I understand now that I left out the name of the file. But what is the 
suffix at the end of "your_prefs_file.prf"?

Charles Szasz
csz...@mac.com




On Jul 7, 2010, at 1:42 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi Charles, 
> 
> > 
> > I am trying to set up a preference file. I have two stacks - a splash stack 
> > and an app stack. The Prefs stack is a substack of the app stack and is not 
> > a separate stack I trying to use the url and binfile with specialfolder to 
> > set up my preference file in the appropriate place for windows 
> > (specialFolderPath(26) ) and mac (specialFolderPath("preferences")). 
> 
> These functions will only return a path to a FOLDER, 
> as the name "specialFOLDERpath" suggests! 
> You have to provide a filename, too! 
> 
> Like: 
> ... 
> specialFolderPath(26) & "/" & "your_prefs_file.prf" 
> ... 
> 
> > 
> > I am getting an error message for   
> > ... 
> 
> See above "binfile:..." requires a filename but you only supply a FOLDER. 
> 
> 
> Best 
> 
> Klaus 
> 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/A-problem-with-this-prefers-script-tp2281250p2281266.html
>  
> To unsubscribe from A problem with this prefers script..., click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-problem-with-this-prefers-script-tp2281250p2281445.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


A problem with this prefers script...

2010-07-07 Thread charles61

I am trying to set up a preference file. I have two stacks - a splash stack
and an app stack. The Prefs stack is a substack of the app stack and is not
a separate stack I trying to use the url and binfile with specialfolder to
set up my preference file in the appropriate place for windows
(specialFolderPath(26) ) and mac (specialFolderPath("preferences")).

I am getting an error message for  

put arrayDecode(tPrefs) into tPrefs

in the following script for the Prefs stack when I select Preferences from
the menu of my app during the run mode:

on preOpenStack
   set the loc of me to the loc of stack "S504"
   loadPrefs
end preOpenStack

on closeStack
   saveprefs
end closeStack

on loadPrefs pFilename
   local tPrefs
   
   IF the platform is "MacOS"   > I added this to retrieve the prefs
file for both Mac and Windows
   then 
  put url ("binfile:" & specialFolderPath("preferences")) into tPrefs 
   end if
   
   IF the platform is "win32" 
   then 
  put url ("binfile:" & specialFolderPath(26)) into tPrefs  
   end if
   
   put arrayDecode(tPrefs) into tPrefs > This is being being
flagged when I select Prefs from the menu in the run mode.
   
   -- Fill in all prefs data...
   put tPrefs["Myschool"] into field "MySchool"
   put tPrefs["Myschool"] into field "school system" of card "referral" of
stack "S504"
   put tPrefs["agent"] into field "agent"
   put tPrefs["agent"] into field "agent" of card "letter" of stack "S504"
   put tPrefs["agent"] into field "agent" of card "adult letter" of stack
"S504"
   put tPrefs["contact"] into field "contact"
   put tPrefs["contact"] into field "contact" of card "letter" of stack
"S504"
   put tPrefs["contact"] into field "contact" of card "adult letter" of
stack "S S504"
   put tPrefs["email"] into field "email"
   put tPrefs["email"] into field "email" of card "letter" of stack "S504"
   put tPrefs["email"] into field "email" of card "adult letter" of stack
"S504"
end loadPrefs

on savePrefs pFilename
   local tPrefs
   
   --fill in all of my data
   put field "mySchool" into tPrefs["school name"]
   put field "agent" into tPrefs["agent"]
   put field "contact" into tPrefs["contact"]
   put field "email" into tPrefs["email"]
   
   IF the platform is "MacOS" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" &
specialFolderPath("preferences")) --> I added this to save the prefs file
for Mac
   end if
   
   IF the platform is "win32" 
   then 
  put arrayEncode(tPrefs) into url ("binfile:" & specialFolderPath(26))
---> I added this to save the prefs file for Windows
   end if
   
end savePrefs

I would appreciate any help I can get on this script! This is my first
endeavor with using an array, binfile and specialFolderpath!

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-problem-with-this-prefers-script-tp2281250p2281250.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


New Window App allows programming for iPhone!

2010-07-07 Thread charles61

I just came across a link to a new Windows program, DragonFireSDK, that
allows Windows users to program for the iPhone without using Apple's SDK. I
believe the program sells for $49. I went to the site last night but did not
write down the details. I tried to go to the site a moment ago to confirm
the price but I could not access it. I guess the site may be getting a lot
of hits today! 
DragonFireSDK includes a cross-platform library and an iPhone simulator. The
program uses C/C++ language. Here is the link: http://www.dragonfiresdk.com/
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/New-Window-App-allows-programming-for-iPhone-tp2280996p2280996.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: App deployment on Windows

2010-07-03 Thread charles61

Richmond

I am concern about the location of the installation because of the 
virtualization that Vista and Windows 7 employs. 

Charles Szasz
csz...@mac.com




On Jul 3, 2010, at 1:33 PM, Richmond Mathewson-2 [via Runtime Revolution] wrote:

> On 07/03/2010 07:49 PM, charles61 wrote: 
> > What are the standard locations for deploying ann app on Windows XP, Vista 
> > and Windows 7? 
> > 
> 
> My experience tells me that a standard location is not strictly necessary; 
> and, knowing that, I wonder why you would go to quite complicated 
> lengths to make sure your app is installed in a standard location. 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/App-deployment-on-Windows-tp2277320p2277344.html
>  
> To unsubscribe from App deployment on Windows, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/App-deployment-on-Windows-tp2277320p2277345.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: App deployment on Windows

2010-07-03 Thread charles61

Mark

Is this true for all of the windows platforms? 

Charles Szasz
csz...@mac.com




On Jul 3, 2010, at 1:08 PM, Mark Schonewille-3 [via Runtime Revolution] wrote:

> Hi, 
> 
> This should be X:\program files, where X is the start-up drive. 
> 
> -- 
> Best regards, 
> 
> Mark Schonewille 
> 
> Economy-x-Talk Consulting and Software Engineering 
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> 
> Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
> Download Clipboard Link http://clipboardlink.economy-x-talk.com and   
> share the clipboard of your computer over the local network. 
> 
> On 3 jul 2010, at 18:49, charles61 wrote: 
> 
> > 
> > What are the standard locations for deploying ann app on Windows XP,   
> > Vista 
> > and Windows 7? 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/App-deployment-on-Windows-tp2277320p2277329.html
>  
> To unsubscribe from App deployment on Windows, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/App-deployment-on-Windows-tp2277320p2277331.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


App deployment on Windows

2010-07-03 Thread charles61

What are the standard locations for deploying ann app on Windows XP, Vista
and Windows 7?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/App-deployment-on-Windows-tp2277320p2277320.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: Icon sizes for Windows XP, Vista and 7

2010-07-02 Thread charles61

Scott,

Thanks so much for that information! I will put it in my Rev Notebook!

Charles Szasz
csz...@mac.com




On Jul 2, 2010, at 7:18 PM, Scott Rossi [via Runtime Revolution] wrote:

> Recently, charles61 wrote: 
> 
> > What are the sizes of icons needed for Windows XP, Vista and Windows 7 when 
> > you are making a Windows executable? 
> 
> I believe the standalone builder *requires* 9 resources -- 48x48/32x32/16x16 
> pixel sizes at 32/8/4 bit depths.  Vista and Win7 take advantage of a large 
> 256x256 resource as well, but I don't believe rev's standalone builder 
> requires this resource.  In any event, the SB should warn you if your icon 
> resources are incomplete when building a standalone. 
> 
> Regards, 
> 
> Scott Rossi 
> Creative Director 
> Tactile Media, UX Design 
> 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Icon-sizes-for-Windows-XP-Vista-and-7-tp2276826p2276986.html
>  
> To unsubscribe from Icon sizes for Windows XP, Vista and 7, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Icon-sizes-for-Windows-XP-Vista-and-7-tp2276826p2276989.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


Icon sizes for Windows XP, Vista and 7

2010-07-02 Thread charles61

What are the sizes of icons needed for Windows XP, Vista and Windows 7 when
you are making a Windows executable? 
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Icon-sizes-for-Windows-XP-Vista-and-7-tp2276826p2276826.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do you fix this?

2010-07-01 Thread charles61

Jacqueline,

I managed to fix my problem by removing the script to hide the menu bar. This 
along with the Set as stack Menu bar for the Mac resolved my problem.

Charles Szasz
csz...@mac.com




On Jul 1, 2010, at 12:23 PM, J. Landman Gay [via Runtime Revolution] wrote:

> charles61 wrote: 
> > I had problems with the cutting off of the bottom because of not setting 
> > the 
> > Set as Stack Menu bar in the Menu Builder. I have set the Destroystack of 
> > my 
> > splash, app and substacks to false. Now when I created my Mac app, I get 
> > the 
> > top of my second card showing the upper 1/4 inch of blue from the my main 
> > card! 
> 
> It sounds like you didn't place the menu on that card, so you are seeing 
> a blank place. You need to place the menu group on every card in the stack. 
> 
> Mac users should always develop with the menu showing at the top of the 
> stack window. That is, turn off both "preview as menubar" and "set as 
> stack menu" until you are ready to build a standalone. Being able to see 
> the stack as Windows users will see it allows you to place objects on 
> the card in the right positions, and tells you immediately if you've 
> forgotten to put a menu on the card. 
> 
> When you are ready to build, turn those options back on and make sure 
> destroystack is set to false. 
> 
> 
> -- 
> Jacqueline Landman Gay | [hidden email] 
> HyperActive Software   | http://www.hyperactivesw.com
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/How-do-you-fix-this-tp2274538p2275389.html
>  
> To unsubscribe from How do you fix this?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-you-fix-this-tp2274538p2275795.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How do you fix this?

2010-07-01 Thread charles61

Jacqueline,

Thank your for you e-mail! Well, I actually started my project with the Windows 
menubar showing. I continued with this procedure until I was ready to create my 
Mac standalone. I remembered from all of my previous experiences with Rev and 
the RevList that this is the recommended procedure.

But you are right in assuming that my first card of my app does not have a 
menubar showing! This card has a nice graphic along with an altAccordion type 
menu. In my preOpen card script of for the first card my app I have: hide the 
group "menubar 1". On the rest of my cards the "menubar 1" is not hidden. I 
guess my question is how do other developers handle this type of situation when 
they hide the menubar on the first card? Or what do you suggest?

Charles Szasz
csz...@mac.com




On Jul 1, 2010, at 12:23 PM, J. Landman Gay [via Runtime Revolution] wrote:

> charles61 wrote: 
> > I had problems with the cutting off of the bottom because of not setting 
> > the 
> > Set as Stack Menu bar in the Menu Builder. I have set the Destroystack of 
> > my 
> > splash, app and substacks to false. Now when I created my Mac app, I get 
> > the 
> > top of my second card showing the upper 1/4 inch of blue from the my main 
> > card! 
> 
> It sounds like you didn't place the menu on that card, so you are seeing 
> a blank place. You need to place the menu group on every card in the stack. 
> 
> Mac users should always develop with the menu showing at the top of the 
> stack window. That is, turn off both "preview as menubar" and "set as 
> stack menu" until you are ready to build a standalone. Being able to see 
> the stack as Windows users will see it allows you to place objects on 
> the card in the right positions, and tells you immediately if you've 
> forgotten to put a menu on the card. 
> 
> When you are ready to build, turn those options back on and make sure 
> destroystack is set to false. 
> 
> 
> -- 
> Jacqueline Landman Gay | [hidden email] 
> HyperActive Software   | http://www.hyperactivesw.com
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/How-do-you-fix-this-tp2274538p2275389.html
>  
> To unsubscribe from How do you fix this?, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-you-fix-this-tp2274538p2275429.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


How do you fix this?

2010-06-30 Thread charles61

I had problems with the cutting off of the bottom because of not setting the
Set as Stack Menu bar in the Menu Builder. I have set the Destroystack of my
splash, app and substacks to false. Now when I created my Mac app, I get the
top of my second card showing the upper 1/4 inch of blue from the my main
card! 
I have tried increasing the height property of my stack but it only causes
the top to go down after increasing one pixel and then increasing by another
pixel it causes the top to go up. This in turn shows the blue at the top and
then shows the blue at the bottom. Beside starting creating my stack, how
can I fix this annoying problem?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-do-you-fix-this-tp2274538p2274538.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


Imbedding e-mail address in an About dialog...

2010-06-29 Thread charles61

How do you imbed an e-mail address link in the generic About dialog generated
by the Menu Builder? I wanted to put a link in the About dialog so the user
could click on it that would launch the user's e-mail application.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Imbedding-e-mail-address-in-an-About-dialog-tp2272657p2272657.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: specialFolderPath question

2010-06-28 Thread charles61

Klaus,

Thanks for your suggestions!

Charles Szasz
csz...@mac.com




On Jun 28, 2010, at 12:13 PM, Klaus on-rev [via Runtime Revolution] wrote:

> Hi charles61, 
> 
> > 
> > I have the following script (partial script to save space) in an 
> > altAccordion 
> > group. When the user clicks on selection_1 the user is not always taken to 
> > the path indicated in the script. In these situations, the user is taken to 
> > the last path, which may selection_2. I thought that the path in the script 
> > would always take the user to that path 
> > 
> > on mouseUp 
> >   put the hilitedLine of field "Student Plans" into the_selection 
> > 
> >   if the_selection is 1 
> >   then 
> >  answer file "Open Student Plans file:" with 
> > specialFolderPath("documents") & "/Plans_Student" 
> > 
> > Why does this happen? And, how can I insure that the user will always go 
> > the 
> > path indicated by (specialFolderPath("documents") & "/Plans_Student")?
> 
> I think you cannot add a FILENAME to "answer file"! (What if the fiel does 
> not exist?) 
> Leave the "/Plans_Studet" and it will work! 
> ... 
> answer file "Open Student Plans file:" with specialFolderPath("documents") 
> ## WORKS! 
> ... 
> 
> You could add this to the prompt: 
> ... 
>  answer file "Open file :" with... 
> ... 
> And then check if the user chose the right file. 
> 
> 
> Best 
> 
> Klaus 
> 
> -- 
> Klaus Major 
> http://www.major-k.de
> [hidden email] 
> 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271133.html
>  
> To unsubscribe from specialFolderPath question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271182.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: specialFolderPath question

2010-06-28 Thread charles61

Shao,

No, I didn't. I was aware that the defaultFolder have to be set!

Charles Szasz
csz...@mac.com




On Jun 28, 2010, at 11:37 AM, Shao Sean-2 [via Runtime Revolution] wrote:

> Did you try setting the defaultFolder before doing the "answer file"   
> command? 
> ___ 
> use-revolution mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271082.html
>  
> To unsubscribe from specialFolderPath question, click here.
> 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2271093.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


specialFolderPath question

2010-06-28 Thread charles61

I have the following script (partial script to save space) in an altAccordion
group. When the user clicks on selection_1 the user is not always taken to
the path indicated in the script. In these situations, the user is taken to
the last path, which may selection_2. I thought that the path in the script
would always take the user to that path

on mouseUp
   put the hilitedLine of field "Student Plans" into the_selection
   
   if the_selection is 1 
   then
  answer file "Open Student Plans file:" with
specialFolderPath("documents") & "/Plans_Student"

Why does this happen? And, how can I insure that the user will always go the
path indicated by (specialFolderPath("documents") & "/Plans_Student")?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/specialFolderPath-question-tp2270986p2270986.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: Radio button group

2010-06-26 Thread charles61

Please disregard my previous posting concerning radio buttons. I found my
error.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Radio-button-group-tp2269461p2269522.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


Radio button group

2010-06-26 Thread charles61

i have the following script for a group of three radio buttons to check to
see if any of the radio buttons has been selected. If one has been selected
the script then checks to see if a field "e-mail" has been completed. 

According to the Rev docs, the hilitedButton of a group is an integer
between zero and the number of buttons in a group. I set the hilitedButton
script to indicate that if a the number is greater than zero then a button
has been selected. But this does not work.

Here is my script:

if the hilitedButton of group "freq" > zero then
  if field "e-mail" is empty then
 beep
 answer information "Please give the school employee's e-mail."
 exit to top
  end if
 end if

What changes do I need to make so that the script works?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Radio-button-group-tp2269461p2269461.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


Optimized print code for OSX

2010-06-25 Thread charles61

I have the following script that I am using to print a card. I have
incorporated some scripts to hide buttons and some edit boxes and to show
label fields instead of edit boxes. The code seems slow in executing when I
click on Preview in the OSX print dialog. Aside from using the printing off
the card technique, is there anyway that this code can be optimized?

Here is my code:

if the platform is "macos"
   then
  select empty
  set the printPaperOrientation to "portrait"
  set the printmargins to 36,108,36,72
  set the printScale to .8738
  
  open printing with dialog as sheet 

  if the result = "cancel" then exit to top > This cancels printing
if the user selects Cancel in print dialog
  hideStuff
  set the backgroundColor of this stack to 255,255,255
  set the hiliteColor of this stack to 255,255,255
  
  select empty
  print card id 1060
  
  close printing
  
  set the hiliteColor of this stack to 126,188,237
  set the backgroundColor of this stack to 237,239,217
  set the backgroundcolor of this stack to empty  
  showStuff
  unlock screen
   end if
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Optimized-print-code-for-OSX-tp2268942p2268942.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


  1   2   >