How to select after the defaultResponse of an ask dialog (thanks to Sarah)

2009-10-18 Thread Andre.Bisseret

Bonjour,
In a case of ask dialog, I know what the two first chars must be. I  
only need the user appends more data.
I was on the verge of asking the list about how to select after the  
text of the ask dialog instead of having it all selected.


Before, I searched the archives and found immediately a nice solution  
given by Sarah at

http://www.mail-archive.com/use-revolution@lists.runrev.com/msg71501.html

Sarah said I thought others might need the same thing so here it is :-)

It was just my case yesterday, then, thanks a lot Sarah :-))

Best regards from Grenoble

André



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


Re: How to select after the defaultResponse of an ask dialog (thanks to Sarah)

2009-10-18 Thread Sarah Reichelt
My pleasure Andre - glad you found it.

Cheers,
Sarah


On Sun, Oct 18, 2009 at 6:35 PM, Andre.Bisseret andre.bisse...@inria.fr wrote:
 Bonjour,
 In a case of ask dialog, I know what the two first chars must be. I only
 need the user appends more data.
 I was on the verge of asking the list about how to select after the text of
 the ask dialog instead of having it all selected.

 Before, I searched the archives and found immediately a nice solution given
 by Sarah at
 http://www.mail-archive.com/use-revolution@lists.runrev.com/msg71501.html

 Sarah said I thought others might need the same thing so here it is :-)

 It was just my case yesterday, then, thanks a lot Sarah :-))

 Best regards from Grenoble

 André



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


Close window without ask dialog want to save...

2008-10-13 Thread Josep M Yepes

Hi,

How to do to close a child window from a main stack without receiving  
the ask dialog Do want to save the changes?


I have a main stack that show other substacks that insert data into  
one database. Every time that I show the others stacks when this are  
closed the ask dialog appear.


I looking over the forums but I can't find any... :(  maybe it's a  
dummy question but I don't know how to do..


Cheers,
Josep  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


Ask dialog with multiple button choices

2008-06-21 Thread Bill Vlahos
The ask dialog prompts the user to enter text but then can only  
Cancel and OK?


The answer dialog supports multiple buttons but I can't prompt the  
user to enter text in it.


What I want to do is allow the user to:
Cancel
Update the info
Update the info and go to the next place prompt to enter text

Is there another way to do this without creating a substack dialog box?

Bill Vlahos
___
use-revolution mailing list
use-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: Ask dialog with multiple button choices

2008-06-21 Thread Jim Ault
On 6/21/08 1:41 PM, Bill Vlahos [EMAIL PROTECTED] wrote:

 The ask dialog prompts the user to enter text but then can only
 Cancel and OK?
 
 The answer dialog supports multiple buttons but I can't prompt the
 user to enter text in it.
 
 What I want to do is allow the user to:
 Cancel
 Update the info
 Update the info and go to the next place prompt to enter text
 
 Is there another way to do this without creating a substack dialog box?
 
Make your own modal palette stack with all the user interaction you want.

See Rev documentation, Search, Web Database, type dialog
There will be  Chipp, Dan, Eric, Ken, Wilhelm.
Not bad company to keep :-)

Jim Ault
Las Vegas


___
use-revolution mailing list
use-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: Ask dialog with multiple button choices

2008-06-21 Thread Stephen Barncard
Build your own. It is a surprisingly logical process and not that 
hard to do. And you'll get to rig it just the way you want and it 
might look better too..


check out the 'dialogdata' property for modals. A single array is a 
possibility for more complex dialogs. Put the openstack handler in 
the card script of the dialog stack.



The ask dialog prompts the user to enter text but then can only 
Cancel and OK?


The answer dialog supports multiple buttons but I can't prompt the 
user to enter text in it.


What I want to do is allow the user to:
Cancel
Update the info
Update the info and go to the next place prompt to enter text

Is there another way to do this without creating a substack dialog box?

Bill Vlahos


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



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


dynamically adding links with textStyle, linkText, and an ask dialog

2007-04-03 Thread Curt Ford
In my project I want to let users enter text into a field, then  
highlight some text to add a link; the field contents are then saved  
to a text file to be read in later  displayed with an active link.


This works fine, attached to a button for adding a link:

on mouseUp
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to http://www.google.com;
  put the HTMLText of fld source into fld resultHTML  --a check  
to see how it looks

end mouseUp

But when I try to let the user enter a link with:

