Spaced Out

2010-09-05 Thread Richmond

I am poking around in a textField to ascertain if the
double-byte char just before the insertion point is either:

1. Bang up against the left-hand side of the textField

or

2. A space.

#1 is dead easy; the space is proving rather difficult.

My code goes something like this:

on mouseUp
   set the useUnicode to true
  put the word 4 of the selectedChunk into W4
  put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
if it = empty or space then
   put EMPTY or SPACE
else
   put STUFF HERE
end if
end mouseUp

tried replacing space with 32

for some funny reason this detects the left-hand side of the fld MyGuff,
but not if there is a space on the left of the insertion point.

A real bu**er right now.

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


Spaced Out

2010-09-05 Thread Richmond

Running a detection script like this:

on mouseUp
   set the useUnicode to true
   put the word 4 of the selectedChunk into W4
   put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
  put it into UNIK
   put the word 2 of the selectedChunk into W2
   put (W2 - 1) into W!
  get charToNumber(char W2 to W1 of fld MyGuff)
  put it into UNIQ
   put uniEncode(The insertion point is between ') into P1
   put uniEncode(' and ') into P2
   put uniEncode(') into P3
   set the unicodeText of fld WhereAreWe to P1  numToChar(UNIK)  P2 
 numToChar(UNIQ)  P3

end mouseUp


detects a SPACE when the insertion point is BEFORE the space, but

does NOT detect a SPACE when the insertion point is AFTER a space.

-

Where am I going wrong?
___
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: Spaced Out

2010-09-05 Thread Mark Schonewille
Hi Richmond,

You have W! instead of W1. W1 is undefined. Also, shouldn't it be W4-1 and 
W2+1? Have you checked that W4  W2? I know, this is a tricky thing, struggled 
a lot with it myself.



--
Best regards,

Mark Schonewille

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

From 15th August, we'll have time for new projects! Be the first in line and 
contact me now!

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce

On 5 sep 2010, at 12:33, Richmond wrote:

 Running a detection script like this:
 
 on mouseUp
   set the useUnicode to true
   put the word 4 of the selectedChunk into W4
   put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
  put it into UNIK
   put the word 2 of the selectedChunk into W2
   put (W2 - 1) into W!
  get charToNumber(char W2 to W1 of fld MyGuff)
  put it into UNIQ
   put uniEncode(The insertion point is between ') into P1
   put uniEncode(' and ') into P2
   put uniEncode(') into P3
   set the unicodeText of fld WhereAreWe to P1  numToChar(UNIK)  P2  
 numToChar(UNIQ)  P3
 end mouseUp
 
 
 detects a SPACE when the insertion point is BEFORE the space, but
 
 does NOT detect a SPACE when the insertion point is AFTER a space.

___
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: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 02:04 PM, Mark Schonewille wrote:

Hi Richmond,

You have W! instead of W1. W1 is undefined. Also, shouldn't it be W4-1 and W2+1? 
Have you checked that W4  W2? I know, this is a tricky thing, struggled a lot 
with it myself.


   


Yes, it should be W2 + 1, and that was me being careless copying the 
script into my e-mail client; as with 'W!'.


The script still has the same problem.
 I will keep on fiddling around; Thanks for the support.

--
Best regards,

Mark Schonewille

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

 From 15th August, we'll have time for new projects! Be the first in line and 
contact me now!

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce

On 5 sep 2010, at 12:33, Richmond wrote:

   

Running a detection script like this:

on mouseUp
   set the useUnicode to true
   put the word 4 of the selectedChunk into W4
   put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
  put it into UNIK
   put the word 2 of the selectedChunk into W2
   put (W2 - 1) into W!
  get charToNumber(char W2 to W1 of fld MyGuff)
  put it into UNIQ
   put uniEncode(The insertion point is between ') into P1
   put uniEncode(' and ') into P2
   put uniEncode(') into P3
   set the unicodeText of fld WhereAreWe to P1  numToChar(UNIK)  P2  
numToChar(UNIQ)  P3
end mouseUp


detects a SPACE when the insertion point is BEFORE the space, but

does NOT detect a SPACE when the insertion point is AFTER a space.
 

___
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: Spaced Out

2010-09-05 Thread Richmond

I wonder why this doesn't work:

put the char before the selectedText

and nor does this:

put the char before the selectedChunk

?

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


Re: Spaced Out

2010-09-05 Thread Richmond

Cracked It!
 And a right @#$%^ it is too . . .  :(

Running a detection script like this:

on mouseUp
   set the useUnicode to true
   put the word 4 of the selectedChunk into W4
   put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
  put it into UNIK
   put the word 2 of the selectedChunk into W2
   put (W2 - 1) into W!
  get charToNumber(char W2 to W1 of fld MyGuff)
  put it into UNIQ
   put uniEncode(The insertion point is between ') into P1
   put uniEncode(' and ') into P2
   put uniEncode(') into P3
   set the unicodeText of fld WhereAreWe to P1  numToChar(UNIK)  P2  
numToChar(UNIQ)  P3
end mouseUp


detects a SPACE when the insertion point is BEFORE the space, but

does NOT detect a SPACE when the insertion point is AFTER a space.
 
   


to detect a SPACE one has to TURN OFF useUnicode:

set the useUnicode to false
  put the word 4 of the selectedChunk into WONKY
  get charToNum(char WONKY of fld MyGuff)
  put it
set the useUnicode to true

somebody, cough, cough, ought to get all this sorted out in the 
Documentation.

___
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: Spaced Out

2010-09-05 Thread Mark Schonewille
Hi Richmond,

Are you doing this on a PowerPC processor? I think your script will break on a 
computer with x86 processor. In unicode, a space still is space  NULL on x86 
platforms and NULL  space on PPC platforms. Your script seems to find a space 
on PPC platforms but a NULL character on x86 platforms.

--
Best regards,

Mark Schonewille

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

From 15th August, we'll have time for new projects! Be the first in line and 
contact me now!

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce

On 5 sep 2010, at 13:57, Richmond wrote:

 Cracked It!
 And a right @#$%^ it is too . . .  :(
 Running a detection script like this:
 
 on mouseUp
   set the useUnicode to true
   put the word 4 of the selectedChunk into W4
   put (W4 - 1) into W5
  get charToNum(char W5 to W4 of fld MyGuff)
  put it into UNIK
   put the word 2 of the selectedChunk into W2
   put (W2 - 1) into W!
  get charToNumber(char W2 to W1 of fld MyGuff)
  put it into UNIQ
   put uniEncode(The insertion point is between ') into P1
   put uniEncode(' and ') into P2
   put uniEncode(') into P3
   set the unicodeText of fld WhereAreWe to P1  numToChar(UNIK)  P2  
 numToChar(UNIQ)  P3
 end mouseUp
 
 
 detects a SPACE when the insertion point is BEFORE the space, but
 
 does NOT detect a SPACE when the insertion point is AFTER a space.
 
   
 
 to detect a SPACE one has to TURN OFF useUnicode:
 
 set the useUnicode to false
  put the word 4 of the selectedChunk into WONKY
  get charToNum(char WONKY of fld MyGuff)
  put it
 set the useUnicode to true
 
 somebody, cough, cough, ought to get all this sorted out in the 
 Documentation.


___
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: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 03:06 PM, Mark Schonewille wrote:

Hi Richmond,

Are you doing this on a PowerPC processor? I think your script will break on a computer 
with x86 processor. In unicode, a space still is space  NULL on x86 platforms and 
NULL  space on PPC platforms. Your script seems to find a space on PPC platforms 
but a NULL character on x86 platforms.

--
Best regards,

Mark Schonewille

   


Muffled curses.

Aaaah, so as well as having to make different stacks for the Mac/WinXP 
versus Win7/Linux divide

I now have to make different stacks for PPC and x86 processors.

Lovely!



Err . . . hang on a minute . . . a null 

Well; let me see on the Linux box whether my script works or not.

Back in a trice

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


Re: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 03:06 PM, Mark Schonewille wrote:

Hi Richmond,

Are you doing this on a PowerPC processor? I think your script will break on a computer 
with x86 processor. In unicode, a space still is space  NULL on x86 platforms and 
NULL  space on PPC platforms. Your script seems to find a space on PPC platforms 
but a NULL character on x86 platforms.

   


Well . . . talk about opening a can of worms . . .

You are quite right about the SPACE detection on an x86 processor . . .

And, what is also worrying is that Sanskrit vowel characters can't be 
entered

without preceding consonants being entered at the same time.
___
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: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 03:06 PM, Mark Schonewille wrote:

Hi Richmond,

Are you doing this on a PowerPC processor? I think your script will break on a 
computer with x86 processor.


I am not sure what you mean by 'break'; the script does not crash the 
stack - it just doesn't detect

spaces properly.


In unicode, a space still is space  NULL on x86 platforms and NULL  space on 
PPC platforms. Your script seems to find a space on PPC platforms but a NULL character 
on x86 platforms.

--
Best regards,

Mark Schonewille

   


___
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: Spaced Out

2010-09-05 Thread Mark Schonewille
Hi Richmond,

That's what I mean by break: first it works, then it doesn't.

--
Best regards,

Mark Schonewille

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

From 15th August, we'll have time for new projects! Be the first in line and 
contact me now!

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce

On 5 sep 2010, at 14:43, Richmond wrote:

 On 09/05/2010 03:06 PM, Mark Schonewille wrote:
 Hi Richmond,
 
 Are you doing this on a PowerPC processor? I think your script will break on 
 a computer with x86 processor.
 
 I am not sure what you mean by 'break'; the script does not crash the stack - 
 it just doesn't detect
 spaces properly.
 
 In unicode, a space still is space  NULL on x86 platforms and NULL  space 
 on PPC platforms. Your script seems to find a space on PPC platforms but a 
 NULL character on x86 platforms.
 
 --
 Best regards,
 
 Mark Schonewille
 

___
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: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 05:58 PM, Mark Schonewille wrote:

Hi Richmond,

That's what I mean by break: first it works, then it doesn't.

   


Thanks for pointing the PPC/x86 divide to me.

I am currently working on a PPC with a view to getting a PPC-compliant 
standalone up-and-running.


Then, and only then, will I take the code over to my Ubuntu box and 
start scratching my head all over again.


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


Mac OS X Textured Button custom control

2010-09-05 Thread theworcestersource.com

Hello everybody,

Just thought I'd drop a quick line to let you know that I've uploaded a
custom control to Rev Online. It's a nice little textured button, together
with metal/gray image and is really useful for home windows that seem to be
adorning Mac applications these days.

The stack's also available on my site on the try/buy page (don't worry about
the name of this page: the stack itself is free).

Cheers,


Steve
www.theworcestersource.com
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-Textured-Button-custom-control-tp2527471p2527471.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


[feature] did you guys knew that ? is a valid character for function/command name?

2010-09-05 Thread Andre Garzia
Folks,

Did you guys knew that ? is a valid character for naming functions and
commands? I just created a function like that and it works

function mode? pMode
  return pMode is sLocalVarA[mode]
end mode?

and I can use it like this:

if mode?(fundamenteal) then
bla bla bla
end if



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


Re: Spaced Out

2010-09-05 Thread Richmond

On 09/05/2010 03:06 PM, Mark Schonewille wrote:

Hi Richmond,

Are you doing this on a PowerPC processor? I think your script will break on a computer 
with x86 processor. In unicode, a space still is space  NULL on x86 platforms and 
NULL  space on PPC platforms. Your script seems to find a space on PPC platforms 
but a NULL character on x86 platforms.

--
Best regards,

Mark Schonewille

   


Both you and I were wrong; which from the viewpoint of one lonely, lazy 
Runtine Revolutionary

fighting out his own path to Revolutionary bliss here in Bulgaria . . .

. . . Err . . . wait a minute while I punch myself in the face for that 
outburst . . .  :)


My SPACE detection script is working just fine having ported the stack 
over to the old HP-with-Ubuntu !


Betetr belt off an Intel build for my Beta testers directly from the PPC 
code and see what they have to see

about that (especially as have no Intel Mac lolling around here) . . .
___
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: Mac OS X Textured Button custom control

2010-09-05 Thread Andre Garzia
Steve,

I like the new textured button, congratulations and thanks for that.

:D

On Sun, Sep 5, 2010 at 2:03 PM, theworcestersource.com 
st...@theworcestersource.com wrote:


 Hello everybody,

 Just thought I'd drop a quick line to let you know that I've uploaded a
 custom control to Rev Online. It's a nice little textured button, together
 with metal/gray image and is really useful for home windows that seem to be
 adorning Mac applications these days.

 The stack's also available on my site on the try/buy page (don't worry
 about
 the name of this page: the stack itself is free).

 Cheers,


 Steve
 www.theworcestersource.com
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-Textured-Button-custom-control-tp2527471p2527471.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




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


Cookies again: Expiry Date

2010-09-05 Thread stephen barncard
I am still having trouble dealing with the effective use of setting and
clearing cookies properly using the Revolution server at On-Rev.

put new header Set-Cookie: one=datavalue
put new header Set-Cookie: two=datavalue2


Yes, that sets the values that can be recovered, but to delete the cookie by
attempting to set an early expiry date seems to fail every time.

put new header Set-Cookie: two=datavalue2 ; expires=May 5,2010;

put Set-Cookie:   tln  =   urlEncode(pArray[tln])  ; expires= 
(March 24, 2012)  ;  path=/; into theCookie
put new header theCookie


I have been around and around to all the forums and see the same posts about
getting put new header to work last year but nothing about actual success
setting the expiry date.

PHP makes it easy:

?php
$value = my cookie value;

// send a cookie that expires in 24 hours
setcookie(TestCookie,$value, time()+3600*24);
?


Tested, PHP works, just like this. Sets the date, too.

In Rev it's as if the put new header command truncates the other parameters.


Surely someone here has a solution to this in RevTalk.

thanks

sqb




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: Cookies again: Expiry Date

2010-09-05 Thread Andre Garzia
Stephen,

I think you are using the wrong date format for the cookie. From wikipedia:

The expiration date tells the browser when to delete the cookie. The
expiration date is specified in the Wdy, DD-Mon- HH:MM:SS GMT
format. As an example, the following is a cookie sent by a Web server
(the value string has been changed):

Set-Cookie: RMID=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59
GMT; path=/; domain=.example.net

That format is similar to the internet date but it is not the internet
date. I think you will need to assemble that out of the dateitems or
something. Other way is to encode your cookie value such as it carries
expiry information on the value field itself. For example

 Set-Cookie: one=valueone#1283719646;

Then on your code you split it using # as a itemdelimiter. valueone is
your actual value, the number after the hash is the seconds, an
exact timestamp of when the cookie was set. You can use that on your
code to invalidate a cookie if needed. This puts the control of
expiration on your hands.

Andre

On Sun, Sep 5, 2010 at 5:28 PM, stephen barncard
stephenrevoluti...@barncard.com wrote:

 I am still having trouble dealing with the effective use of setting and
 clearing cookies properly using the Revolution server at On-Rev.

 put new header Set-Cookie: one=datavalue
 put new header Set-Cookie: two=datavalue2


 Yes, that sets the values that can be recovered, but to delete the cookie by
 attempting to set an early expiry date seems to fail every time.

 put new header Set-Cookie: two=datavalue2 ; expires=May 5,2010;

 put Set-Cookie:   tln  =   urlEncode(pArray[tln])  ; expires= 
 (March 24, 2012)  ;  path=/; into theCookie
 put new header theCookie


 I have been around and around to all the forums and see the same posts about
 getting put new header to work last year but nothing about actual success
 setting the expiry date.

 PHP makes it easy:

 ?php
 $value = my cookie value;

 // send a cookie that expires in 24 hours
 setcookie(TestCookie,$value, time()+3600*24);
 ?


 Tested, PHP works, just like this. Sets the date, too.

 In Rev it's as if the put new header command truncates the other parameters.


 Surely someone here has a solution to this in RevTalk.

 thanks

 sqb




 --



 Stephen Barncard
 San Francisco Ca. USA

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



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


Re: [feature] did you guys knew that ? is a valid character for function/command name?

2010-09-05 Thread Mark Wieder
Andre-

Sunday, September 5, 2010, 11:37:46 AM, you wrote:

 Folks,

 Did you guys knew that ? is a valid character for naming functions and
 commands? I just created a function like that and it works

...it gets worse... see bz #8048

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Data Grid Column Header Problem

2010-09-05 Thread Len Morgan
 I had this problem once before but I can't find the solution to it 
now.  What's happening is I have a lot of information to show in a DG 
table (lots of columns).  In order to make it all fit, skinny columns 
like Sex and Age have been abbreviated to S and A respectively. The 
problem is that there appears to be some sort of border around the 
column headers so that I can only see a few dots from the middle of 
those two characters in the header making them unreadable.


I tried changing the header margins but that just moves the text in the 
header up.  How can I get rid of the blank space on either side of the 
column header text?


Thanks in advance!

Len Morgan
___
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


Another Data Grid problem

2010-09-05 Thread Len Morgan
 I have set a button to contain the custom behavior for my data grid 
table.  However, the selectionChanged is never getting sent.  All of the 
other handlers are being called in that button so I'm not sure what's 
going on.  What I need to do is when a new line is selected, I need to 
get the contents of the first column of the (now) selected row, then get 
the data for that from the database.


Thanks again!

Len Morgan
___
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: [feature] did you guys knew that ? is a valid character for function/command name?

2010-09-05 Thread Andre Garzia
On Sun, Sep 5, 2010 at 6:01 PM, Mark Wieder mwie...@ahsoftware.net wrote:
 Andre-

 Sunday, September 5, 2010, 11:37:46 AM, you wrote:

 Folks,

 Did you guys knew that ? is a valid character for naming functions and
 commands? I just created a function like that and it works

 ...it gets worse... see bz #8048

:-O

We can now have our own obfuscated code contest!

If I name a variable @ then can I create a command like

command ? @@
  bla bla bla
end ?

where I call it ? and pass @ by-reference...

:-O

PS: PowerDebug is really cool!




 --
 -Mark Wieder
  mwie...@ahsoftware.net

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




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


Re: Another Data Grid problem

2010-09-05 Thread zryip theSlug
On Sun, Sep 5, 2010 at 11:15 PM, Len Morgan len-mor...@crcom.net wrote:
  I have set a button to contain the custom behavior for my data grid table.
  However, the selectionChanged is never getting sent.  All of the other
 handlers are being called in that button so I'm not sure what's going on.
  What I need to do is when a new line is selected, I need to get the
 contents of the first column of the (now) selected row, then get the data
 for that from the database.

 Thanks again!


Hi Len,

Have a look to this lesson:
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7313-How-Do-I-Get-Data-Associated-With-a-Row-or-Column-

Try to place your selectionChanged handler in the datagrid group
instead of the custom column behavior.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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 Problem

2010-09-05 Thread zryip theSlug
On Sun, Sep 5, 2010 at 11:12 PM, Len Morgan len-mor...@crcom.net wrote:
  I had this problem once before but I can't find the solution to it now.
  What's happening is I have a lot of information to show in a DG table (lots
 of columns).  In order to make it all fit, skinny columns like Sex and Age
 have been abbreviated to S and A respectively. The problem is that there
 appears to be some sort of border around the column headers so that I can
 only see a few dots from the middle of those two characters in the header
 making them unreadable.

 I tried changing the header margins but that just moves the text in the
 header up.  How can I get rid of the blank space on either side of the
 column header text?


Len,

Could you precise:
- the width of your column?
- the margins you applied?


Thanks


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: Cookies again: Expiry Date

2010-09-05 Thread stephen barncard
That was it. The date format.  Thanks very much, Andre.

sqb

On 5 September 2010 13:49, Andre Garzia an...@andregarzia.com wrote:

 Stephen,

 I think you are using the wrong date format for the cookie. From wikipedia:

 The expiration date tells the browser when to delete the cookie. The
 expiration date is specified in the Wdy, DD-Mon- HH:MM:SS GMT
 format. As an example, the following is a cookie sent by a Web server
 (the value string has been changed):

 Set-Cookie: RMID=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59
 GMT; path=/; domain=.example.net

 That format is similar to the internet date but it is not the internet
 date. I think you will need to assemble that out of the dateitems or
 something. Other way is to encode your cookie value such as it carries
 expiry information on the value field itself. For example

  Set-Cookie: one=valueone#1283719646;

 Then on your code you split it using # as a itemdelimiter. valueone is
 your actual value, the number after the hash is the seconds, an
 exact timestamp of when the cookie was set. You can use that on your
 code to invalidate a cookie if needed. This puts the control of
 expiration on your hands.

 Andre

 On Sun, Sep 5, 2010 at 5:28 PM, stephen barncard
 stephenrevoluti...@barncard.com wrote:
 
  I am still having trouble dealing with the effective use of setting and
  clearing cookies properly using the Revolution server at On-Rev.
 
  put new header Set-Cookie: one=datavalue
  put new header Set-Cookie: two=datavalue2
 
 
  Yes, that sets the values that can be recovered, but to delete the cookie
 by
  attempting to set an early expiry date seems to fail every time.
 
  put new header Set-Cookie: two=datavalue2 ; expires=May 5,2010;
 
  put Set-Cookie:   tln  =   urlEncode(pArray[tln])  ; expires=
 
  (March 24, 2012)  ;  path=/; into theCookie
  put new header theCookie
 
 
  I have been around and around to all the forums and see the same posts
 about
  getting put new header to work last year but nothing about actual success
  setting the expiry date.
 
  PHP makes it easy:
 
  ?php
  $value = my cookie value;
 
  // send a cookie that expires in 24 hours
  setcookie(TestCookie,$value, time()+3600*24);
  ?
 
 
  Tested, PHP works, just like this. Sets the date, too.
 
  In Rev it's as if the put new header command truncates the other
 parameters.
 
 
  Surely someone here has a solution to this in RevTalk.
 
  thanks
 
  sqb
 
 
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  use-revolution mailing list
  use-revolution@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-revolution



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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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 Problem

2010-09-05 Thread Len Morgan

 On 9/5/2010 4:40 PM, zryip theSlug wrote:

On Sun, Sep 5, 2010 at 11:12 PM, Len Morganlen-mor...@crcom.net  wrote:

  I had this problem once before but I can't find the solution to it now.
  What's happening is I have a lot of information to show in a DG table (lots
of columns).  In order to make it all fit, skinny columns like Sex and Age
have been abbreviated to S and A respectively. The problem is that there
appears to be some sort of border around the column headers so that I can
only see a few dots from the middle of those two characters in the header
making them unreadable.

I tried changing the header margins but that just moves the text in the
header up.  How can I get rid of the blank space on either side of the
column header text?


Len,

Could you precise:
- the width of your column?
- the margins you applied?


Thanks


Regards,
As an example, the column for sex (Label = S) is set for 30.  The 
margins were originally whatever the default is.  I changed it to 1 and 
the text rolled up.  I'm only worried about the right and left of the 
header text.  The vertical orientation is fine.


With the header text Room and a column width of 58, the first couple 
of columns of pixels in the R are cutoff.  There is more than enough 
room in the header field, it's just adding space on either side.


len
___
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: Cookies again: Expiry Date

2010-09-05 Thread Andre Garzia
On Sun, Sep 5, 2010 at 6:46 PM, stephen barncard
stephenrevoluti...@barncard.com wrote:
 That was it. The date format.  Thanks very much, Andre.

;-) been hurt by that more than once.


 sqb

 On 5 September 2010 13:49, Andre Garzia an...@andregarzia.com wrote:

 Stephen,

 I think you are using the wrong date format for the cookie. From wikipedia:

 The expiration date tells the browser when to delete the cookie. The
 expiration date is specified in the Wdy, DD-Mon- HH:MM:SS GMT
 format. As an example, the following is a cookie sent by a Web server
 (the value string has been changed):

 Set-Cookie: RMID=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59
 GMT; path=/; domain=.example.net

 That format is similar to the internet date but it is not the internet
 date. I think you will need to assemble that out of the dateitems or
 something. Other way is to encode your cookie value such as it carries
 expiry information on the value field itself. For example

  Set-Cookie: one=valueone#1283719646;

 Then on your code you split it using # as a itemdelimiter. valueone is
 your actual value, the number after the hash is the seconds, an
 exact timestamp of when the cookie was set. You can use that on your
 code to invalidate a cookie if needed. This puts the control of
 expiration on your hands.

 Andre

 On Sun, Sep 5, 2010 at 5:28 PM, stephen barncard
 stephenrevoluti...@barncard.com wrote:
 
  I am still having trouble dealing with the effective use of setting and
  clearing cookies properly using the Revolution server at On-Rev.
 
  put new header Set-Cookie: one=datavalue
  put new header Set-Cookie: two=datavalue2
 
 
  Yes, that sets the values that can be recovered, but to delete the cookie
 by
  attempting to set an early expiry date seems to fail every time.
 
  put new header Set-Cookie: two=datavalue2 ; expires=May 5,2010;
 
  put Set-Cookie:   tln  =   urlEncode(pArray[tln])  ; expires=
 
  (March 24, 2012)  ;  path=/; into theCookie
  put new header theCookie
 
 
  I have been around and around to all the forums and see the same posts
 about
  getting put new header to work last year but nothing about actual success
  setting the expiry date.
 
  PHP makes it easy:
 
  ?php
  $value = my cookie value;
 
  // send a cookie that expires in 24 hours
  setcookie(TestCookie,$value, time()+3600*24);
  ?
 
 
  Tested, PHP works, just like this. Sets the date, too.
 
  In Rev it's as if the put new header command truncates the other
 parameters.
 
 
  Surely someone here has a solution to this in RevTalk.
 
  thanks
 
  sqb
 
 
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  use-revolution mailing list
  use-revolution@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-revolution



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




 --



 Stephen Barncard
 San Francisco Ca. USA

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




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


Re: Data Grid Column Header Problem

2010-09-05 Thread zryip theSlug
On Sun, Sep 5, 2010 at 11:45 PM, Len Morgan len-mor...@crcom.net wrote:
  On 9/5/2010 4:40 PM, zryip theSlug wrote:

 On Sun, Sep 5, 2010 at 11:12 PM, Len Morganlen-mor...@crcom.net  wrote:

  I had this problem once before but I can't find the solution to it now.
  What's happening is I have a lot of information to show in a DG table
 (lots
 of columns).  In order to make it all fit, skinny columns like Sex and
 Age
 have been abbreviated to S and A respectively. The problem is that
 there
 appears to be some sort of border around the column headers so that I
 can
 only see a few dots from the middle of those two characters in the header
 making them unreadable.

 I tried changing the header margins but that just moves the text in the
 header up.  How can I get rid of the blank space on either side of the
 column header text?

 Len,

 Could you precise:
 - the width of your column?
 - the margins you applied?


 Thanks


 Regards,

 As an example, the column for sex (Label = S) is set for 30.  The margins
 were originally whatever the default is.  I changed it to 1 and the text
 rolled up.  I'm only worried about the right and left of the header text.
  The vertical orientation is fine.

 With the header text Room and a column width of 58, the first couple of
 columns of pixels in the R are cutoff.  There is more than enough room in
 the header field, it's just adding space on either side.


Len,

The ideal min size is 40.
I gave your problem a try. It seems to me that the content of your
columns is centered. In this case, changing the margins with the
header margins do nothing, because the field displaying the header
title has a width of 2 pixels.

If you can give 10 more pixels for those two columns, all will be ok.
Otherwise, for now I don't see any workaround.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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


Updated versions

2010-09-05 Thread Richmond

 Dear Sivakatirswami,

  I was having a spot of bother with the DELETE key inside the 
textField: these versions have that sorted out:


i.e. they are NOT the same as the ones I mentioned in the last message.

http://andregarzia.on-rev.com/richmond/PRO/SSC/DWProD4PPC.zip


http://andregarzia.on-rev.com/richmond/PRO/SSC/DWProD4Intel.zip

sorry to be a pain in the bum but for some reason unknown I am 
managing to sort out

quite a lot of things quite rapidly at present.

sincerely, Richmond Mathewson.

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

2010-09-05 Thread Len Morgan



Len,

The ideal min size is 40.
I gave your problem a try. It seems to me that the content of your
columns is centered. In this case, changing the margins with the
header margins do nothing, because the field displaying the header
title has a width of 2 pixels.

If you can give 10 more pixels for those two columns, all will be ok.
Otherwise, for now I don't see any workaround.


Regards,


Ideal according to who?  Is that a Rev limitation or part of the Data 
Grid?  It seems to be awfully large.  I did expand those columns (and 
reduced the width of another to make them fit) so it's all working 
now.  It sure would be nice if we could lower that limit though.


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


focus border color

2010-09-05 Thread Monte Goulding
Hi

the effective focusColor is returning black when I can see that it's a bluish 
color

Any way to find the focus border color?

Cheers

Monte___
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: [feature] did you guys knew that ? is a valid character for function/command name?

2010-09-05 Thread J. Landman Gay

On 9/5/10 1:37 PM, Andre Garzia wrote:

Folks,

Did you guys knew that ? is a valid character for naming functions and
commands? I just created a function like that and it works

function mode? pMode
   return pMode is sLocalVarA[mode]
end mode?

and I can use it like this:

if mode?(fundamenteal) then
bla bla bla
end if





It was valid in HC too.

--
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: focus border color

2010-09-05 Thread Terry Judd
It looks like focusColor is broken on OSX at least as setting it either at
the stack or object level has no effect. I always get the standard bluish
color irrespective of what color I set the focusColor to (querying the
focusColor correctly reports the color I have 'applied').

Terry...


On 6/09/10 8:58 AM, Monte Goulding mo...@sweattechnologies.com wrote:

 Hi
 
 the effective focusColor is returning black when I can see that it's a bluish
 color
 
 Any way to find the focus border color?
 
 Cheers
 
 Monte___
 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

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry  Health Sciences
The University of Melbourne


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

2010-09-05 Thread zryip theSlug
On Mon, Sep 6, 2010 at 12:34 AM, Len Morgan len-mor...@crcom.net wrote:

 Len,

 The ideal min size is 40.
 I gave your problem a try. It seems to me that the content of your
 columns is centered. In this case, changing the margins with the
 header margins do nothing, because the field displaying the header
 title has a width of 2 pixels.

 If you can give 10 more pixels for those two columns, all will be ok.
 Otherwise, for now I don't see any workaround.


 Regards,

 Ideal according to who?  Is that a Rev limitation or part of the Data
 Grid?  It seems to be awfully large.  I did expand those columns (and
 reduced the width of another to make them fit) so it's all working now.
  It sure would be nice if we could lower that limit though.


Ideal according to my quick test, sorry. So I correct myself: 40
seems to be the ideal width.

Here is a workaround if you have no need to sort your two columns. You
have to define a default header behavior and change the layoutControl
handler. The header width of a datagrid seems to take care of the
width of the sort arrow you can have in the header in case you want
to sort a column.

on LayoutControl pControlRect
-- Position all of the controls within the header
put the loc of me into theLoc
set the margins of field 1 of me to the dgProps[header margins]
of the dgControl of me
set the rect of graphic Background of me to pControlRect
set the rect of field 1 of me to pControlRect
set the left of graphic LeftHilite of me to item 1 of pControlRect
set the right of graphic RightHilite of me to item 3 of pControlRect

-- Position field and sort arrow -- Your width problem should be here
put the width of button SortArrow of me into theArrowWidth
set the loc of button SortArrow of me to item 3 of pControlRect
- (round(theArrowWidth / 2) + 5), item 2 of the loc of me
add 5 to theArrowWidth
if the textAlign of field 1 of me is center then
set the rect of field 1 of me to item 1 of pControlRect, item
2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect -
item 1 of pControlRect) - (theArrowWidth * 2) ), \
item 4 of pControlRect
set the loc of field 1 of me to theLoc
else
if the visible of button SortArrow of me then
set the rect of field 1 of me to item 1 of pControlRect,
item 2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect
- item 1 of pControlRect) - theArrowWidth ), \
item 4 of pControlRect
else
set the rect of field 1 of me to item 1 of pControlRect,
item 2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect
- item 1 of pControlRect) ), \
item 4 of pControlRect
end if
end if
end LayoutControl

