Re: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Trevor DeVore

On Mar 21, 2010, at 5:05 PM, Len Morgan wrote:

I'm still not able to set the background color of an individual row  
in a data grid.  Well, that's not entirely true.  I can make a row  
invisible but I can't change it to the color I want.


I have followed the instructions in the lesson How Can I Colorize  
Individual Lines in a Table?, and if I do what the lesson says, it  
does in fact work but it only changes the FOREGROUND color of the  
text.  I need to set the BACKGROUND color of the text/column and  
when I do that, as soon as another line is selected, the hilite  
changes to that new row and the old row is blanked out completely.


Can you provide the script you are using to change the background color?

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Alignment Changes after column resize

2010-03-22 Thread Trevor DeVore

On Mar 21, 2010, at 5:41 PM, Len Morgan wrote:

It didn't work so I guess I need an updated datagrid library since I  
can't download the latest 4.5 dp-3 without error.  :-(


You can download it here:

http://www.bluemangolearning.com/download/revolution/tools/revdatagridlibrary.rev.zip

This lessons shows how to upgrade your copy.

http://revolution.screenstepslive.com/spaces/revolution/buckets/tutorials/lessons/6186-Upgrading-the-Data-Grid-Library

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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


Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin
In January with the help of Phil, Peter, and others I got some great 
tips for identifying removable drives on OS X and Linux.  But I'm having 
difficulty figuring out how to do the same in Windows.


I can find the registry entries to determine which devices are mounted, 
but they don't contain the info which will let me know which drive 
letter they're associated with.


I've tried setting the shellCommand to diskpart and then using:

get shell(list volume)

...but that returns 2, which means a syntax error, even though that 
syntax works fine from the command line.


Any tips on how to identify mounted removable volumes and obtain their 
drive letters?  Extra bonus points if I could get their names too, for 
those that have been named.


TIA -

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


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Miller

Richard,

This has been working for me:

 repeat with i = number of lines of the volumes down to 1
 put line i of the volumes into x
 put getvolumesn(X) into z
end repeat

function GetVolumeSN pDiskLetter
  local volumeSerialNumber
  -- Supports both C, C: and C:\ styles
  put char 1 of pDiskLetter  : into pDisk
  set the hideConsoleWindows to true
  put shell(dir   pDisk) into tDirData
  get matchText(tDirData,Volume Serial Number is 
(.*)\n,volumeSerialNumber)

  if it is true then
return volumeSerialNumber
  else
return empty
  end if
end GetVolumeSN


Richard Miller



On 3/22/2010 10:05 AM, Richard Gaskin wrote:
In January with the help of Phil, Peter, and others I got some great 
tips for identifying removable drives on OS X and Linux.  But I'm 
having difficulty figuring out how to do the same in Windows.


I can find the registry entries to determine which devices are 
mounted, but they don't contain the info which will let me know which 
drive letter they're associated with.


I've tried setting the shellCommand to diskpart and then using:

get shell(list volume)

...but that returns 2, which means a syntax error, even though that 
syntax works fine from the command line.


Any tips on how to identify mounted removable volumes and obtain their 
drive letters?  Extra bonus points if I could get their names too, for 
those that have been named.


TIA -

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

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



___
use-revolution mailing list
use-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: VideoGrabber on Windows

2010-03-22 Thread Richard Miller

Hi Klaus,

Is this topic still of interest to you? I've been working a lot with the 
videograbber on Windows.


Richard Miller



On 1/6/2010 12:25 PM, Klaus Major wrote:

Hi friends,

no other win user that work with the RevVideoGrabber
and wants to share her/his experiences?

Oh, c'mon folks! :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

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

   


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


Re: revmobile looking good

2010-03-22 Thread Richard Miller

Can anyone confirm if the (video) player object works under revMobile?

Thanks.
Richard Miller



On 3/20/2010 11:57 PM, Terry Judd wrote:

Meanwhile, would it be possible to include iPad in the Simulator choices?
That script is password protected, so I can't go in and try adding that
myself.
   

A couple of days ago (just after the latest revMobile pre-alpha),
Apple released beta 5 of the iPhone 3.2 SDK and this is the first
version that allows submission of apps using 3.2 which also means the
first iPad apps.
I would expect that now they have a target, RunRev can link into this
and give us an iPad version soon.
 

It's all looking good so far - the ability to test on the iPad simulator,
even with the pre-alpha would be great.

What I'd like some info on is what sort of controls/interface objects are
likely to included in the IDE. I've started creating some replica 'native'
controls but don't want to go too far down this path if I don't have too.

Terry...

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

   


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


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin

Richard Miller wrote:

 On 3/22/2010 10:05 AM, Richard Gaskin wrote:
 In January with the help of Phil, Peter, and others I got some great
 tips for identifying removable drives on OS X and Linux.  But I'm
 having difficulty figuring out how to do the same in Windows.

 I can find the registry entries to determine which devices are
 mounted, but they don't contain the info which will let me know
 which drive letter they're associated with.
...
 This has been working for me:

   repeat with i = number of lines of the volumes down to 1
   put line i of the volumes into x
   put getvolumesn(X) into z
 end repeat

 function GetVolumeSN pDiskLetter
