[Xerte] Combobox thing
Dave Burnett
d_b_burnett at hotmail.com
Tue Nov 30 16:24:48 GMT 2010
Thanks for that Julian.
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 30 Nov 2010 16:13:03 +0000
Subject: RE: [Xerte] Combobox thing
Make the array yourself and set null as the first item? Here’s the dode from the engine: cbo = this.attachMovie("FComboBoxSymbol", "cbo"+this.levels, this.levels); this["cbo"+this.levels]._x = x; this["cbo"+this.levels]._y = y; if (w != undefined) { cbo.setSize(w, h); } cbo.index = this.pages.length; //set up items... if (items.indexOf('{') == 0) { var cboItems = expression(items.substr(1, items.length-2), engine).split('~'); } else { var cboItems = items.split('~'); } //set up data... if (data != undefined) { if (data.indexOf('{') == 0) { var dataItems = expression(data.substr(1, data.length-2), engine).split('~'); } else { var dataItems = data.split('~'); } } for (var i = 0; i<cboItems.length; i++) { cbo.addItem(cboItems[i], dataItems[i]); } cbo.setStyleProperty("background", STYLES.statusBarColour); cbo.setStyleProperty("selection", STYLES.titleBarColour); cbo.setStyleProperty("textColor", STYLES.textUnselected); cbo.setStyleProperty("textSelected", STYLES.textSelected); cbo.setChangeHandler("onComboChange"); cbo.getItem = function() { return this.getSelectedItem().label; }; cbo.getData = function() { return this.getSelectedItem().data; }; cbo.tabIndex = getTabIndex(); cbo.onSetFocus = function() { speak("Options. "+this.getSelectedItem().label+" selected. Use the arrow keys to select"); }; cbo._accProps = new Object(); cbo._accProps.name = "combobox"; Accessibility.updateProperties(); this.responses.push(cbo); return cbo; From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 30 November 2010 16:11
To: Xerte list
Subject: [Xerte] Combobox thing
Any way to set the default entry to '' ?
Say we have these items:
New York~Moscow~Tokyo~London
New York appears in the default position, as well as the first dropdown list item.
Can I get a blank box initially?
I tried dropdownrs.topLabel.label = '';
But that blanks the New York in the first list position as well.
Dave
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101130/3e31b548/attachment-0001.html
More information about the Xerte
mailing list