The lesson to change the header behavior is here:
http://lessons.runrev.com/spaces/lessons/manuals/datagrid_tips/lessons/7351-How-Do-I-Add-Tooltips-To-Column-Headers-


HTH


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: focus border color

2010-09-05 Thread Monte Goulding
Ah, anyone know the RGB values for that OS X focus border then?

On 06/09/2010, at 9:35 AM, Terry Judd wrote:

 It looks like focusColor is broken on OSX at least as setting it either at
 the stack or object level has no effect. I always get the standard bluish
 color irrespective of what color I set the focusColor to (querying the
 focusColor correctly reports the color I have 'applied').

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

2010-09-05 Thread Mark Wieder
Len-

Sunday, September 5, 2010, 2:45:39 PM, you wrote:

 As an example, the column for sex (Label = S) is set for 30.  The

...I thought about commenting on column for sex but decided against
it...

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Re: focus border color

2010-09-05 Thread Terry Judd
Based on the colors in the Apple Developer palette it seems to be 67,138,208

Terry...


On 6/09/10 9:46 AM, Monte Goulding mo...@sweattechnologies.com wrote:

 Ah, anyone know the RGB values for that OS X focus border then?
 
 On 06/09/2010, at 9:35 AM, Terry Judd wrote:
 
 It looks like focusColor is broken on OSX at least as setting it either at
 the stack or object level has no effect. I always get the standard bluish
 color irrespective of what color I set the focusColor to (querying the
 focusColor correctly reports the color I have 'applied').
 
 ___
 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

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry  Health Sciences
The University of Melbourne


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