local volumeSerialNumber
-- Supports both C, C: and C:\ styles
put char 1 of pDiskLetter  : into pDisk
set the hideConsoleWindows to true
put shell(dir   pDisk) into tDirData
get matchText(tDirData,Volume Serial Number is
 (.*)\n,volumeSerialNumber)
if it is true then
  return volumeSerialNumber
else
  return empty
end if
 end GetVolumeSN

Thank you, Richard, but I've been getting the volume IDs from the 
registry.  The challenge I have this morning is to find which volumes 
are removable.


Since I last wrote I discovered that the info at 
HKEY\Local_Machine\System\MountedDevices\ seems to have what I need.


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


Re: VideoGrabber on Windows

2010-03-22 Thread Klaus on-rev
Hi Richard,

 Hi Klaus,
 
 Is this topic still of interest to you? I've been working a lot with the 
 videograbber on Windows.

yes, sure!

We had the chance to test VideoGrabber on Win7 and there is absolutely no way 
to use it with QuickTime. 
Works with VfW but that does not support any standard VideoCodecs like DV*, 
what we need in our project.

*Out of the box!

 Richard Miller
 
 On 1/6/2010 12:25 PM, Klaus Major wrote:
 Hi friends,
 no other win user that work with the RevVideoGrabber
 and wants to share her/his experiences?
 Oh, c'mon folks! :-)

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


returning from custom dialog

2010-03-22 Thread stephen barncard
I asked this earlier with no answers I'll try again..

I'm building a custom list dialog and using dialogdata as usual...
I've got it almost perfect except for one aspect.

When control returns to the calling stack after closing the dialog, I have
to click multiple times (2, not double click)  to get the calling stack to
react to clicking on any control.

I want to just click on a field or button in the calling stack and have it
respond like 'ordinary' apps after using the dialog.

I'm trying stuff like  push and pop but it's not working. What do others
do to make this work properly?

-- 
-
Stephen Barncard
currently in Fairhope AL
___
use-revolution mailing list
use-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: VideoGrabber on Windows

2010-03-22 Thread Richard Miller

Klaus,

Initialize the videograbber with this line:

   revInitializeVideoGrabber short name of this stack,DirectX,rect of 
image 1


Use this basic sequence to record video and audio:

  revSetVideoGrabSettings myvar
  revSetVideoGrabAudio true,1,16,16000
  revRecordVideo myfile

Don't use the newest videograbber.dll. I've found it does not allow 
access to the Compression dialog box. Use an older version. I can make 
it available if necessary. I reported this bug some time ago, but have 
not received a response from the engineers.


Use the new DivX (www.divx.com) codec for best results.

Let me know how that goes. The above works well for me under Windows 7.

Richard



On 3/22/2010 11:09 AM, Klaus on-rev wrote:

Hi Richard,

   

Hi Klaus,

Is this topic still of interest to you? I've been working a lot with the 
videograbber on Windows.
 

yes, sure!

We had the chance to test VideoGrabber on Win7 and there is absolutely no way 
to use it with QuickTime.
Works with VfW but that does not support any standard VideoCodecs like DV*, 
what we need in our project.

*Out of the box!

   

Richard Miller

On 1/6/2010 12:25 PM, Klaus Major wrote:
 

Hi friends,
no other win user that work with the RevVideoGrabber
and wants to share her/his experiences?
Oh, c'mon folks! :-)
   

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

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

   


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


Re: VideoGrabber on Windows

2010-03-22 Thread Klaus on-rev
Hi Richard,

 Klaus,
 
 Initialize the videograbber with this line:
   revInitializeVideoGrabber short name of this stack,DirectX,rect of image 1

is this DirectX the same as VfW?

 Use this basic sequence to record video and audio:
 
  revSetVideoGrabSettings myvar

Getting/setting the videosettings did not work for us with VfW at all.
The variable was always empty!

  revSetVideoGrabAudio true,1,16,16000

Does this still work?
I have been searching this in the docs for at least the last three versions of 
Rev! :-/

  revRecordVideo myfile
 Don't use the newest videograbber.dll. I've found it does not allow access to 
 the Compression dialog box. Use an older version. I can make it available if 
 necessary. I reported this bug some time ago, but have not received a 
 response from the engineers.
 Use the new DivX (www.divx.com) codec for best results.

See below, we need QuickTime for everything, since we are developing a 
crossplatform tool
which has to work out of the box.

 Let me know how that goes. The above works well for me under Windows 7.

Basically it all works for us, but we need the user let record video in DV 
format, so we
can compress them with Trevors wonderful QT external.

Thanks anyway! :-)

 Richard

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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: VideoGrabber on Windows

2010-03-22 Thread Richard Miller
Do not use VFW. The DirectX setting is not documented. Try to follow the 
code I sent. Disable use video for windows.


All of my video work with Rev is QT based.

Let me know.

Richard





On 3/22/2010 11:46 AM, Klaus on-rev wrote:

Hi Richard,

   

Klaus,

Initialize the videograbber with this line:
   revInitializeVideoGrabber short name of this stack,DirectX,rect of image 1
 

