Re: menuHistory & menuPick

2017-08-06 Thread hh via use-livecode
The following recipe is for use in LC 7/8/9. In LC 6 setting the label sets also the menuhistory. Delete your "set menuhistory line" and add the following to the script of your button 1: on mouseDown set the menuhistory of me to lineoffset(the label of me, me) end mouseDown > jbv wrote: > I ha

Re: menuHistory & menuPick

2017-08-05 Thread jbv via use-livecode
urn & "choice6" into btn 1 set label of btn 1 to line 2 of btn 1 set >> menuhistory of btn 1 to 2 >> >> The purpose of the "menuhistory" line is, when user press the btn, >> to have all the choices "centered around" the visible one on

Re: menuHistory & menuPick

2017-08-05 Thread Klaus major-k via use-livecode
> The purpose of the "menuhistory" line is, when user press the btn, > to have all the choices "centered around" the visible one on the label, > which is more elegant imho... Well, this is a completely different situation and I am a bit clueless.

Re: menuHistory & menuPick

2017-08-05 Thread jbv via use-livecode
nt imho... jbv On Sat, August 5, 2017 1:10 pm, Klaus major-k via use-livecode wrote: > >> Am 04.08.2017 um 23:27 schrieb Bob Sneidar via use-livecode >> : >> >> >> Hi JB. >> >> >> To set the menu display value without triggering menuPick, set the

Re: menuHistory & menuPick

2017-08-05 Thread Klaus major-k via use-livecode
> Am 04.08.2017 um 23:27 schrieb Bob Sneidar via use-livecode > : > > Hi JB. > > To set the menu display value without triggering menuPick, set the label of > the menu button. In order to trigger the menuPick handler when changing the > value, use menuHistory. No nee

Re: menuHistory & menuPick

2017-08-04 Thread Craig Newman via use-livecode
: Fri, Aug 4, 2017 2:04 pm Subject: menuHistory & menuPick Hi According to the doc, when you set the menuHistory property, a menuPick message is sent to the button. I managed to block the menupick message with a boolean variable, but is there an easier/more elegant way to momentary block that mes

Re: menuHistory & menuPick

2017-08-04 Thread Bob Sneidar via use-livecode
Hi JB. To set the menu display value without triggering menuPick, set the label of the menu button. In order to trigger the menuPick handler when changing the value, use menuHistory. No need to suspend messages or anything fancy like that. Bob S > On Aug 4, 2017, at 11:04 , jbv via

Re: menuHistory & menuPick

2017-08-04 Thread Klaus major-k via use-livecode
e >>> : >>> >>> >>> Hi >>> According to the doc, when you set the menuHistory property, a menuPick >>> message is sent to the button. I managed to block the menupick message >>> with a boolean variable, but is there an easier/more elegan

Re: menuHistory & menuPick

2017-08-04 Thread jbv via use-livecode
jbv, > > >> Am 04.08.2017 um 20:04 schrieb jbv via use-livecode >> : >> >> >> Hi >> According to the doc, when you set the menuHistory property, a menuPick >> message is sent to the button. I managed to block the menupick message >> with a boo

Re: menuHistory & menuPick

2017-08-04 Thread Klaus major-k via use-livecode
Hi jbv, > Am 04.08.2017 um 20:04 schrieb jbv via use-livecode > : > > Hi > According to the doc, when you set the menuHistory property, a menuPick > message is sent to the button. > I managed to block the menupick message with a boolean variable, but is > there an ea

menuHistory & menuPick

2017-08-04 Thread jbv via use-livecode
Hi According to the doc, when you set the menuHistory property, a menuPick message is sent to the button. I managed to block the menupick message with a boolean variable, but is there an easier/more elegant way to momentary block that message when setting menuhistory ? Thanks in advance. jbv

AW: How to access the text of an option btn before menuPick?

2015-10-12 Thread Tiemo Hollmann TB
Phil. Thanks Jacqueline and Phil Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Phil Davis Gesendet: Freitag, 9. Oktober 2015 22:59 An: How to use LiveCode Betreff: Re: How to access the text of an option btn before menuPick

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread Phil Davis
Hi Tiemo, On a Mac, the option button list is shown at the full width of the text it contains. I haven't tried it on other platforms. If it doesn't work that way on your platform, you could do something like this (in the button script): local sOriginalRect on menuPick