2010-09-05 Thread J. Landman Gay

On 9/5/10 6:50 PM, Mark Wieder wrote:

Len-

Sunday, September 5, 2010, 2:45:39 PM, you wrote:


As an example, the column for sex (Label = S) is set for 30.  The


...I thought about commenting on column for sex but decided against
it...



No you didn't. ;) But I confess I wondered why they had to wait till 30.

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


Menu Accelerators - help!

2010-09-05 Thread Sivakatirswami
 For some reason, I've never been able to get menu accelerator keys to 
work as expected.


the dictionary entry on this makes sense, but could use some examples.  
Seems straight forward enough...


The syntax for menu item strings is:
  [flags] label ['/' accelerator ['|' tag]]

where accelerator

would be, in my case: modifiers char

A very common requirement is Find and Find Again. This looks correct to me:

Find/^ F
Find Again/^G

The menu shows the cmd symbol (os x) and the letter, but cmd-f does 
nothing but invoke the IDE's find dialog; if I turn of development 
tools, it still does not work.  I tried these, since the IDE does not 
use them... as a test...


Find/^U
Find Again/^L

But they are still unresponsive... and, if you enter an upper case 
character, does that mean the user has to use the shift key to make it 
work? I tried both, cmd-shift-U and cmd-U.


neither work.