is this DirectX the same as VfW?

   

Use this basic sequence to record video and audio:

  revSetVideoGrabSettings myvar
 

Getting/setting the videosettings did not work for us with VfW at all.
The variable was always empty!

   

  revSetVideoGrabAudio true,1,16,16000
 

Does this still work?
I have been searching this in the docs for at least the last three versions of 
Rev! :-/

   

  revRecordVideo myfile
Don't use the newest videograbber.dll. I've found it does not allow access to 
the Compression dialog box. Use an older version. I can make it available if 
necessary. I reported this bug some time ago, but have not received a response 
from the engineers.
Use the new DivX (www.divx.com) codec for best results.
 

See below, we need QuickTime for everything, since we are developing a 
crossplatform tool
which has to work out of the box.

   

Let me know how that goes. The above works well for me under Windows 7.
 

Basically it all works for us, but we need the user let record video in DV 
format, so we
can compress them with Trevors wonderful QT external.

Thanks anyway! :-)

   

Richard
 

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com

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

   


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


Re: Finding USB volumes on Win

2010-03-22 Thread Richard Gaskin

Another snag:

The key I need is named \DosDevices\G:, at this path:

HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

So it would seem that if I escape the backslashes in the key name I'd be 
good:


 get 
queryRegistry(HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\\\DosDevices\\F:)


But no go.

I've tried many different combinations of escapes, and no escapes at 
all, and no matter what I try the result says, bad key and the data 
returned is empty.


Any clues?

TIA -

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


Spanish Voices

2010-03-22 Thread Ray Horsley
Anybody know how to acquire/install the Spanish voices for the  
RevSpeech library?  I saw them years ago when I used Metacard for text- 
to-speech.  There were just two; a male voice named Carlos and a  
female voice.  I think they're part of QuickTime, but I don't see them  
using the RevSpeechVoices function.  Here's what I currently get on my  
Mac using this function:


Agnes
Albert
Alex
Bad News
Bahh
Bells
Boing
Bruce
Bubbles
Cellos
Deranged
Fred
Good News
Hysterical
Junior
Kathy
Pipe Organ
Princess
Ralph
Trinoids
Vicki
Victoria
Whisper
Zarvox


Thanks,

Ray Horsley
LinkIt! Software

___
use-revolution mailing list
use-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: Spanish Voices

2010-03-22 Thread Mark Swindell
I believe you may be referring to Marta.  She's working for Garmin now.  The 
Spanish language voice position at Apple remains unfilled.

:)
Mark

On Mar 22, 2010, at 12:05 PM, Ray Horsley wrote:

 Anybody know how to acquire/install the Spanish voices for the RevSpeech 
 library?  I saw them years ago when I used Metacard for text-to-speech.  
 There were just two; a male voice named Carlos and a female voice.  I think 
 they're part of QuickTime, but I don't see them using the RevSpeechVoices 
 function.  Here's what I currently get on my Mac using this function:
 
 Agnes
 Albert
 Alex
 Bad News
 Bahh
 Bells
 Boing
 Bruce
 Bubbles
 Cellos
 Deranged
 Fred
 Good News
 Hysterical
 Junior
 Kathy
 Pipe Organ
 Princess
 Ralph
 Trinoids
 Vicki
 Victoria
 Whisper
 Zarvox
 
 
 Thanks,
 
 Ray Horsley
 LinkIt! Software
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Finding USB volumes on Win

2010-03-22 Thread Matthias Rebbe
Richard,

you could query all mounted devices from the shell

get shell(reg query  HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices)

This return all mounted devices. You then just have to look for the specific 
one.
Not that what you expected, but maybe it helps.

Regards,

Matthias


Am 22.03.2010 um 16:53 schrieb Richard Gaskin:

 Another snag:
 
 The key I need is named \DosDevices\G:, at this path:
 
 HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
 
 So it would seem that if I escape the backslashes in the key name I'd be good:
 
 get queryRegistry(HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\\\DosDevices\\F:)
 
 But no go.
 
 I've tried many different combinations of escapes, and no escapes at all, and 
 no matter what I try the result says, bad key and the data returned is 
 empty.
 
 Any clues?
 
 TIA -
 
 --
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

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


Why to ask to save every modified stack?

2010-03-22 Thread Giovanni Cannizzaro

Hi. I wanna ask if there is a reason for this.
I have a mainstack with a lot of substack in it.
When I quit Revolution I get the Save stack message, and this is 
normal only for the first time.
But for me it's not normal that I've this message for every substack 
I've modified.
If I save a mainstack or a substack of it I save the mainstack and ALL 
its substacks

so why continue to ask to save every modified stack?

This is very annoying in an app with a lot of substack.
I think this is a bug so I ask to solve it before the 4.5 release.

I've this behavior in every platform I use Revolution (Windows, Mac and 
Linux)


I've post this even in the Revolution Forum
Thank u for all and bye-
___
use-revolution mailing list
use-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: Spanish Voices

2010-03-22 Thread Richmond Mathewson

 On 22/03/2010 21:05, Ray Horsley wrote:
Anybody know how to acquire/install the Spanish voices for the 
RevSpeech library?  I saw them years ago when I used Metacard for 
text-to-speech.  There were just two; a male voice named Carlos and a 
female voice.  I think they're part of QuickTime, but I don't see them 
using the RevSpeechVoices function.  Here's what I currently get on my 
Mac using this function:



snip

There were Mexican Spanish voices available for Mac OS 8 and 9:

I remember having 'infantile fun' with my kids (who were about 3 and 5 
at the time)

getting the Mexican voices to read English texts . . .  :)

However, as far as I am aware, they were dropped when Macintosh went Exxy.
___
use-revolution mailing list
use-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: returning from custom dialog

2010-03-22 Thread BNig

Stephen,
in a similar situation (not exactly though) I issued a click at 1,1 or
even click at -1,-1 after returning to the calling stack. It helped, but
seems a little unprofessional.
I don't know if this would help in your situation.
regards
Bernd


Stephen Barncard-4 wrote:
 
 I asked this earlier with no answers I'll try again..
 
 I'm building a custom list dialog and using dialogdata as usual...
 I've got it almost perfect except for one aspect.
 
 When control returns to the calling stack after closing the dialog, I have
 to click multiple times (2, not double click)  to get the calling stack to
 react to clicking on any control.
 
 I want to just click on a field or button in the calling stack and have it
 respond like 'ordinary' apps after using the dialog.
 
 I'm trying stuff like  push and pop but it's not working. What do
 others
 do to make this work properly?
 
 Stephen Barncard
 
-- 
View this message in context: 
http://n4.nabble.com/returning-from-custom-dialog-tp1677760p1677953.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: returning from custom dialog

2010-03-22 Thread stephen barncard
That might work. I have always had this problem with the 'built-in ask and
answer dialogs as well as my custom ones. I will try it.
thanks

On 22 March 2010 12:10, BNig niggem...@uni-wh.de wrote:


 Stephen,
 in a similar situation (not exactly though) I issued a click at 1,1 or
 even click at -1,-1 after returning to the calling stack. It helped, but
 seems a little unprofessional.
 I don't know if this would help in your situation.
 regards
 Bernd


 Stephen Barncard-4 wrote:
 
  I asked this earlier with no answers I'll try again..
 
  I'm building a custom list dialog and using dialogdata as usual...
  I've got it almost perfect except for one aspect.
 
  When control returns to the calling stack after closing the dialog, I
 have
  to click multiple times (2, not double click)  to get the calling stack
 to
  react to clicking on any control.
 
  I want to just click on a field or button in the calling stack and have
 it
  respond like 'ordinary' apps after using the dialog.
 
  I'm trying stuff like  push and pop but it's not working. What do
  others
  do to make this work properly?
 
  Stephen Barncard
 
 --
 View this message in context:
 http://n4.nabble.com/returning-from-custom-dialog-tp1677760p1677953.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




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


Card Display Management

2010-03-22 Thread Peter Haworth
In a recent post on the forum, I found out about the raiseWindows  
property which ensures that Rev windows don;t get interleaved with  
other application windows.  That definitely solves the problem I was  
having but I'm wondering if it is possible to implement a different  
card display management interface with Rev.


What I have in mind is a single workspace window for my application  
with any cards being displayed within that workspace instead of in  
separate windows.   Continuing the card metaphor, I guess you could  
think of the workspace as a card table with the individual cards being  
laid down on it.


I found the backdrop property which almost does what I want but it   
covers the whole of the screen and I really want a window that takes  
up just part of the screen.


Got a feeling this probably isn't possible but if anyone has any  
ideas, I'd be interested in hearing them.  I'm running on OSX.


Thanks,

Pete Haworth








___
use-revolution mailing list
use-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: Why to ask to save every modified stack?

2010-03-22 Thread J. Landman Gay

Giovanni Cannizzaro wrote:

Hi. I wanna ask if there is a reason for this.
I have a mainstack with a lot of substack in it.
When I quit Revolution I get the Save stack message, and this is 
normal only for the first time.
But for me it's not normal that I've this message for every substack 
I've modified.
If I save a mainstack or a substack of it I save the mainstack and ALL 
its substacks

so why continue to ask to save every modified stack?

This is very annoying in an app with a lot of substack.
I think this is a bug so I ask to solve it before the 4.5 release.

I've this behavior in every platform I use Revolution (Windows, Mac and 
Linux)


I've post this even in the Revolution Forum


RR won't see it if you only post to the list or the forum. You should 
submit a bug report in the QCC, which is the only way to make sure they 
know about it: http://quality.runrev.com/.


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


Re: returning from custom dialog

2010-03-22 Thread J. Landman Gay

stephen barncard wrote:

That might work. I have always had this problem with the 'built-in ask and
answer dialogs as well as my custom ones. I will try it.


I've never seen the problem. Is your Rev installation different from the 
default shipping version? Could something else be interfering? Plugins?


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