Re: AW: How to access the text of an option btn before menuPick?

2015-10-09 Thread Richard Gaskin
J. Landman Gay wrote: > If it doesn't do that on Windows, the only thing I can think of is > to make the button as wide as the longest text on mouseDown, and > when the menu closes (in menuPick and mouseRelease,) set the width > back to the original size. IIRC the Win HIG su

Re: AW: How to access the text of an option btn before menuPick?

2015-10-09 Thread J. Landman Gay
menu expands to fit long text when the option button pops down. You don't have to do anything. If it doesn't do that on Windows, the only thing I can think of is to make the button as wide as the longest text on mouseDown, and when the menu closes (in menuPick and mouseRelease,) set

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread dunbarx
5 9:53 am Subject: AW: How to access the text of an option btn before menuPick? Hi Craig, I don't want to display the full text of the option button, but only one line of the text while hovering the text (or right click buttonDown on a single line), so that the user can see, what he would choo

AW: How to access the text of an option btn before menuPick?

2015-10-09 Thread Tiemo Hollmann TB
Thanks fort he idea Peter Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Peter M. Brigham Gesendet: Freitag, 9. Oktober 2015 16:32 An: How to use LiveCode Betreff: Re: How to access the text of an option btn before menuPick

AW: How to access the text of an option btn before menuPick?

2015-10-09 Thread Tiemo Hollmann TB
Thanks for the idea Bob Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Bob Sneidar Gesendet: Freitag, 9. Oktober 2015 16:42 An: How to use LiveCode Betreff: Re: How to access the text of an option btn before menuPick? I

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread Bob Sneidar
I wouldn't use an option buttin in this case, I'd use a multi-line field. You can preface each option with a bullet and tab (I use a graphic for a bullet to maintain cross platform look and feel). Bob S On Oct 9, 2015, at 06:51 , Tiemo Hollmann TB mailto:toolb...@kestner.de>> wrote: Hello,

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread Peter M. Brigham
ced in your mainstack or a library stack --button can be made invisible when you're done, if you like -- the button script needs only one handler: --on menupick what -- set the uSelection of me to what --end menupick -- paste this handler into a suitable stack script,

AW: How to access the text of an option btn before menuPick?

2015-10-09 Thread Tiemo Hollmann TB
ists.runrev.com Betreff: Re: How to access the text of an option btn before menuPick? Why not set the toolTip to the text of the button? I don't know how large a display that would be, or whether that format would be tenable. You could always use the "mouseWithin" message to display

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread dunbarx
text-of-an-option-btn-before-menuPick-tp4697092p4697095.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your su

Re: How to access the text of an option btn before menuPick?

2015-10-09 Thread dunbarx
t least you can control the properties of the field. Craig Newman -Original Message- From: Tiemo Hollmann TB To: LiveCode User Liste senden Sent: Fri, Oct 9, 2015 8:50 am Subject: How to access the text of an option btn before menuPick? Hello, I have an option button with long text l

How to access the text of an option btn before menuPick?

2015-10-09 Thread Tiemo Hollmann TB
Hello, I have an option button with long text lines as options, but the button itself is smaller (width) as the text lines (because of layout restrictions), so that you can't read the full text of the options. Now I would like to find any solution to show the user the full content of the text lin

Re: Use MenuPick properly

2015-02-07 Thread Sri
.nabble.com/Use-MenuPick-properly-tp4688589p4688596.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscripti

Re: Use MenuPick properly

2015-02-07 Thread dunbarx
put "1," & random(999) & return & "2,b" & return & "3,c" into temp --you would load your SQL data here set the tempContents of btn "pullDown" to temp end mouseUp In the pullDown: on mouseEnter put the tempContents of me into me e

Re: Use MenuPick properly

2015-02-07 Thread Peter Haworth
,tText > > > >set the itemdelimiter to tab > >repeat for each line rLine in pdata > > put item 1 of rLine &return after tKeys > > put item 2 of rLine & return after tText > >end repeat > >set the text of pid to tText > &

Re: Use MenuPick properly