on mouseUp
  ask Please enter a link:
  put it into tLink
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to tLink
  put the HTMLText of fld source into fld resultHTML
end mouseUp

..the link ends up following the text that was selected; so if in  
one two three the two was highlighted, the result is:


pfont face=Genevaone twoa href=www.google.com/a three/ 
font/p


Is there a way I can keep the ask dialog box from interfering with  
the selection?


Curt





Dr. Curtis Ford
Instructor of Russian and Linguistics
Dept of Languages, Literatures and Cultures
University of South Carolina

cford at sc.edu


___
use-revolution mailing list
use-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: dynamically adding links with textStyle, linkText, and an ask dialog

2007-04-03 Thread Devin Asay


On Apr 3, 2007, at 1:46 PM, Curt Ford wrote:

In my project I want to let users enter text into a field, then  
highlight some text to add a link; the field contents are then  
saved to a text file to be read in later  displayed with an active  
link.


This works fine, attached to a button for adding a link:

on mouseUp
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to http://www.google.com;
  put the HTMLText of fld source into fld resultHTML  --a check  
to see how it looks

end mouseUp

But when I try to let the user enter a link with:

on mouseUp
  ask Please enter a link:
  put it into tLink
  set the textStyle of the selectedText to link
  set the linkText of the selectedText to tLink
  put the HTMLText of fld source into fld resultHTML
end mouseUp

..the link ends up following the text that was selected; so if in  
one two three the two was highlighted, the result is:


pfont face=Genevaone twoa href=www.google.com/a three/ 
font/p


Is there a way I can keep the ask dialog box from interfering with  
the selection?


Curt,

The ask dialog will change the selection, so the best approach may be  
to save the selectedChunk information in a variable while you do the  
ask dialog, then restore it after the dialog is dismissed.


put the selectedChunk into tSelChunk
ask Please enter a link:
put it into tLink
select tSelChunk -- or whatever the precise syntax would be
-- do the rest of your business here.

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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


ask dialog removes selectedChunk in field

2006-03-01 Thread Garrett Hylltun

Rev 2.6.1

Greetings,

When I use the ask dialog to get some user input on changing some  
hilighted text in a field, the ask dialog removes the focus from the  
field, thus losing the ability to use the selectedChunk after the  
dialog has been dismissed.


I did not know if there was any way within any of the properties to  
stop this, such as setting traversalOn, so I put the selectedChunk  
into a variable before the ask dialog.


Other than what I have done to resolve this, is there some property  
dealing with the ask dialog that might bypass the need to record the  
selectedChunk before the ask dialog?


Thanks,
-Garrett
___
use-revolution mailing list
use-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: ask dialog removes selectedChunk in field

2006-03-01 Thread J. Landman Gay

Garrett Hylltun wrote:

When I use the ask dialog to get some user input on changing some  
hilighted text in a field, the ask dialog removes the focus from the  
field, thus losing the ability to use the selectedChunk after the  
dialog has been dismissed.


I did not know if there was any way within any of the properties to  
stop this, such as setting traversalOn, so I put the selectedChunk  into 
a variable before the ask dialog.


Other than what I have done to resolve this, is there some property  
dealing with the ask dialog that might bypass the need to record the  
selectedChunk before the ask dialog?


I think you've solved the problem in the best way. When a dialog is 
shown, the focus is removed from the original stack and the selection is 
lost; the workaround is exactly what you've done.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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


Selecting after the text of an ask dialog

2006-02-07 Thread Sarah Reichelt
Hi All,

By default, when you do an ask and supply a default value, Rev
selects all the text in the ask dialog's entry field. I have a case
were the data entered needs a prefix, which the program can calculate
and display, but then I want the users to append more data. In this
case, I wanted the cursor to appear after the text instead of having
it all selected.

Here is what I worked out to do this:

on getInfo
send selectAfterAskText to me in 1 tick
ask info What? with ABC
end getInfo

on selectAfterAskText
select after text of fld ID 1119 of stack Ask Dialog
end selectAfterAskText

I thought others might need the same thing so here it is :-)

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


Ask Dialog

2005-12-24 Thread LunchnMeets
Hi Everyone,

When I use:

ask What's your name? with Joe

Joe is selected. Is there a way to have the cursor flash after Joe and 
not have Joe selected?

Also how do I change the rev icon to a warning icon or no icon?

Joe,
Orlando
___
use-revolution mailing list
use-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: Ask Dialog

2005-12-24 Thread Rob Cozens