Re: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Len Morgan
I copied your code from the example exactly and IF I use change the 
foregroundColor... it does just that: Highlites the selected line in 
blue with white letters.  When I select a new row, the background of all 
the other rows is white with red text.  If I change foregroundColor to 
backgroundColor, as soon as the selection moves off of a line, the whole 
line becomes invisible (but the data is still there since if I go back 
to that line with the hilite, the data again becomes visible).  I am 
changing only one word (actually just part of a word: fore to back).  
I'm obviously not using the right property or something but I'm at a 
loss as to what else I could use.


I can still send you the script if you want but as I said, I started 
with your lesson script and just changed one word.


len


On 3/22/2010 8:44 AM, Trevor DeVore wrote:

On Mar 21, 2010, at 5:05 PM, Len Morgan wrote:

I'm still not able to set the background color of an individual row 
in a data grid.  Well, that's not entirely true.  I can make a row 
invisible but I can't change it to the color I want.


I have followed the instructions in the lesson How Can I Colorize 
Individual Lines in a Table?, and if I do what the lesson says, it 
does in fact work but it only changes the FOREGROUND color of the 
text.  I need to set the BACKGROUND color of the text/column and when 
I do that, as soon as another line is selected, the hilite changes to 
that new row and the old row is blanked out completely.


Can you provide the script you are using to change the background color?



___
use-revolution mailing list
use-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: Card Display Management

2010-03-22 Thread Scott Rossi
Recently, Peter Haworth wrote:

 What I have in mind is a single workspace window for my application
 with any cards being displayed within that workspace instead of in
 separate windows.   Continuing the card metaphor, I guess you could
 think of the workspace as a card table with the individual cards being
 laid down on it.

I Peter:

I'm not sure exactly what you're trying to achieve (I don't follow the
forums very often).  If you want to show cards within a workspace, you can
set the dimensions of your stack to be larger than the area needed for
content, and make a background (ie desktop or tabletop) that appears on all
cards, on which your card content sits.  You will only be able to show one
card at a time however.

If you're looking to show multiple cards at once, this is not possible
using runRev's card structure.  You'd have to place your card content into
separate groups -- then you could hide/show groups at will.  If you have a
lot of card groups however, this can become unwieldy.

A third option could be to place your content into palette stacks, that
overlay a topstack.  This way you can have multiple cards within multiple
windows, all sitting on top of a separate background stack, and because the
cards are in palettes, they will never fall behind the background stack.
You could also give the palette stack custom drag routines so they can't be
dragged beyond the rect defined by the background stack.

If none of these options fits what you're trying to do, you may need to
explain more of what you're trying to accomplish.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


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


Re: Spanish Voices

2010-03-22 Thread Ray Horsley
H...  I wonder what kind of a job it would be to get those voices  
from OS 8 and 9 to work in OSX?  If anybody has any ideas on how I  
might port those please let me know.


Ray Horsley
LinkIt! Software

On Mar 22, 2010, at 10:08 AM, Richmond Mathewson wrote:


On 22/03/2010 21:05, Ray Horsley wrote:
Anybody know how to acquire/install the Spanish voices for the  
RevSpeech library?  I saw them years ago when I used Metacard for  
text-to-speech.  There were just two; a male voice named Carlos and  
a female voice.  I think they're part of QuickTime, but I don't see  
them using the RevSpeechVoices function.  Here's what I currently  
get on my Mac using this function:



snip

There were Mexican Spanish voices available for Mac OS 8 and 9:

I remember having 'infantile fun' with my kids (who were about 3 and  
5 at the time)

getting the Mexican voices to read English texts . . .  :)

However, as far as I am aware, they were dropped when Macintosh went  
Exxy.

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

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



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


Re: Card Display Management

2010-03-22 Thread Jeff Massung
On Mon, Mar 22, 2010 at 1:05 PM, Scott Rossi sc...@tactilemedia.com wrote:

 Recently, Peter Haworth wrote:

  What I have in mind is a single workspace window for my application
  with any cards being displayed within that workspace instead of in
  separate windows.   Continuing the card metaphor, I guess you could
  think of the workspace as a card table with the individual cards being
  laid down on it.

 I Peter:

 I'm not sure exactly what you're trying to achieve (I don't follow the
 forums very often).  If you want to show cards within a workspace, you
 can
 set the dimensions of your stack to be larger than the area needed for
 content, and make a background (ie desktop or tabletop) that appears on all
 cards, on which your card content sits.  You will only be able to show one
 card at a time however.


I'm guessing that Peter wants to create a windows-style MDI application. For
example, if you open MS Word, while each Word document is in its own window,
those windows are self contained within the MS Word window.

My understanding with Rev is that you might be able to simulate this
behavior wish a whole lot of groups and custom code to simulate GUI windows,
but it would likely be fragile and not worth the effort (if this is what you
want).

A better option would be to do what Scott suggests: use a background group
with everything you want to stay the same between cards (like toolbars) and
have each card just display a different document. Downside: you won't be
able to see see multiple documents at the same time.

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


Slow opening of cards in .exe file

2010-03-22 Thread William de Smet
Hello there,

In a new app I am working on I am experiencing slow opening of cards in the
.exe file on Windows 7 (on Mac OSX the app works fine and smootly).
It seems that all of the cards are send to memory at once because after the
first mouseclick and about 10 sec wait it all works fine.

