Combobox

Slava Paperno slava at lexiconbridge.com
Thu Jun 30 20:04:44 EDT 2011


Pete,

I gave up on comboboxes for a different reason--they don't have the
unicodeText property, being half-buttons, half fields. I ended up emulating
a combobox by putting two fields on the card--a one-line text input field,
and below it, a list field. The list field is locked and initially hidden.
When the user clicks in the input field, the list field is shown; when the
user presses Enter in the input field, the list field is hidden again.

Slava

> -----Original Message-----
> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] On Behalf Of Pete
> Sent: Thursday, June 30, 2011 6:58 PM
> To: How to use LiveCode
> Subject: Re: Combobox
> 
> Another quirk I just discovered with comboboxes.  Setting the
> menuHistory of
> a combobox displays the correct choice, but subsequent clicks on the
> arrow
> to display the choices do not position the list of choices at the
> displayed
> value, as it does with an option menu.  In fairness, the dictionary
> does not
> claim it will do that for comboboxes but it seems a little strange that
> it
> doesn't.
> 
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
> 
> 
> 
> 
> On Thu, Jun 30, 2011 at 2:04 PM, J. Landman Gay
> <jacque at hyperactivesw.com>wrote:
> 
> > On 6/30/11 3:24 PM, Pete wrote:
> >
> >> How do I get hold of the text the user just typed in, for example to
> set
> >> the menuhistory using a lineOffset function?
> >>
> >
> > It's the label.
> >
> > --
> > Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> > HyperActive Software           |     http://www.hyperactivesw.com
> >
> > ______________________________**_________________
> > 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<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