Re: Splitting long elements into two lines in an Option Menu

2018-04-29 Thread Heriberto Torrado via use-livecode

Jacqueline, Craig, Terry,

Thank you very much for your answers.

Best,
Hery

On 04/27/2018 01:36 AM, J. Landman Gay via use-livecode wrote:
Or use a normal field as Craig suggested and create soft-wrapped lines 
by inserting ASCII 11 at line breaks. These select as normal lines but 
visually appear as separate lines.


From the 5.5 release notes:

The engine will now interpret a numToChar(11) character in a field 
paragraph as an explicit line-
break when the (effective) dontWrap of the paragraph is false. This 
allows multiple ‘lines’ to be

displayed within a single paragraph.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 26, 2018 11:43:16 PM Terry Judd via use-livecode 
 wrote:


Or perhaps use a form type datagrid - which will allow you to present 
and select multi-lined option more readily.


Regards,

Terry...

On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via 
use-livecode" use-livecode@lists.runrev.com> wrote:


   Hi.

   If I were you, with the task you laid out, I would not use an 
option menu.
   It is not good with wide menuItems, and it is not natural, if even 
possible,

   to select multiple lines in the way you want.

   Use a list field instead. A field has many properties that are 
denied an

   optionMenu, which is really just a button.

   You can have multiple lines selected, by trapping "mouseUp", say, 
and with
   the clickLine, select the following line as well. Or the following 
five. Or
   the previous. That sort of thing. A field just is far more able in 
this

   regard.

   Craig Newman



   --
   Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html


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

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



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

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





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

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


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

Re: Splitting long elements into two lines in an Option Menu

2018-04-29 Thread Heriberto Torrado via use-livecode

Thank you very much Richmond.

Your answer was very helpful. :-)

Best,
Hery

On 04/27/2018 05:09 AM, Richmond via use-livecode wrote:
I've just set up a stack containing 2 fields; one called "fff" 
containing your


original string, another called "fCHOPPED" that is a scrolling list 
field.


I have a button containing this script:

on mouseUp
   put fld "fff" into FFF
   set the itemDelimiter to ","
   put 1 into KOUNT
   repeat until item KOUNT of FFF is empty
  put item KOUNT of FFF into line KOUNT of fld "fCHOPPED"
  add 1 to KOUNT
   end repeat
end mouseUp

which puts the string into the scrolling list field like this:

/Dialyse rénale
 insuffisance rénale
 maladie rénaleDID
 diabète de type 1//
//diabète insulino dépendant/

Richmond.


On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote:
/Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de 
type 1//,//diabète insulino dépendant/ 



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

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


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

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Richmond Mathewson via use-livecode
Well that chopping up doesn't have to take place between fields: it 
could, say, start with
the string in a string-variable, and the chopped-up bits end up in a 
2-dimensional array.


Richmond.

On 27/4/2018 5:47 pm, Bob Sneidar via use-livecode wrote:

On a mobile device??

Bob S



On Apr 27, 2018, at 02:09 , Richmond via use-livecode 
 wrote:

I've just set up a stack containing 2 fields; one called "fff" containing your

original string, another called "fCHOPPED" that is a scrolling list field.

I have a button containing this script:

on mouseUp
put fld "fff" into FFF
set the itemDelimiter to ","
put 1 into KOUNT
repeat until item KOUNT of FFF is empty
   put item KOUNT of FFF into line KOUNT of fld "fCHOPPED"
   add 1 to KOUNT
end repeat
end mouseUp

which puts the string into the scrolling list field like this:

/Dialyse rénale
  insuffisance rénale
  maladie rénaleDID
  diabète de type 1//
//diabète insulino dépendant/

Richmond.


On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote:

/Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type 
1//,//diabète insulino dépendant/


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

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


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

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Bob Sneidar via use-livecode
On a mobile device??

Bob S


> On Apr 27, 2018, at 02:09 , Richmond via use-livecode 
>  wrote:
> 
> I've just set up a stack containing 2 fields; one called "fff" containing your
> 
> original string, another called "fCHOPPED" that is a scrolling list field.
> 
> I have a button containing this script:
> 
> on mouseUp
>put fld "fff" into FFF
>set the itemDelimiter to ","
>put 1 into KOUNT
>repeat until item KOUNT of FFF is empty
>   put item KOUNT of FFF into line KOUNT of fld "fCHOPPED"
>   add 1 to KOUNT
>end repeat
> end mouseUp
> 
> which puts the string into the scrolling list field like this:
> 
> /Dialyse rénale
>  insuffisance rénale
>  maladie rénaleDID
>  diabète de type 1//
> //diabète insulino dépendant/
> 
> Richmond.
> 
> 
> On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote:
>> /Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type 
>> 1//,//diabète insulino dépendant/ 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: Splitting long elements into two lines in an Option Menu