In the button there is just a single line of code:
on mouseup
go cd xxx
end mouseup

I use a 'on preopencard' script on each card but I just hide some buttons in
there.
Nothing to difficult either.

Is there a way to speed things up or a way to improve performance?

Thanks!

Greetings,

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


Re: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Trevor DeVore

On Mar 22, 2010, at 2:02 PM, Len Morgan wrote:

I can still send you the script if you want but as I said, I started  
with your lesson script and just changed one word.


I think you need to update the code in the SetForeGroundColor command.  
Change the two instances of textColor to backgroundColor.


--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: returning from custom dialog

2010-03-22 Thread stephen barncard
non - IDE dialogs have always required extra clicks (for me)
with the click at 1,1 it seems to work better.  Still not perfect.

here's the significant code:

set the dialogData to tArrayA


-- modal or sheet dialog

if tArrayA[assheet] is 1

then

sheet stack listdialog -- in stack

else

modal stack listdialog

end if


get the dialogData

put it[return] into fld LD_field_results of card launchcard of stack
listDialogLauncher

reset cursors

set the cursor to arrow


click at 1,1


--

On 22 March 2010 12:55, J. Landman Gay jac...@hyperactivesw.com wrote:

 stephen barncard wrote:

 That might work. I have always had this problem with the 'built-in ask
 and
 answer dialogs as well as my custom ones. I will try it.


 I've never seen the problem. Is your Rev installation different from the
 default shipping version? Could something else be interfering? Plugins?

 --
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com

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




-- 
-
Stephen Barncard
currently in Fairhope AL
___
use-revolution mailing list
use-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: revmobile looking good

2010-03-22 Thread Sarah Reichelt
On Tue, Mar 23, 2010 at 1:03 AM, Richard Miller w...@together.net wrote:
 Can anyone confirm if the (video) player object works under revMobile?


Not in my tests. I tried storing a movie file with my project and then
setting the filename of the player. It gave no error, but no movie
appeared.

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


shell in RevMedia

2010-03-22 Thread François Chaplais
Can someone tell me if the shell function is disabled in the revMedia 4?

TIA

François

___
use-revolution mailing list
use-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: revmobile looking good

2010-03-22 Thread J. Landman Gay

Sarah Reichelt wrote:

On Tue, Mar 23, 2010 at 1:03 AM, Richard Miller w...@together.net wrote:

Can anyone confirm if the (video) player object works under revMobile?



Not in my tests. I tried storing a movie file with my project and then
setting the filename of the player. It gave no error, but no movie
appeared.


What if you load the video from the net?

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


Re: returning from custom dialog

2010-03-22 Thread J. Landman Gay

stephen barncard wrote:

non - IDE dialogs have always required extra clicks (for me)
with the click at 1,1 it seems to work better.  Still not perfect.

here's the significant code:


Have you tried something simpler, like just passing hi instead of an 
array? Zygodact uses a custom modal stack and passes dialogdata without 
any problem or requiring any extra clicks. But it doesn't use arrays, 
just text strings. It doesn't use as sheet either, though I'm not sure 
why that would make a difference. Start simple and then add things until 
you see what messes it up.


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


Re: Slow opening of cards in .exe file

2010-03-22 Thread J. Landman Gay

William de Smet wrote:

Hello there,

In a new app I am working on I am experiencing slow opening of cards in the
.exe file on Windows 7 (on Mac OSX the app works fine and smootly).
It seems that all of the cards are send to memory at once because after the
first mouseclick and about 10 sec wait it all works fine.


Right, all stacks are loaded completely into RAM when they open, 
including all substacks too. Slow navigation usually means you have a 
lot of cards. It's odd that it would only slow down on one OS though. 
Does the Win 7 machine have any virus detectors that are scanning files 
when they open?


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


Valentina DB

2010-03-22 Thread Marcio Alexandroni
Hi,

I'm not sure I understood how Valentina DB licensing works. Does anyone use
Valentina DB?

If I understood it right, if I purchase ADK+ (3 platforms: Mac, Linux,
Windows), I can build applications on all platforms and distribute
royalty-free applications using the DB. As they mention in the sales page, I
can use 18+ platforms, includint the iPhone when RevMobile supports
externals.

Am I understanding it right? Anyone uses it for commercial applications?

Thank you.

