I have three fields which I've set up to
react to a mouseUp but I find that if
a field is empty it "plays dead" even
though I've added code to get a function
if "me is empty" but still no reaction.
Is there an answer?
Putting some life into an empty field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Putting some life into an empty field
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.
Programming powered by coffee.
Re: Putting some life into an empty field
Unlocked fields don't react to mouse events the same way as locked fields, since it will likely need user interactions such as using the mouse to place the cursor, for instance. Try setting the lockText to true and see if it behaves as you expect.
You can use other events such as openField and selectionChanged to have scripts in your unlocked fields that do things.
You can use other events such as openField and selectionChanged to have scripts in your unlocked fields that do things.
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Putting some life into an empty field
What Sparkout said.
So, are your fields indeed unlocked? If so, then also read in the dictionary about the "textChanged" message.
The point he made was that you will have to use one or more of these in order to detect an "action" in an editable field. After all, "mouseUp" is only that, a message sent when you do something in a control. "Do", here, means to create an event that sends a message.
Craig Newman
So, are your fields indeed unlocked? If so, then also read in the dictionary about the "textChanged" message.
The point he made was that you will have to use one or more of these in order to detect an "action" in an editable field. After all, "mouseUp" is only that, a message sent when you do something in a control. "Do", here, means to create an event that sends a message.
Craig Newman