Hi Joe,


When I use:

ask What's your name? with Joe

Joe is selected. Is there a way to have the cursor flash after Joe and
not have Joe selected?


Not that I know of...and not that it's any of my business, but what 
effect are you trying to achieve?


If the user is Joe, he clicks on OK and Joe is returned in 
it.  If the user's name starts with anything other than Joe, the 
first three characters must be deleted if the selection point is 
after the name, whereas the first keystroke of the name replaces all 
three characters when Joe is selected.




Also how do I change the rev icon to a warning icon or no icon?


First, when I use your line,

 ask What's your name? with Joe

,I get no icon on v2.6.1  Win XP.

Ask syntax is:

ask [iconType] question [with defaultResponse] [with title 
titleText] [as sheet]


with iconType being information, question, warning, error, or 
empty for no icon.


; so you would script--

ask question What's your name? with Joe

Rob Cozens, CCW
Serendipity Software Company

Vive R 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: Larger Ask Dialog

2005-05-09 Thread Jeanne A. E. DeVoto
At 11:56 PM -0500 5/7/05, J. Landman Gay wrote:
The prompt area expands to fit, but the poster may have been asking 
about the text entry area. That's limited to a single line.
If I remember correctly, you could do this in HC by putting a 
multi-line default reply into the command:
  ask What? with return  return  return

Maybe someone should bugzilla this as a feature request? It shouldn't 
be difficult to implement in the ask stack.
--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-08 Thread Roger Guay
Sorry for the confusion, I did want a wider user's reply text field.   
I am asking the user to edit text entries that have as many as 100  
characters.

So based on others replies to this question.  I've come up with a  
solution that seems to work:  If I put a number of spaces after my  
prompt (within the quotes), it seems to expand the width of the Ask  
dialog accordingly.  For example if I use Edit this  
item: with sufficient spaces as the prompt, it  
seems to do the trick.  What do you think?

Thanks, Roger
On May 7, 2005, at 9:53 PM, [EMAIL PROTECTED]  
wrote:

The prompt area expands to fit, but the poster may have been asking
about the text entry area. That's limited to a single line.
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-08 Thread Stephen Barncard
Great out of the box solution. Excellent! This is exactly the Rev 
method - there's a lot of ways to get the job done

At 9:55 AM -0700 5/8/05, Roger Guay wrote:
Sorry for the confusion, I did want a wider user's reply text field.  
I am asking the user to edit text entries that have as many as 100 characters.

So based on others replies to this question.  I've come up with a 
solution that seems to work:  If I put a number of spaces after my 
prompt (within the quotes), it seems to expand the width of the Ask 
dialog accordingly.  For example if I use Edit this item: 
 with sufficient spaces as the prompt, it seems to do the trick. 
What do you think?

Thanks, Roger
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Larger Ask Dialog

2005-05-08 Thread Robert Presender
Hi Roger,
In the event that you have not looked into changing the properties of 
the Ask dialog to meet your needs, the stack Ask Dialog can be found 
when  Revolution UI Elements in Lists is selected in View Menu and 
found in the Applications Browser. The various properties of the Ask 
Dialog can be changed.  Don't know if the changes will be retained upon 
making a standalone.

Regards ... Bob
On Sunday May 8th Roger wrote:
Sorry for the confusion, I did want a wider user's reply text field.
I am asking the user to edit text entries that have as many as 100
characters.
So based on others replies to this question.  I've come up with a
solution that seems to work:  If I put a number of spaces after my
prompt (within the quotes), it seems to expand the width of the Ask
dialog accordingly.  For example if I use Edit this
item: with sufficient spaces as the prompt, it
seems to do the trick.  What do you think?
Thanks, Roger
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Larger Ask Dialog

2005-05-07 Thread Roger Guay
I know that I could hack one, but is there an easy way to increase  
the size of the text field in the standard Ask Dialog to allow for  
more text to be displayed?

TIA, Roger
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-07 Thread Dan Shafer
I assume you mean more text in the user's reply rather than in the  
prompt.

No easy way that I know of.
On May 7, 2005, at 4:26 PM, Roger Guay wrote:
I know that I could hack one, but is there an easy way to increase  
the size of the text field in the standard Ask Dialog to allow for  
more text to be displayed?

