Splitting long elements into two lines in an Option Menu

J. Landman Gay jacque at hyperactivesw.com
Fri Apr 27 01:36:08 EDT 2018


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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 26, 2018 11:43:16 PM Terry Judd via use-livecode 
<use-livecode at lists.runrev.com> 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-bounces at lists.runrev.com on behalf of 
>use-livecode at 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 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the Use-livecode mailing list