Re: Combo-box/popup menu in a list field?

2005-03-30 Thread Jan Schenkel
--- Paul Claude <[EMAIL PROTECTED]> wrote:
> Hi Jan,
> 
> Can you send me your stack? I have the same problem
> of Valetia, to put
> option-menu buttons to each row of a specified
> column in a scrolling list
> field.
> 
> Thanks
> 
> Paul
> 

Hi Paul,

Sorry for the late reply, but I've been drowning in
work and only noticed this message just now.
You can find the mentioned example stacks at :

They'll move to my new site just as soon as I finish
those last pesky details.

Jan Schenkel.

Quartam - Tools for Revolution


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



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Combo-box/popup menu in a list field?  

2005-03-24 Thread Michael Mandaville
Paul,

Are you trying to get this from Jan Schenkel?  I may have something similar.

Michael 


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


Combo-box/popup menu in a list field?

2005-03-23 Thread Paul Claude
Hi Jan,

Can you send me your stack? I have the same problem of Valetia, to put
option-menu buttons to each row of a specified column in a scrolling list
field.

Thanks

Paul


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


Re: Combo-box/popup menu in a list field?

2003-02-27 Thread Jeanne A. E. DeVoto
At 8:54 AM -0800 2/27/03, Ben Rubinstein wrote:
>> I'll take a look at this. (You mean just a mention of the menuPick or
>> mouseDown message being sent to the menu button or stack, right?)
>
>It sounds obvious when you say it.  But in the absence of that, there's no
>reason to think that 'the result' of the popup command won't be something
>useful; or to know which message will be relevant.

Oh, definitely. I didn't mean it was obvious - just wanted to make sure I
understood what you meant.

--
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: Combo-box/popup menu in a list field?

2003-02-27 Thread Ben Rubinstein
on 2/25/03 7:15 AM, Jeanne A. E. DeVoto wrote

> At 3:34 AM -0800 2/21/03, Ben Rubinstein wrote:
>> Jeanne - I think this is an area which could be better covered in the docs,
>> specifically the entry in the transcript dictionary for the 'popup' command.
>> It explains how to popup either a button menu or stack - but doesn't tell
>> you where the result of the user's selection ends up.
> 
> I'll take a look at this. (You mean just a mention of the menuPick or
> mouseDown message being sent to the menu button or stack, right?)

Right.

It sounds obvious when you say it.  But in the absence of that, there's no
reason to think that 'the result' of the popup command won't be something
useful; or to know which message will be relevant.

You might also discuss what happens to statements following the popup
command in the original handler.

thanks for list-ening,
 
  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


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


Re: Combo-box/popup menu in a list field?

2003-02-26 Thread Jeanne A. E. DeVoto
At 3:34 AM -0800 2/21/03, Ben Rubinstein wrote:
>Jeanne - I think this is an area which could be better covered in the docs,
>specifically the entry in the transcript dictionary for the 'popup' command.
>It explains how to popup either a button menu or stack - but doesn't tell
>you where the result of the user's selection ends up.

I'll take a look at this. (You mean just a mention of the menuPick or
mouseDown message being sent to the menu button or stack, right?)

--
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: Combo-box/popup menu in a list field?

2003-02-25 Thread [EMAIL PROTECTED]
Hi Ben,

> Sorry I've only just read your reply.  This list is very active and I often
> skip chunks altogether

No problem at all! :-)

> When I've done this, I've not made use of the clickChunk.  I can't swear
> that I've done it with a field who's listBehaviour is set to true. But to
> give you an idea, here's a handler from a field where I'm currently doing
> something like this.

I've just tested it and yes it does indeed work when the listBehavior is set
to true...thanks!! :-)

Valetia

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


Re: Combo-box/popup menu in a list field?

2003-02-25 Thread Ben Rubinstein
on 21/2/03 12:32 pm, [EMAIL PROTECTED] wrote

> Your method sounds exactly like what I had actually tried to accomplish
> (display a popup at a specific location per line).
> 
> However, I did run into a problem (still unsolved) that perhaps you know the
> answer to.
> 
> It's also why I had posted an earlier message (to which there have not been
> any replies) regarding the strange behavior of clickChunk with list fields.
> 
> Here's what I had posted in that earlier message:
> 
> "When the listBehavior of a field is set to true, it seems the clickChunk
> returns the hilitedLine instead...(could this be a bug?)
> 
> "How do you get the "actual" clickChunk then?"
> 
> So a related question would be, with the method you just described, do you
> use the clickChunk to determine the location of the click, or something
> else?