TIA, Roger
~~
Dan Shafer, Co-Chair
RevConWest '05
June 17-18, 2005, Monterey, California
http://www.altuit.com/webs/altuit/RevConWest
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-07 Thread J. Landman Gay
On 5/7/05 6:26 PM, Roger Guay wrote:
I know that I could hack one, but is there an easy way to increase  the 
size of the text field in the standard Ask Dialog to allow for  more 
text to be displayed?
It expands dynamically. Just enter as much text as you want as the 
prompt. You can add carriage returns too (crcr) to make paragraphs.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-07 Thread Dar Scott
On May 7, 2005, at 5:26 PM, Roger Guay wrote:
I know that I could hack one, but is there an easy way to increase the 
size of the text field in the standard Ask Dialog to allow for more 
text to be displayed?
A couple comments...
A multiple line response does break out of the usual expectation for 
this kind of dialog.  Or do you want wider?

I acknowledge that you know you can hack one, but maybe instead of 
thinking a quick fix, you might want to consider what your signature 
dialog boxes should look like and fully embrace the idea and set aside 
some time to make those.

If you mean for the question--it currently wraps and generates the size 
needed.

Dar
--
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
A Sponsor of RevCon West
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Larger Ask Dialog

2005-05-07 Thread MisterX
Jacqueline,

Not when the stack compiled - last i tried and gave it up completely for a
custom solution.  

may have changed in 2.5.1?

cheers
Xavier

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 J. Landman Gay
 Sent: Sunday, May 08, 2005 04:42
 To: How to use Revolution
 Subject: Re: Larger Ask Dialog
 
 On 5/7/05 6:26 PM, Roger Guay wrote:
 
  I know that I could hack one, but is there an easy way to increase  
  the size of the text field in the standard Ask Dialog to allow for  
  more text to be displayed?
 
 It expands dynamically. Just enter as much text as you want 
 as the prompt. You can add carriage returns too (crcr) to 
 make paragraphs.
 
 -- 
 Jacqueline Landman Gay | [EMAIL PROTECTED]
 HyperActive Software   | http://www.hyperactivesw.com
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-revolution
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Larger Ask Dialog

2005-05-07 Thread J. Landman Gay
On 5/7/05 11:47 PM, MisterX wrote:
 Jacqueline,

 Not when the stack compiled - last i tried and gave it up completely 
for a
 custom solution.

 may have changed in 2.5.1?

The prompt area expands to fit, but the poster may have been asking 
about the text entry area. That's limited to a single line.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask dialog cursor

2004-10-06 Thread Frank D. Engel, Jr.
On Oct 6, 2004, at 1:22 AM, Andrew wrote:
Hi, Frank.  Thanks for your response!
In other words, since the stack is part of the IDE, modifying it will
affect the entire IDE and any stack opened within the IDE which
utilizes the resources of that stack.
Great, so what code should I put in my preopenstack handler to tinker 
with the IDE ask stack?  (To make the cursor appear after the entered 
key in the ask dialog)
You can see the IDE's stacks in Application Browser after setting a 
preference to do so (Under 2.5, this is on the General page of 
preferences and is labelled Revolution UI elements appear in lists of 
stacks).

However, personally, I recommend the other approach (below).
Is there an easier way to solve this problem without tinkering with
external stacks?  Can i just make all the changes within my stack?
Sure.  Make your own custom ask dialog box and use it instead of the
one provided by Rev.
Great!  how do I do that?
Create a new substack, with a field for your input and whatever buttons 
you wish to appear, perhaps OK and Cancel.

stack My Ask Dialog:
on preOpenStack
  -- do whatever you need to do to fill in the field with the starting 
value from your program
  select after field My Ask Field
end preOpenStack

button OK of stack My Ask Dialog:
on mouseUp
  -- do whatever you need to do to send the value back to your program
  put OK into it
end mouseUp
button Cancel of stack My Ask Dialog:
on mouseUp
  put Cancel into it
end mouseUp

Now to open the dialog, use one of these two commands:
modal My Ask Dialog-- will always open the dialog as a modal 
dialog

sheet My Ask Dialog -- will open the dialog as a sheet under OS X 
(if no other sheet open), else
 -- will open as a modal 
dialog, as with the modal comma nd

Note that with 2.2.1 there was a bug which could cause Rev to crash 
when using the sheet command when a sheet was already opened; this 
seems to be fixed in 2.5, however.

None of this is difficult.

Thanks!
Andrew
---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask dialog cursor