What am I missing?  Will these *only* work in a standalone?

Thanks
Sivakatirswami
___
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: Menu Accelerators - help!

2010-09-05 Thread stephen barncard
Swami, can't you just Suspend Developer Tools in the Developer menu?

On 5 September 2010 19:29, Sivakatirswami ka...@hindu.org wrote:

  For some reason, I've never been able to get menu accelerator keys to work
 as expected.

 the dictionary entry on this makes sense, but could use some examples.
  Seems straight forward enough...

 The syntax for menu item strings is:
  [flags] label ['/' accelerator ['|' tag]]

 where accelerator

 would be, in my case: modifiers char

 A very common requirement is Find and Find Again. This looks correct to me:

 Find/^ F
 Find Again/^G

 The menu shows the cmd symbol (os x) and the letter, but cmd-f does nothing
 but invoke the IDE's find dialog; if I turn of development tools, it still
 does not work.  I tried these, since the IDE does not use them... as a
 test...

 Find/^U
 Find Again/^L

 But they are still unresponsive... and, if you enter an upper case
 character, does that mean the user has to use the shift key to make it work?
 I tried both, cmd-shift-U and cmd-U.

 neither work.

 What am I missing?  Will these *only* work in a standalone?

 Thanks
 Sivakatirswami
 ___
 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
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: Menu Accelerators - help!

