List to checkboxes how to?

2008-09-12 Thread Michael
Hi:

I create a cr delimited list of attached disks, which can have 1 to 10
lines, and I want those lines to be choices in a checkbox field which I can
turn on and off, and find out which ones are checked at any given time.

I thought I might be able to simply specify that the field is a "checkbox
field", or is a button with contents that displays as checkboxes, but that
doesn't seem to be the case. I can't find an example of this basic scenario
in the manual. Is there a resource I can access for how to use checkboxes in
this manner?

Thanks,

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


Re: List to checkboxes how to?

2008-09-12 Thread Ian Wood

Sounds like you want a list field with multiple selections allowed.

For checkboxes you'd need to create a checkbox button for each disk  
and then check the hilite of each checkbox.


Ian

On 12 Sep 2008, at 23:44, Michael wrote:


Hi:

I create a cr delimited list of attached disks, which can have 1 to 10
lines, and I want those lines to be choices in a checkbox field  
which I can
turn on and off, and find out which ones are checked at any given  
time.


I thought I might be able to simply specify that the field is a  
"checkbox
field", or is a button with contents that displays as checkboxes,  
but that
doesn't seem to be the case. I can't find an example of this basic  
scenario
in the manual. Is there a resource I can access for how to use  
checkboxes in

this manner?

Thanks,

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


___
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: List to checkboxes how to?

2008-09-13 Thread Eric Chatonet

Bonjour Ian et Michael,

In such a case I prefer to set an invisible locked template group  
that contains one check box.
When needed and on-the-fly, the group is cloned and its only check  
box cloned also as many times as needed.
Then the scroll bar of the group is shown according to its height and  
formattedHeight.
The group has always the same height according to my layout (but it  
may be resized with the window if you wish it) and appears as a  
scrollable list.


Le 13 sept. 08 à 01:36, Ian Wood a écrit :


Sounds like you want a list field with multiple selections allowed.

For checkboxes you'd need to create a checkbox button for each disk  
and then check the hilite of each checkbox.


Ian

On 12 Sep 2008, at 23:44, Michael wrote:


Hi:

I create a cr delimited list of attached disks, which can have 1  
to 10
lines, and I want those lines to be choices in a checkbox field  
which I can
turn on and off, and find out which ones are checked at any given  
time.


I thought I might be able to simply specify that the field is a  
"checkbox
field", or is a button with contents that displays as checkboxes,  
but that
doesn't seem to be the case. I can't find an example of this basic  
scenario
in the manual. Is there a resource I can access for how to use  
checkboxes in

this manner?

Thanks,

m



Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



___
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: List to checkboxes how to?

2008-09-13 Thread J. Landman Gay

Michael wrote:


I thought I might be able to simply specify that the field is a "checkbox
field", or is a button with contents that displays as checkboxes, but that
doesn't seem to be the case. I can't find an example of this basic scenario
in the manual. Is there a resource I can access for how to use checkboxes in
this manner?


One method I've used successfully is to use "imagesource" in the field. 
Put the items you want to display into in a list field as usual. Then 
insert a known character as the first one in each line (I often use a 
space for this.) On the card somewhere, store 2 small hidden images. One 
is an image of a checkbox in its checked state, and the other is an 
image of an unchecked checkbox.


Whenever you want to set the state of the checkbox, do this:

  set the imagesource of char 1 of line  of fld "list" to 



The "imgID" variable is the ID of the correct image, "checked" or 
"unchecked". Your scripts can determine whether the line is checked or 
not by simply reading the imagesource of the first character of the 
line, which will be the ID of the appropriate image.



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


Re: List to checkboxes how to?

2008-09-13 Thread Eric Chatonet

Bonsoir Jacque,

If your solution works well it is not cross-platform and will be  
obsolete if controls design changes on the platform you are used to :-)
It's the reason why I proposed to Michael to use a group with 'real'  
controls.


Le 13 sept. 08 à 18:24, J. Landman Gay a écrit :


Michael wrote:

I thought I might be able to simply specify that the field is a  
"checkbox
field", or is a button with contents that displays as checkboxes,  
but that
doesn't seem to be the case. I can't find an example of this basic  
scenario
in the manual. Is there a resource I can access for how to use  
checkboxes in

this manner?


One method I've used successfully is to use "imagesource" in the  
field. Put the items you want to display into in a list field as  
usual. Then insert a known character as the first one in each line  
(I often use a space for this.) On the card somewhere, store 2  
small hidden images. One is an image of a checkbox in its checked  
state, and the other is an image of an unchecked checkbox.