2004-10-05 Thread Andrew
Hi, Frank.  Thanks for your response!
In other words, since the stack is part of the IDE, modifying it will
affect the entire IDE and any stack opened within the IDE which
utilizes the resources of that stack.
Great, so what code should I put in my preopenstack handler to tinker 
with the IDE ask stack?  (To make the cursor appear after the entered 
key in the ask dialog)

Is there an easier way to solve this problem without tinkering with
external stacks?  Can i just make all the changes within my stack?
Sure.  Make your own custom ask dialog box and use it instead of the
one provided by Rev.
Great!  how do I do that?
Thanks!
Andrew
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ask dialog in windows standalone

2004-03-17 Thread Andrew
Yes.  :)
On Tuesday, March 16, 2004, at 05:03  PM, Jeremy Smith wrote:
Have you made sure that the ask dialog is included in the standalone? 
Might
just be
as simple as that...
I'm still having trouble with my ask window not appearing on my 
windows
standalone due to something ill in my script, and the only suggestion 
that
has been made is to replace greater than or equals signs with =. 
 I
have done this, but windows still seems to find fault in my scripts, 
and it
shows its disapproval by refusing to show my ask boxes.  Is there any 
other
thing that I should replace in my scripts to appease windows?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Ask dialog box

2003-01-30 Thread Jim Hurley
I am not very familiar with  the fine points of RR on the PC. So this 
may be a well known issue for many of you.

I ran a stack generated on the Mac (where it runs as expected) on the 
PC but ran into quirky behavior. The Ask dialog box didn't disappear 
entirely after clicking OK. It hung around as a faded, flickering 
form behind some fields until the script was completed and only then 
disappeared. Does this ghost haunt only my machine?

Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: ask dialog not appearing in my stack

2002-07-17 Thread Wilhelm Sanke

Looking through the digests it seems to me that the last request of
Chipp Walters of July, 7th, has not yet been asnwered.

Chipp Walters [EMAIL PROTECTED] on Sun, 7 Jul 2002 wrote:


 Found the windows...but no code. Do you know where the answer code might be located? 
Or is it 'hard-wired?'
 It seems to me that: answer hello world with okay or cancel doesn't conform to 
handler syntax...or does it? (with
 not defined) btw- can't find the code in debug mode either.
 best,
 Chipp

Hi Chipp,

the Rev answer dialog has 1 card, with 1 field, 1 icon button, and 7
more buttons with the IDs from 1240 to 1242 and 1245 to 1248. All
controls are *without code, i.e. scripts.

The only code is in the card script, which is rather long. If you do not
need the full flexibility of the Rev answer dialog, you should write
your own customized - and very short - answer dialog, which is even
possible within the restrictions of the Starter Kit.

Regards,

Wilhelm Sanke

Here is the full text of the answer dialog script:

##Card Script of  Rev answer dialog
on preOpenStack
  global gAPKLargeFonts
  --platform specific font adjustments
  set the defaultStack to answer dialog
  set the default of button 2 to false
  switch the platform
  case MacOS
set the loc of this stack to the screenLoc
set the top of this stack to round(item 4 of the screenRect/5)
repeat with i = 2 to the number of btns
  set the bottomMargin of btn i to 3
  set the height of btn i to 20
end repeat
if char 1 of the systemVersion is 1 then
  --OS X
  set the textFont of this stack to Lucida Grande
  set the textSize of this stack to 13
  set the textSize of fld 1 to 11
  put 210002 210001 210012 210009 into tIcons
else
  set the textFont of this stack to usesystemfont
  set the textSize of this stack to 12
  set the textFont of fld 1 to Geneva
  set the textSize of fld 1 to 10
  put 210002 210001 210012 210009 into tIcons
end if
break
  case Win32
if gAPKLargeFonts then
  put 26 into tNumber
  put 7 into tMargin
else
  put 21 into tNumber
  put 5 into tMargin
end if
repeat with i = 2 to the number of btns
  set the bottomMargin of btn i to tMargin
  set the height of btn i to tNumber
  set the traversalOn of btn i to false
  set the mnemonic of btn i to 0
end repeat
set the textFont of this stack to MS Sans Serif
set the textSize of this stack to 10
set the textFont of fld 1 to empty
put 210005 210011 210003 210004 into tIcons
break
  default
repeat with i = 2 to the number of btns
  set the bottomMargin of btn i to 4
  set the height of btn i to 21
  set the traversalOn of btn i to false
  set the mnemonic of btn i to 0