Marcio Alexandroni
www.cialogica.com.br
 ( (+55 11) 9989-8316
Skype:  marcioalexandroni
-- 


___
use-revolution mailing list
use-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: Finding USB volumes on Win

2010-03-22 Thread Kay C Lan
On Mon, Mar 22, 2010 at 10:05 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:
 In January with the help of Phil, Peter, and others I got some great tips
 for identifying removable drives on OS X and Linux.  But I'm having
 difficulty figuring out how to do the same in Windows.


Richard,

back then you wrote:

In the meantime, it looks like I have some parsing to do and some homework
 to figure out the details of getting this info for Win Vista, Win 7, and
 Linux.  I'll post the result here once I get it working.


I'm hoping that offer still applies? I can see that I'm going to have to
cross that bridge for a project I have planned.

Thanks
___
use-revolution mailing list
use-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: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Len Morgan

Where can I find the SetForeGroundColor command?

len


On 3/22/2010 2:53 PM, Trevor DeVore wrote:

On Mar 22, 2010, at 2:02 PM, Len Morgan wrote:

I can still send you the script if you want but as I said, I started 
with your lesson script and just changed one word.


I think you need to update the code in the SetForeGroundColor command. 
Change the two instances of textColor to backgroundColor.




___
use-revolution mailing list
use-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: Slow opening of cards in .exe file

2010-03-22 Thread Len Morgan
I have had the same problem all the way back to XP.  But it is only a 
problem the first time I navigate away from card 1.  It can pause a LONG 
time before it goes to the selected card (and I've only got 10 or so in 
the stack) but after that first switch it's pretty zippy.  Even on 
Windows 7.


len


On 3/22/2010 4:35 PM, J. Landman Gay wrote:

William de Smet wrote:

Hello there,

In a new app I am working on I am experiencing slow opening of cards 
in the

.exe file on Windows 7 (on Mac OSX the app works fine and smootly).
It seems that all of the cards are send to memory at once because 
after the

first mouseclick and about 10 sec wait it all works fine.


Right, all stacks are loaded completely into RAM when they open, 
including all substacks too. Slow navigation usually means you have a 
lot of cards. It's odd that it would only slow down on one OS though. 
Does the Win 7 machine have any virus detectors that are scanning 
files when they open?




___
use-revolution mailing list
use-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: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Trevor DeVore

On Mar 22, 2010, at 6:56 PM, Len Morgan wrote:


Where can I find the SetForeGroundColor command?


In the code you copied from the lesson example. It's under the The  
Default Custom Column Behavior step of the How Can I Colorize  
Individual Lines in a Table? lesson.


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table-

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Len Morgan
Man, that made me feel stupid!  :-(  Anyway, that was the very first 
thing I did.  It still makes the line invisible when the selection is 
moved off the line.  When the data is initially filled in, the data 
looks fine but of course, it's black text on a white background so I'll 
probably need to make a change in FillInData too.  Any other place I can 
look to see what's going on?


len

On 3/22/2010 7:04 PM, Trevor DeVore wrote:

On Mar 22, 2010, at 6:56 PM, Len Morgan wrote:


Where can I find the SetForeGroundColor command?


In the code you copied from the lesson example. It's under the The 
Default Custom Column Behavior step of the How Can I Colorize 
Individual Lines in a Table? lesson.


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table- 





___
use-revolution mailing list
use-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: Still Having Data Grid Row Coloring Problems

2010-03-22 Thread Len Morgan

Trevor,

What I don't see in the sample code that was copied is where the 
backgroundColor for the hilited line is set to blue.  If that piece is 
somewhere else, I think that is where I need to start looking to do what 
I'm after.


len


On 3/22/2010 7:04 PM, Trevor DeVore wrote:

On Mar 22, 2010, at 6:56 PM, Len Morgan wrote:


Where can I find the SetForeGroundColor command?


In the code you copied from the lesson example. It's under the The 
Default Custom Column Behavior step of the How Can I Colorize 
Individual Lines in a Table? lesson.


http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table- 





___
use-revolution mailing list
use-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: shell in RevMedia

2010-03-22 Thread Peter Alcibiades

It works fine in Linux.  I tried

   put shell(ls)

and it supplied a file listing of the directory.

Peter
-- 
View this message in context: 
http://n4.nabble.com/shell-in-RevMedia-tp1678302p1678621.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


socket write/read conflict?

2010-03-22 Thread Nicolas Cueto
Hello List,

I've made a quiz-type game where 2-6 students on client stacks buzz in
their answers to a server stack, all on a local network. The server
stack, as well as sending out the questions, informs live to all the
students/client-stacks about who buzzed in what.

I thought I had it working until we found a problem. If two out of six
students happen to buzz in an answer almost simultaneously (by
clicking a button on a game controller pad), as expected five of the
students will receive the server's message about who buzzed in first,
but one of those two students who buzzed at the same time won't.
Except for this simultaneity, all other server-to-client
communications work.

After trying to track this down for weeks, I'm posting here in hopes
of some list magic.

My guess, as the subject line reads, is that a client stack might be
writing to a socket at the same time that the server is trying to
write to that same socket. But, not understanding well how sockets
work, the problem may lie elsewhere. I think I've eliminated the
obvious types of mistakes, but...

So, I am including below the essence of what my server and script
stacks do. It is quite long, so apologies beforehand.

As always, the list's help in this is greatly appreciated.

Thank you.

-- Nicolas Cueto


##

S T A R T   O F   C L I E N T   S T A C K   R E L A T E D


CLIENT CARD SCRIPT


on opencard
   chatConnect
end open

local lChatSocket

on chatConnect
   open socket field host  :1987|  field clientname with
message chatConnected
end chatConnect

on chatConnected s
   put s into lChatSocket
   write field clientname  comma  field studentID  return to
socket lChatSocket
   read from socket s with message chatReceived
   ## Tell server that the student is ready to play, and then
   ## wait for student's choice of answer (by clicking on a
   ## game-controller button).
end chatConnected

on chatReceived s,data
   ##  s contains the host and port of the client,
   ## data contains the text sent by that client
   switch (line 1 of data)
  case live choice feedback
## A student/client on the network has buzzed in a choice/answer.
##
## The script does a long routine here, which includes
##
##  several wait and wait with messages 
##
## Once done, the script asks server for next question.
askServerForQuestion
break
end switch
read from socket s with message chatReceived
end chatReceived

on askServerForQuestion
   chatMessage ready for a question
end askServerForQuestion

on chatMessage data
   ## Called by student clicking on an image/choice (script below).
   write data  comma  field clientname to socket lChatSocket
end chatMessage



GAME-CONTROLLER BUTTON  IMAGE SCRIPTS


on rawKeyUp theKey
   switch theKey
  case 49
   put ImgChoice1 into tImgChoice
  break
   end switch
   put the filename of image tImage into tHilitedImagePath
   send choiceBehavior  tHilitedImagePath to image tImgChoice
end rawKeyUp


on choiceBehavior tHilitedImagePath
   put choice  the last char of tImgChoice into tChoice
   put live choice feedback  comma  tChoice into tMessage
   chatMessage tMessage
   ## Tell server this student's choice.
end choiceBehavior



E N D   O F   C L I E N T   S T A C K   R E L A T E D

##
##

S T A R T   O F   S E R V E R   S T A C K   R E L A T E D


on mouseUp
 accept connections on port 1987 with message clientConnected
 ## Wait for all students/clients to connect.
end mouseUp



on clientConnected s
   ## A student/client has connected. When all expected clients
   ## are connected, initiate the game.
   wait 50 milliseconds with messages
   ## Bug? Without this line, read from socket takes a long time
   ## and returns empty.
   read from socket s for 1 line
   put line 1 of it into tChatMessage
   put tChatMessage  comma  s into gAllClientIPsArray[s]
   add 1 to field numberOfClientsLoggedOn
   if field numberOfClientsLoggedOn = field expectedNumberOfClients then
  put yes into field allLogged
  initiateGame
   end if
   read from socket s with message chatReceived
end clientConnected



on chatReceived s,data
   ## Student/client has sent a message.
   ## Perhaps it's a choice/answer ...
   put item 1 of data into tChatType
   switch tChatType
  case live choice feedback
 choice4AndTheBuzzState data
 break
   end switch
   read from socket s with message chatReceived
end chatReceived


on choice4AndTheBuzzState theChoice
   put item 2 of theChoice into tKey
   if gChoiceFeedbackTally[tKey] = 4 then
  ## Lock the buzzers, i.e., prevent clients
  ## from sending server their 

Re: socket write/read conflict?

2010-03-22 Thread Len Morgan

Two things jumped out at me in your code:
1) broadcastToAllClients - you show an IP address of 127.0.0.1.  If this 
was not just an example, you can't use that number.  That is the IP of 
the local host and won't actually ever leave the machine.


2) You are selecting item 3 of tArrayDataLine which I assume is comma 
delimited (based on the example line above it).  I don't set a 
setItemDelimiter to comma in that handler and I /think /the default 
delimiter is tab.  I also believe that the itemDelimiter you set is only 
valid for the current handler so as soon as this handler is finished, it 
will revert back to tab.