2018-04-27 Thread Richmond via use-livecode
I've just set up a stack containing 2 fields; one called "fff" 
containing your


original string, another called "fCHOPPED" that is a scrolling list field.

I have a button containing this script:

on mouseUp
   put fld "fff" into FFF
   set the itemDelimiter to ","
   put 1 into KOUNT
   repeat until item KOUNT of FFF is empty
  put item KOUNT of FFF into line KOUNT of fld "fCHOPPED"
  add 1 to KOUNT
   end repeat
end mouseUp

which puts the string into the scrolling list field like this:

/Dialyse rénale
 insuffisance rénale
 maladie rénaleDID
 diabète de type 1//
//diabète insulino dépendant/

Richmond.


On 27.04.2018 04:48, Heriberto Torrado via use-livecode wrote:
/Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de 
type 1//,//diabète insulino dépendant/ 



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

Re: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread J. Landman Gay via use-livecode
Or use a normal field as Craig suggested and create soft-wrapped lines by 
inserting ASCII 11 at line breaks. These select as normal lines but 
visually appear as separate lines.


From the 5.5 release notes:

The engine will now interpret a numToChar(11) character in a field 
paragraph as an explicit line-
break when the (effective) dontWrap of the paragraph is false. This allows 
multiple ‘lines’ to be

displayed within a single paragraph.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 26, 2018 11:43:16 PM Terry Judd via use-livecode 
 wrote:


Or perhaps use a form type datagrid - which will allow you to present and 
select multi-lined option more readily.


Regards,

Terry...

On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via 
use-livecode" use-livecode@lists.runrev.com> wrote:


   Hi.

   If I were you, with the task you laid out, I would not use an option menu.
   It is not good with wide menuItems, and it is not natural, if even possible,
   to select multiple lines in the way you want.

   Use a list field instead. A field has many properties that are denied an
   optionMenu, which is really just a button.

   You can have multiple lines selected, by trapping "mouseUp", say, and with
   the clickLine, select the following line as well. Or the following five. Or
   the previous. That sort of thing. A field just is far more able in this
   regard.

   Craig Newman



   --
   Sent from: 
   http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html


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

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



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

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





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

Re: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread Terry Judd via use-livecode
Or perhaps use a form type datagrid - which will allow you to present and 
select multi-lined option more readily.

Regards,

Terry...

On 27/04/2018 2:33 pm, "use-livecode on behalf of dunbarx via use-livecode" 
 wrote:

Hi.

If I were you, with the task you laid out, I would not use an option menu.
It is not good with wide menuItems, and it is not natural, if even possible,
to select multiple lines in the way you want.

Use a list field instead. A field has many properties that are denied an
optionMenu, which is really just a button.

You can have multiple lines selected, by trapping "mouseUp", say, and with
the clickLine, select the following line as well. Or the following five. Or
the previous. That sort of thing. A field just is far more able in this
regard.

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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



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

Re: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread dunbarx via use-livecode
Hi.

If I were you, with the task you laid out, I would not use an option menu.
It is not good with wide menuItems, and it is not natural, if even possible,
to select multiple lines in the way you want.

Use a list field instead. A field has many properties that are denied an
optionMenu, which is really just a button.

You can have multiple lines selected, by trapping "mouseUp", say, and with
the clickLine, select the following line as well. Or the following five. Or
the previous. That sort of thing. A field just is far more able in this
regard.

Craig Newman



--
Sent from: 
http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

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


Splitting long elements into two lines in an Option Menu

2018-04-26 Thread Heriberto Torrado via use-livecode

Dear Livecode programmers,

I need you good expertise again.
I'm development an small app for a French insurance company.

I have an option menu button.
Some elements in this option menu are very large. Example:

/Dialyse rénale, insuffisance rénale, maladie rénaleDID, diabète de type 
1//,//diabète insulino dépendant/


These elements doesn't fit on a small phone screen.

So the question is:

How can I divide this item into two different lines?
I need that when customer clicking on this object in the "option menu", 
both lines are selected.

In fact: The two lines have to be the same.

I tried putting returns, "/", etc. but nothing seems to work.

Than you very much in advance.

All the best,
Heriberto Torrado


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