Whenever you want to set the state of the checkbox, do this:

  set the imagesource of char 1 of line  of fld "list"  
to 


The "imgID" variable is the ID of the correct image, "checked" or  
"unchecked". Your scripts can determine whether the line is checked  
or not by simply reading the imagesource of the first character of  
the line, which will be the ID of the appropriate image.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



___
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: List to checkboxes how to?

2008-09-13 Thread Stephen Barncard

Does this method work faster than using a background?



Whenever you want to set the state of the checkbox, do this:

  set the imagesource of char 1 of line  of fld "list" to 

The "imgID" variable is the ID of the correct image, "checked" or 
"unchecked". Your scripts can determine whether the line is checked 
or not by simply reading the imagesource of the first character of 
the line, which will be the ID of the appropriate image.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]


--


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


Re: List to checkboxes how to?

2008-09-13 Thread J. Landman Gay

Eric Chatonet wrote:

Bonsoir Jacque,

If your solution works well it is not cross-platform and will be 
obsolete if controls design changes on the platform you are used to :-)
It's the reason why I proposed to Michael to use a group with 'real' 
controls.


Yes, that's true. It isn't very difficult to replace the images, but of 
course that won't fix any existing copies in circulation.


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


Re: List to checkboxes how to?

2008-09-13 Thread J. Landman Gay

Stephen Barncard wrote:

Does this method work faster than using a background?


I don't know, I've never used a background. I like the image solution. 
Though as Eric points out, the images may become obsolete if the OS 
changes.






Whenever you want to set the state of the checkbox, do this:

  set the imagesource of char 1 of line  of fld "list" to 



The "imgID" variable is the ID of the correct image, "checked" or 
"unchecked". Your scripts can determine whether the line is checked or 
not by simply reading the imagesource of the first character of the 
line, which will be the ID of the appropriate image.



--
Jacqueline Landman Gay | [EMAIL PROTECTED]





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


Re: List to checkboxes how to?

2008-09-13 Thread J. Landman Gay

Eric Chatonet wrote:

Bonsoir Jacque,

If your solution works well it is not cross-platform


I forgot to mention the cross-platform issue. What I generally do is 
create sets of images, one set for each platform. I load the IDs of the 
correct OS-based images into script-local variables the first time the 
script is used (or on startup, etc.), and use the variables when setting 
the imagesource.


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


Re: List to checkboxes how to?

2008-09-13 Thread Eric Chatonet

Jacque-

You know it yet: I'm an addict of custom controls* but I do prefer to  
use built-in controls when these ones are needed.


* I have even written a tutorial about using PNG images to build any  
control ;-)


Le 13 sept. 08 à 19:15, J. Landman Gay a écrit :


Eric Chatonet wrote:

Bonsoir Jacque,
If your solution works well it is not cross-platform


I forgot to mention the cross-platform issue. What I generally do  
is create sets of images, one set for each platform. I load the IDs  
of the correct OS-based images into script-local variables the  
first time the script is used (or on startup, etc.), and use the  
variables when setting the imagesource.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



___
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: List to checkboxes how to?

2008-09-13 Thread J. Landman Gay

Eric Chatonet wrote:

Jacque-

You know it yet: I'm an addict of custom controls* but I do prefer to 
use built-in controls when these ones are needed.


That's what is so great about Rev. There are often so many different 
ways to do the same thing.


Are you saying you are a control freak? ;) (Americanism, not sure it 
will translate.)


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


Re: List to checkboxes how to?

2008-09-15 Thread Michael
Thanks Jacque and all,

I figured out how to just give them all a base name, and then find all/
create and move all anew each time I need the set.

I liked the imagesource clue, but then someone said it would break on
different operating systems. But I couldn't see how it would break if a
standard image type were used...?

Thanks,

m


On 9/13/08 9:24 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> One method I've used successfully is to use "imagesource" in the field.

___
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: List to checkboxes how to?

2008-09-15 Thread J. Landman Gay

Michael wrote:

Thanks Jacque and all,

I figured out how to just give them all a base name, and then find all/
create and move all anew each time I need the set.

I liked the imagesource clue, but then someone said it would break on
different operating systems. But I couldn't see how it would break if a
standard image type were used...?


It won't break. What was meant was that if a new OS update changes the 
appearance of its checkboxes, your embedded checkbox images will look 
old-fashioned and obsolete.


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