HI Valetia

Sorry I've only just read your reply.  This list is very active and I often
skip chunks altogether

When I've done this, I've not made use of the clickChunk.  I can't swear
that I've done it with a field who's listBehaviour is set to true. But to
give you an idea, here's a handler from a field where I'm currently doing
something like this.

It just so happens that in this case my list has three sections to each row,
and I'm using tabs to format it; and I only want the menu to appear when the
user clicks in the third column.  The actual code in this case is:

on mouseDown
  put word 2 of the clickLine into n
  put the clickH - the left of me into xPix
  put the tabStops of me into tStops
  if xPix > item 2 of tStops then
setFieldNewNameD n
  end if
end mouseDown

...where 'setFieldNewNameD' happens to be handler in the card script when
ends up by using the popup command to popup a menu button.  So in this case
I am actually using 'click-family functions', which might or might not give
the right results if the field listBehaviour was set to true; but I think
the real point is that this is doing some pixel level calculations, to work
out what bit of data the user is operating on.

In another project, I'm pretty certain that I actually created an array (or
was it a custom property of the field?) at the time that I format the text
to put into the field, precisely so that when the user clicks somewhere on
it I'd be able to do a quick calculation to work out what chunks _in my
terms_ the user had clicked on.

Does that help?  I'm not really sure if it's clear - if you're still having
trouble (and you may in any case have solved your problem by now) come back
to me if you want more explanation.
 
  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


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


Re: Combo-box/popup menu in a list field?

2003-02-21 Thread Jan Schenkel
> Okay, I quickly created a GeoCities webpage ; and
> here's the link everybody interested can download
> it directly from :
>
>
http://www.geocities.com/janschenkel/downloads/checkboxlist.zip

I just uploaded a new version, which should fix a few
issues I bumped into when I wanted to review it on my
PowerBook. It should also be a bit easier to use.

Hope this helped,

Jan Schenkel.

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

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Combo-box/popup menu in a list field?

2003-02-21 Thread [EMAIL PROTECTED]
Hi Ben,

Your method sounds exactly like what I had actually tried to accomplish
(display a popup at a specific location per line).

However, I did run into a problem (still unsolved) that perhaps you know the
answer to.

It's also why I had posted an earlier message (to which there have not been
any replies) regarding the strange behavior of clickChunk with list fields.

Here's what I had posted in that earlier message:

"When the listBehavior of a field is set to true, it seems the clickChunk
returns the hilitedLine instead...(could this be a bug?)

"How do you get the "actual" clickChunk then?"

So a related question would be, with the method you just described, do you
use the clickChunk to determine the location of the click, or something
else?

> Note that, AFAIK, there's no way for the handler which issues the 'popup'
> command to get the results of the popup, without cooperation from the menu
> button.  IE if you have to script the menu button (in a 'menupick' handler)
> to either know what it should do, or send the message on to the field or
> wherever else you're handling things.

Right. Now...how then should I get the popup button to know which line I'm
activating the popup from?

Valetia

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



Re: Combo-box/popup menu in a list field?

2003-02-21 Thread Ben Rubinstein
on 20/2/03 6:21 pm, [EMAIL PROTECTED] wrote

> How do you create a combo-box/popup menu that appears *inside* a scrolling
> list field?
> 
> Specifically one that appears on each line of a certain column (the list
> field has vGrid set to true)?

Depending just what you want - most probably Ken's suggestion is best
(instead of a scrolling field, use a scrolling group, with multiple popup
menu buttons, one for each line).  But it's possible that your requirement
is more like the one I had recently; I wanted the same menu to appear on
each line, but only when the user clicks.

For this you have a hidden popup menu button somewhere on the card, and use
the 'popup' command to make it appear in the right place when the user
clicks.

Even if you want the appearance of the menu control (something with a little
triangle on it, for example) to appear on every line, it might be easiest to
use an image for that, which can be part of the 'text' of the scrolling
field, and then have a single menu which you popup on command, rather than
having to clone the menu button for each line.

