Change to the label property in 6.7

Paul Hibbert paulhibbert at mac.com
Sat Mar 29 17:01:33 EDT 2014


Pete,

It looks like this is OK as far as I can see. I just ran a quick test:

1 x Option Menu (Default settings)
   Script:
	on menuPick
	   put the menuHistory of me into fld 3
	end menuPick

1 x Button "Test"
   Script:
	on mouseDown
	   put the menuHistory of btn 1 into fld 1
	end mouseDown

	on mouseUp
	   set the label of btn 1 to "Test"
	   put the menuHistory of btn 1 into fld 2
	end mouseUp

3 x Field

The result in all 3 fields was the same after pressing the "Test" button, whichever option was chosen last using the optionMenu was the reported menuHistory.

The result was identical to LC 6.6

HTH

Paul


On 2014-03-29, at 12:36 PM, Peter Haworth <pete at lcsql.com> wrote:

> I've been looking into my stacks to see how they will be affected by the
> change to the way the label property of an option menu works in 6.7.
> 
> As long as it will still be possible to set the label of an option menu to
> a value that is not in its text, all should be well.
> 
> Unfortunately, I can't even run 6.7 on my computer (OSX 10.7.4) as it dies
> a silent death before I can even open a stack (QCC bug report entered). Can
> anyone confirm that the above is still possible and, if so, what value ends
> up in the menuHistory?
> 
> This change also reminds me that I've always wondered why setting the
> hilitedline of a scrolling list field does not trigger a selectionChanged
> message.  It seems analogous to setting the menuHistory of an option menu
> triggering a menuPick message.
> 
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.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





More information about the use-livecode mailing list