2015-02-07 Thread Pascal Lehner
Line in pdata > put item 1 of rLine &return after tKeys > put item 2 of rLine & return after tText >end repeat >set the text of pid to tText >set the cKeys of pid to tKeys > > end createKeys > > on menuPick pitemname >--use the menuHist

Re: Use MenuPick properly

2015-02-07 Thread Peter Haworth
repeat for each line rLine in pdata put item 1 of rLine &return after tKeys put item 2 of rLine & return after tText end repeat set the text of pid to tText set the cKeys of pid to tKeys end createKeys on menuPick pitemname --use the menuHistory to access the cKe

Re: Use MenuPick properly

2015-02-07 Thread Klaus major-k
Hi Pascal, > Am 07.02.2015 um 16:18 schrieb Pascal Lehner : > > Hi all, > > I use menuPick to have a button with a drop down menu. The menu items are > loaded from a database and the users selection needs to be stored back > there too. > > the dropdown list looks

Use MenuPick properly

2015-02-07 Thread Pascal Lehner
Hi all, I use menuPick to have a button with a drop down menu. The menu items are loaded from a database and the users selection needs to be stored back there too. the dropdown list looks as following (id, name) 1, full 2, half full 3, empty I save the users selection in two fields on the card

Re: Why doesn't menupick work

2014-08-27 Thread Bob Sneidar
I see bugs sometimes, but usually it is after drinking too much skunk beer. Bob S On Aug 23, 2014, at 14:47 , revolut...@duncansoftware.on-rev.com wrote: The crlf was created from my code. The bug is not with Livecode. The bug is staring at my mon

Re: Why doesn't menupick work

2014-08-23 Thread Mark Wieder
> The crlf was created from my code. The bug is not with Livecode. > The bug is staring at my monitor. LOL -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent

Re: Why doesn't menupick work

2014-08-23 Thread revolut...@duncansoftware.on-rev.com
The crlf was created from my code. The bug is not with Livecode. The bug is staring at my monitor. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http

Re: Why doesn't menupick work

2014-08-22 Thread Richard Gaskin
revolution wrote: > Thanks everyone for your ideas. They got me looking again at the > combobox list of cardnames. This button was generated & populated > through a script. At the end of each line is a crlf which on the > Mac leaves an unprintable char at the end of the line. So the > spaces and

Re: Why doesn't menupick work

2014-08-22 Thread revolut...@duncansoftware.on-rev.com
Thanks everyone for your ideas. They got me looking again at the combobox list of cardnames. This button was generated & populated through a script. At the end of each line is a crlf which on the Mac leaves an unprintable char at the end of the line. So the spaces and tildes were not the problem

Re: Why doesn't menupick work

2014-08-22 Thread Mark Schonewille
Probably, calling a control "The short name" is also a bad idea ;-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/46

Re: Why doesn't menupick work

2014-08-21 Thread Mark Schonewille
References such as go card "1" go cd "1 " go card "card 1 bla" would be either incorrect or a source of confusion. Depending on which version you're using, the combobox might be returning unicode. I don't really expect his, but it is easy to check, using

Re: Why doesn't menupick work

2014-08-21 Thread Devin Asay
On Aug 21, 2014, at 5:02 AM, revolut...@duncansoftware.on-rev.com wrote: > On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: >> Why doesn't this code work? >> >> on menuPick pItemName >> go card pItemName >> end menuPick >> &g

Re: Why doesn't menupick work

2014-08-21 Thread revolut...@duncansoftware.on-rev.com
On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: > Why doesn't this code work? > > on menuPick pItemName >go card pItemName > end menuPick > > where the comboBox has a list of card names. >>Set a breakpoint at the "go" line and

Re: Why doesn't menupick work

2014-08-21 Thread Brahmanathswami
: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the "go" line and when it pauses, see what's in pItemName and whether there's a card with that name. You can also temporari

Re: Why doesn't menupick work

2014-08-20 Thread J. Landman Gay
On 8/20/2014, 8:08 PM, revolut...@duncansoftware.on-rev.com wrote: Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. Set a breakpoint at the "go" line and when it pauses, see what's in p

Re: Why doesn't menupick work