end repeat
set the textFont of this stack to Helvetica
if gAPKLargeFonts then set the textSize of this stack to 14
else set the textSize of this stack to 12
set the textFont of fld 1 to empty
put 210008 210010 210006 210010 into tIcons
break
  end switch
  --is there an icon to display or not?
  set the itemDelimiter to numToChar(0)
  if word 2 of item 1 of the dialogData is plain then
set the loc of btn 1 to -100,21
put 0 into tIconAllowance
  else
set the loc of btn 1 to 26,21
set the icon of button icon to word wordOffset(word 2 of item 1 of
the dialogData, information error warning question) of tIcons
put 40 into tIconAllowance
  end if
  --title
  if item 2 of the dialogData is empty then set the title of this stack
to space
  else set the title of this stack to item 2 of the dialogData
  put item 3 of dialogData into fld 1
  if the platform is MacOS then
set the textFont of fld 1 to usesystemfont
set the textSize of fld 1 to 12
  end if
  --buttons
  put item 4 of dialogData into tButtonNames
  put the number of lines in tButtonNames into tNoOfButtons
  if tButtonNames is empty then
put OK into tButtonNames
put 1 into tNoOfButtons
  end if
  put 32 into tTotalBtnWidth
  --truncate more buttons to the maximum allowed (7)
  if tNoOfButtons  the number of buttons - 1 then put the number of
buttons - 1 into tNoOfButtons
  put empty into tMnemonicString
  repeat with i = 2 to (tNoOfButtons + 1)
--   put got here 1  i  tNoOfButtons
--set the loc of btn i to the cPrevLoc of btn i --show btn
set the name of button i to line tNoOfButtons - (i - 2) of
tButtonNames
-- put got here 2  i
if the platform is Win32 and the short name of btn i is not in
OKCancel then
  --  put got here 3  i
  put 0 into tNo
  --put got here 4  i
  repeat for each char x in the short name of btn i
--  put got here 5  i
add 1 to tNo
-- put got here 6  i
if x is not in tMnemonicString then
  -- put got here 7  i
  put x after tMnemonicString
  --   put got here 8  i
  set the mnemonic of btn i to tNo
  --   put got here 9  i
 

Re: ask dialog not appearing in my stack

2002-07-07 Thread Björnke von Gierke

You can look at all the stacks from runrev when you mark the first 
checkbox in the general preference. the ask and answer dialogs are in 
the first stack, (License.rev)

Björnke

On Sonntag, Juli 7, 2002, at 08:18 , Chipp Walters wrote:

 Geoff,

 Can you tell me where the ask and answer stacks are in RR? I want to 
 create
 an htmltext enabled version of them and would like to see the originals 
 if
 possible.

 Thanks,

 Chipp

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: ask dialog not appearing in my stack

2002-07-07 Thread Geoff Canyon

Geoff,

Can you tell me where the ask and answer stacks are in RR? I want to create
an htmltext enabled version of them and would like to see the originals if
possible.

Thanks,

Chipp


In license.rev. In the application overview, with View/Revolution UI Stacks In Lists 
checked.
-- 

regards,

Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: ask dialog not appearing in my stack

2002-07-07 Thread Chipp Walters

Found the windows...but no code. Do you know where the answer code might be
located? Or is it 'hard-wired?'

It seems to me that:
 answer hello world with okay or cancel
doesn't conform to handler syntax...or does it? (with not defined)

btw- can't find the code in debug mode either.

best,
Chipp

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Canyon
 Sent: Sunday, July 07, 2002 3:53 AM
 To: [EMAIL PROTECTED]
 Subject: RE: ask dialog not appearing in my stack


 Geoff,
 
 Can you tell me where the ask and answer stacks are in RR? I
 want to create
 an htmltext enabled version of them and would like to see the
 originals if
 possible.
 
 Thanks,
 
 Chipp
 

 In license.rev. In the application overview, with View/Revolution
 UI Stacks In Lists checked.
 --

 regards,

 Geoff Canyon
 [EMAIL PROTECTED]
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: ask dialog not appearing in my stack

2002-07-06 Thread Geoff Canyon

At 2:03 PM -0700 7/5/02, Brian Kelly wrote:
This may be a total newbie question, but why doesn't the ask dialog show up when I 
run my stack when Revolution isn't running?

This running Mac OS 10.1.5.

This isn't running as a standalone built distribution, just the stack itself. I 
thought in this situation I would have access to the resources of the Revolution app 
itself. If that is not the case, can I just copy the relevant dialogs over to the 
stack using Resorcerer?