2010-09-05 Thread J. Landman Gay

On 9/5/10 9:29 PM, Sivakatirswami wrote:


A very common requirement is Find and Find Again. This looks correct to me:

Find/^ F
Find Again/^G

The menu shows the cmd symbol (os x) and the letter, but cmd-f does
nothing but invoke the IDE's find dialog; if I turn of development
tools, it still does not work. I tried these, since the IDE does not use
them... as a test...


All you should need is the slash and letter, like this:

Find/F
Find Again/G

These should work whenever your stack menu is the system menu, (i.e., 
you stack menu has focus, it's in a standalone, or you suspend 
development tools.) The IDE catches the keystrokes if it has the focus.


I think you only need to use the control character (^) if it is to be 
coupled with another one, like Cmd-Opt for example. But you're right we 
could use some examples in the docs. The release notes had a few.


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


[OT] PING

2010-09-05 Thread Chipp Walters
Any early thoughts on Apple's new social network? It seems to be getting some 
concerned reviews. 
http://bit.ly/dn5AON

Chipp Walters
CEO, Shafer Walters Group, Inc___
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: Menu Accelerators - help!

2010-09-05 Thread Web Admin Himalayan Academy

 On 9/5/10 4:48 PM, J. Landman Gay wrote:

All you should need is the slash and letter, like this:

Find/F
Find Again/G

These should work whenever your stack menu is the system menu, (i.e., 
you stack menu has focus, it's in a standalone, or you suspend 
development tools.) The IDE catches the keystrokes if it has the focus.


I think you only need to use the control character (^) if it is to 
be coupled with another one, like Cmd-Opt for example. But you're 
right we could use some examples in the docs. The release notes had a 
few.


Find/F
Find Again/G

does not work , repeat... no go.. in fact I tried this first and when it 
did not work, (with suspend development tools on) that's when I tried 
using the additional ^ char

___
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: Menu Accelerators - help!

2010-09-05 Thread Web Admin Himalayan Academy
 Yes,  did that still after IDE is suspended, the accelerator keys 
don't work.


This has plagued me for years...

On 9/5/10 4:35 PM, stephen barncard wrote:

Swami, can't you just Suspend Developer Tools in the Developer menu?

On 5 September 2010 19:29, Sivakatirswamika...@hindu.org  wrote:


  For some reason, I've never been able to get menu accelerator keys to work
as expected.

the dictionary entry on this makes sense, but could use some examples.
  Seems straight forward enough...

The syntax for menu item strings is:
  [flags]label  ['/'accelerator  ['|'tag]]

whereaccelerator

would be, in my case:modifiers  char

A very common requirement is Find and Find Again. This looks correct to me:

Find/^ F
Find Again/^G

The menu shows the cmd symbol (os x) and the letter, but cmd-f does nothing
but invoke the IDE's find dialog; if I turn of development tools, it still
does not work.  I tried these, since the IDE does not use them... as a
test...

Find/^U
Find Again/^L

But they are still unresponsive... and, if you enter an upper case
character, does that mean the user has to use the shift key to make it work?
I tried both, cmd-shift-U and cmd-U.

neither work.

What am I missing?  Will these *only* work in a standalone?

Thanks
Sivakatirswami
___
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