Hope that helps a little.

len


On 3/22/2010 10:14 PM, Nicolas Cueto wrote:

Hello List,

I've made a quiz-type game where 2-6 students on client stacks buzz in
their answers to a server stack, all on a local network. The server
stack, as well as sending out the questions, informs live to all the
students/client-stacks about who buzzed in what.

I thought I had it working until we found a problem. If two out of six
students happen to buzz in an answer almost simultaneously (by
clicking a button on a game controller pad), as expected five of the
students will receive the server's message about who buzzed in first,
but one of those two students who buzzed at the same time won't.
Except for this simultaneity, all other server-to-client
communications work.

After trying to track this down for weeks, I'm posting here in hopes
of some list magic.

My guess, as the subject line reads, is that a client stack might be
writing to a socket at the same time that the server is trying to
write to that same socket. But, not understanding well how sockets
work, the problem may lie elsewhere. I think I've eliminated the
obvious types of mistakes, but...

So, I am including below the essence of what my server and script
stacks do. It is quite long, so apologies beforehand.

As always, the list's help in this is greatly appreciated.

Thank you.

-- Nicolas Cueto

   


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


Re: socket write/read conflict?

2010-03-22 Thread Nicolas Cueto
Thanks for replying, Len.

The 127.0.0.1 ip is indeed just an example, and Rev's default
itemdelim is not tab but rather comma.

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


Re: Card Display Management (Jeff Massung)

2010-03-22 Thread Peter Haworth
Thanks for the input.  Yes, the MSWord comparison is what I was  
thinking of.  I don;t need to display multiple cards from the same  
stack simultaneously but I do need to display multiple substacks so  
this sounds like it would be a whole lot of pain to implement if even  
possible.


Thanks,

Pete Haworth

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


socket write/read conflict?

2010-03-22 Thread Max7
 
 
Nicolas Cueto

I'm a fifth grade teacher. I'd love to see what you got. 

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