The ask and answer dialogs are not built-in resources (as they were in HyperCard, if 
you are familiar with it). Instead, they are separate stacks. They are built into the 
Revolution development environment. The standalone builder will bundle them with your 
application automatically, so including them in your stack yourself generally isn't 
necessary. It does mean that you can't run your stack without the development 
environment, though.
-- 

regards,

Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: ask dialog not appearing in my stack

2002-07-06 Thread Björnke von Gierke


On Sonntag, Juli 7, 2002, at 02:08 , Geoff Canyon wrote:

 ... Talking about Ask/answer Dialog ...

  It does mean that you can't run your stack without the development 
 environment, though.
 --

Well you have to build it before you can use it without the 
dev-environment, like the readme (or was it in the docs?) states:
If you want to share your stack with others then we recommend that you 
use the distribution builder to ensure full functionality. (or similar 
phrase)


clarifying
Björnke

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: ask dialog not appearing in my stack

2002-07-06 Thread Chipp Walters

Geoff,

Can you tell me where the ask and answer stacks are in RR? I want to create
an htmltext enabled version of them and would like to see the originals if
possible.

Thanks,

Chipp

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



ask dialog not appearing in my stack

2002-07-05 Thread Brian Kelly

This may be a total newbie question, but why doesn't the ask dialog 
show up when I run my stack when Revolution isn't running?

This running Mac OS 10.1.5.

This isn't running as a standalone built distribution, just the stack 
itself. I thought in this situation I would have access to the 
resources of the Revolution app itself. If that is not the case, can 
I just copy the relevant dialogs over to the stack using Resorcerer?

Thanks,
Brian
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



ask dialog not appearing in my stack

2002-07-05 Thread Kurt Kaufman

BK wrote:
...but why doesn't the ask dialog
show up when I run my stack when Revolution isn't running?...

Hi Brian,
I believe that you need to open up your stack from WITHIN Revolution in 
order to access the dialog resources (among other resources, color and 
font settings, etc.)
HTH, Kurt

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



List Field and Ask Dialog

2002-04-06 Thread Magnus von Brömsen

Hello

I have a List Field with some lines of text. When clicking a line I want 
the Ask dialog shown, fill in a number and have that number put in (with 
a tab) after the last word of the line.

1. This script in the Text Field works:

on mouseUp
   put tab  1 after the last word of the selectedText -- the number 
1 is an test
end mouseUp


2. But if I add the Ask-dialog:

on mouseUp
   ask How many?
   put tab  it after the last word of the selectedText
end mouseUp

I have this error:

Chunk: no target found

put tab  it after the last word of the selectedText

Value: mouseUp

I have tried a lot of different ways (clickText, clickLine, 
selectedLine...) but always the same error: Chunk: no target found

Anyone having a solution? An idea? All help will be appreciated!

Thanks.
Magnus von Brömsen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: List Field and Ask Dialog

2002-04-06 Thread David Vaughan

Magnus

Without giving you the text of the answer, your problem is that in your 
test case you have already selected a line in the field so the chunk 
(selectedText) is valid. After the ask dialog that field is no longer 
selected so any chunk address fails.

You need to note the line you selected before the ask dialog and then 
reselect it before doing the put statement.

regards
David

On Saturday, April 6, 2002, at 06:41 , Magnus von Brömsen wrote:

 Hello

 I have a List Field with some lines of text. When clicking a line I 
 want the Ask dialog shown, fill in a number and have that number put in 
 (with a tab) after the last word of the line.

 1. This script in the Text Field works:

 on mouseUp
   put tab  1 after the last word of the selectedText -- the number 
 1 is an test
 end mouseUp


 2. But if I add the Ask-dialog:

 on mouseUp
   ask How many?
   put tab  it after the last word of the selectedText
 end mouseUp

 I have this error:

 Chunk: no target found
 
 put tab  it after the last word of the selectedText
 
 Value: mouseUp

 I have tried a lot of different ways (clickText, clickLine, 
 selectedLine...) but always the same error: Chunk: no target found

 Anyone having a solution? An idea? All help will be appreciated!

 Thanks.
 Magnus von Brömsen

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: List Field and Ask Dialog

2002-04-06 Thread Jeanne A. E. DeVoto

At 2:39 AM -0800 4/6/2002, Magnus von Brömsen wrote:
I get the old error (Chunk: no target found) when trying this:

  on mouseUp
 ask How many?
 if it is not empty then put tab  it after the selectedLine
   end mouseUp