2014-08-20 Thread Paul Hibbert
Works fine for me in LC 5.5.5, LC 6.6.2 & LC 7.0(dp10) on Mac OS X 10.8.5 and in LC 6.6.2 on Windows 7. Do you see any kind of error? Paul On 2014-08-20, at 6:08 PM, revolut...@duncansoftware.on-rev.com wrote: > Why doesn't this code work? > > on menuPick pItemName >

Why doesn't menupick work

2014-08-20 Thread revolut...@duncansoftware.on-rev.com
Why doesn't this code work? on menuPick pItemName go card pItemName end menuPick where the comboBox has a list of card names. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and m

RE: set the location of an iPad menuPick

2014-05-08 Thread Ralph DiMola
rch 09, 2014 7:03 AM To: How to use LiveCode Subject: set the location of an iPad menuPick Anyone know how to set the location of an iPad menuPick (aka popup or popover)? Am using 6.5.2 and the popup seems to work fine but seems no way to set where it happens. TIA sims Sent from my iPodo,

Re: set the location of an iPad menuPick

2014-03-10 Thread Jim sims
; > On Mar 9, 2014, at 5:03 AM, Ezpzapps > > wrote: > > > Anyone know how to set the location of an iPad menuPick (aka popup or > popover)? > > > > Am using 6.5.2 and the popup seems to work fine but seems no way to set > wh

Re: set the location of an iPad menuPick

2014-03-10 Thread Chris Sheffield
you need. Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com On Mar 9, 2014, at 5:03 AM, Ezpzapps wrote: > Anyone know how to set the location of an iPad menuPick (aka popup or > popover)? > > Am using 6.5.2 and the popup seems to work fine but seems no way

set the location of an iPad menuPick

2014-03-09 Thread Ezpzapps
Anyone know how to set the location of an iPad menuPick (aka popup or popover)? Am using 6.5.2 and the popup seems to work fine but seems no way to set where it happens. TIA sims Sent from my iPodo, blame it for poor spellingk ___ use

Re: Transparent menupick roller

2014-01-25 Thread Ender Nafi Elekcioglu
button “myMenuPicker" to the rect of button “myThemedButton” _set the layer of button “myMenuPicker” to top _set the blendLevel of button “myMenuPicker” to 100 _set the unicodeText of button “myMenuPicker” to uniEncode(myList, “utf8”) _set the menuHistory of button “myMenuPicker” to 2 on men

Transparent menupick roller

2014-01-25 Thread Jim sims
Is there a combo of LC and xcode and iOS that will display the newer iPhone menupick? I refer to the newer transparent one - not the black boxy version. Sims ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: menuPick

2013-02-19 Thread Jim Schaubeck
ild and set the text of me to tData where tData was loaded with a few lines of whatever I wanted the menu selection to look like. on mouseDown set the text of me to "Buy Low" & cr & "Sell High" end mouseDown on menuPick theItem if theitem is "Buy Low" then

Re: menuPick

2013-02-19 Thread J. Landman Gay
On 2/19/13 6:20 PM, Peter Bogdanoff wrote: Hi, I have a menu that I'm creating the text for dynamically. So, on menuPick I want to do something based on the menu item chosen. However, it will vary all the time. Can I get the number of the line of the menu that was chosen? How do I h

Re: menuPick

2013-02-19 Thread dunbarx
Hi. the "menuHistory" will return the selected line. The menuItems in a manu are just a return delimited list of text. So your menu choices, usually set up in a switch construction in your menuPick handler, can load the menu as required. Write back if this does not work the firs

menuPick

2013-02-19 Thread Peter Bogdanoff
Hi, I have a menu that I'm creating the text for dynamically. So, on menuPick I want to do something based on the menu item chosen. However, it will vary all the time. Can I get the number of the line of the menu that was chosen? How do I handle dynamically-generated menu items?

Re: Option MenuPick in iOS

2010-12-26 Thread BNig
Hi Stewart, menupick works in 4.5.3 RC-3 as does the 'Result' from a Pickwheel. So I expect it to work in Livecode 4.5.3 Should not be too long to arrive. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Option-MenuP

Option MenuPick in iOS

2010-12-25 Thread RevList
ct Site" That works fine. When I select one of the menu items it should then populate other fields on the card and this works fine in the IDE, but not in the simulator. It appears as the menuPick is not recognized at all. Any ideas? on menuPick pItemName Put the MenuHistory of button