Note that, AFAIK, there's no way for the handler which issues the 'popup'
command to get the results of the popup, without cooperation from the menu
button.  IE if you have to script the menu button (in a 'menupick' handler)
to either know what it should do, or send the message on to the field or
wherever else you're handling things.

Jeanne - I think this is an area which could be better covered in the docs,
specifically the entry in the transcript dictionary for the 'popup' command.
It explains how to popup either a button menu or stack - but doesn't tell
you where the result of the user's selection ends up.  I had to hunt around
to figure out the answer in each case (and of course the answer is different
for button menus and stack menus).  (One of the recipes in the new cookbook
mentions the answer for the button case.)

Scott, if you're reading - it would be a tremendous shortcut if there was a
mode of the 'popup' command that made it behave like the 'modal' command -
so a handler (somewhere) could issue a 'popup' command and in the following
statement test the result to find out what the user selected.
 
  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


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



Re: Combo-box/popup menu in a list field?

2003-02-20 Thread [EMAIL PROTECTED]
Hi Ken, hi Jan,

> Okay, I quickly created a GeoCities webpage ; and
> here's the link everybody interested can download it
> from directly :
> http://www.geocities.com/janschenkel/downloads/checkboxlist.zip

Thanks, will experiment with these suggestions. :-)

Valetia

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



Re: Combo-box/popup menu in a list field?

2003-02-20 Thread Jan Schenkel
--- Jan Schenkel <[EMAIL PROTECTED]> wrote:
> 
> Hi Valetia,
> 
> I have a stack that emulates a series of checboxes
> in
> a list field. All in all, it shouldn't prove too
> hard
> to change the checkbox to an option-menu button for
> your purposes.
> So if you're interested, I can send you the stack
> off-list (it's only 11KB) -- same goes for everyone
> else who wants to have a peek at the source code :-)
> Those people can drop me a line off-list.
> 

Okay, I quickly created a GeoCities webpage ; and
here's the link everybody interested can download it
from directly :
http://www.geocities.com/janschenkel/downloads/checkboxlist.zip

Hope this helped some people, I'm off to bed now
*grin*

Jan Schenkel.

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

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Combo-box/popup menu in a list field?

2003-02-20 Thread Jan Schenkel
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hey all,
> 
> How do you create a combo-box/popup menu that
> appears *inside* a scrolling
> list field?
> 
> Specifically one that appears on each line of a
> certain column (the list
> field has vGrid set to true)?
> 
> I know that in all likelihood this is probably not
> possible with Revolution,
> but in that case, what would be the best way to
> implement something that
> achieves the same effect?
> 
> Valetia
> 

Hi Valetia,

I have a stack that emulates a series of checboxes in
a list field. All in all, it shouldn't prove too hard
to change the checkbox to an option-menu button for
your purposes.
So if you're interested, I can send you the stack
off-list (it's only 11KB) -- same goes for everyone
else who wants to have a peek at the source code :-)
Those people can drop me a line off-list.

Best regards,

Jan Schenkel.

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

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Combo-box/popup menu in a list field?

2003-02-20 Thread Ken Ray
Place a clone of the popup menu button in the proper place on each line
of the field. Make sure the field is *not* scrolling. Then group the
field and all the buttons and set the scrolling of the group to true.
You'll need to "manually" code for creating new clones of the popup menu
and relocating the clone for each new row added, but that would be the
way to do it.

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 12:21 PM
Subject: Combo-box/popup menu in a list field?


> Hey all,
>
> How do you create a combo-box/popup menu that appears *inside* a
scrolling
> list field?
>
> Specifically one that appears on each line of a certain column (the
list
> field has vGrid set to true)?
>
> I know that in all likelihood this is probably not possible with
Revolution,
> but in that case, what would be the best way to implement something
that
> achieves the same effect?
>
> Valetia
>
> ___
> 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



Combo-box/popup menu in a list field?

2003-02-20 Thread [EMAIL PROTECTED]
Hey all,

How do you create a combo-box/popup menu that appears *inside* a scrolling
list field?

Specifically one that appears on each line of a certain column (the list
field has vGrid set to true)?

I know that in all likelihood this is probably not possible with Revolution,
but in that case, what would be the best way to implement something that
achieves the same effect?

Valetia

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