You may need to set the button's traversalOn to false. (This avoids losing
the selection when you click the button.)

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: List Field and Ask Dialog

2002-04-06 Thread Magnus von Brömsen

Many thanks David
I did the same test as you -- and that works fine!?!. Then I went back 
to my original text field to find what is wrong.

For some reason I had deselect Can Recive Keyboard focus. I dont now 
why...

Thanks for all help.

/magnus


On lördag, april 6, 2002, at 01:37 , David Vaughan wrote:

 Magnus

 I checked this and it worked on a List field with LockText true

 on mouseUp
   put the selectedLine into sLine
   ask how many with 1
   select sLine
   put tab  it after the selectedLine
 end mouseUp

 regards
 David


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Ask dialog and write file to disc

2002-01-24 Thread Magnus von Brömsen
Hello
I use the Ask file command to let the user provide the name and location of a txt-file. But on testing no file it written to disc. 

I get no errors.

So, can anybody tell me what is wrong with this script:

on mouseUp
ask file "Save your order" with "Untitled.txt"
if it is empty then exit mouseUp
open it
write field "totalOrder" to file it
end mouseUp

/magnus


--
"En lång resa mot fulländandet – från 6.04 till OSX"
--
Studio Alice
Magnus von Brömsen
0702-212 495
0322-633 833
www.studioalice.se

Re: Ask dialog and write file to disc

2002-01-24 Thread Klaus

Hi Magnus,

 Recently, Magnus von Brömsen wrote:
 
 So, can anybody tell me what is wrong with this script:
 
 on mouseUp 
 ask file Save your order with Untitled.txt
 if it is empty then exit mouseUp
 open it 
 write field totalOrder to file it
 end mouseUp 
 
 Looks like you're missing a line to finish the write command.  Try this:
 
 open file it 
 write field totalOrder to file it
 close file it
 
 Regards,
 
 Scott Rossi
 Creative Director

you can have it even shorter ;-)

on mouseUp 
ask file Save your order with Untitled.txt
if it is empty then exit mouseUp
put field totalOrder into url (file:  it)  ## !!!
end mouseUp 

Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


Watch out where the huskies go, and don't you eat that yellow snow !
Frank Zappa, Nanook rubs it ;-)

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: Ask dialog and write file to disc

2002-01-24 Thread Barlow Frank



after 
the ask statement try

put 
it - into the message box as a 
check

then 
change the if statement

if it 
is empty
then
exit 
mouseUp
else
put it 
into fld id 1
end 
if



 Frank
 Unconundrum Ltd
 [EMAIL PROTECTED]




  -Original Message-From: Magnus von Brömsen 
  [mailto:[EMAIL PROTECTED]]Sent: 24 January 2002 
  10:48To: [EMAIL PROTECTED]Subject: Ask 
  dialog and write file to disc
  Hello 
  I use the Ask file command to let the user provide the 
  name and location of a txt-file. But on testing no file it written to disc. 
  
  I get no errors. 
  So, can anybody tell me what is wrong with this script: 
  
  on mouseUp 
  ask file "Save your order" with "Untitled.txt" 
  
  if it is empty then exit mouseUp 
  open it 
  write field "totalOrder" to file it 
  end mouseUp 
  /magnus 
  -- 
  
  "En lång resa mot fulländandet – från 6.04 till OSX" 
  -- 
  
  Studio Alice 
  Magnus von Brömsen 
  0702-212 495 
  0322-633 833 
  www.studioalice.se


Re: Ask dialog and write file to disc

2002-01-24 Thread Klaus

Hi Magnus,


 Many thanks!
 Works great now. (I had missed file in Open  Close.)

 
 you can have it even shorter ;-)
 
 on mouseUp
 ask file Save your order with Untitled.txt
 if it is empty then exit mouseUp
 put field totalOrder into url (file:  it)  ## !!!
 end mouseUp
 
 I'm new to Revolution (my first project). So, that combination
 of ( ), is it replaced by the actual name of the file?.
 
 /magnus

Yes, kind of...

the url command needs a complete string as an argument.

So the correct syntax would be:

put fld 1 into url file:Your_complete/path_to_the/file.txt

So the actual filepath and the file: have to be concenated first,
that's what the parenthesis are for.

(The  (ampersand) concatenates 2 strings.)

If you leave them, there will be an error.


Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution