Cursor location in a form

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cursor location in a form

DougEdmunds
I have a form with several fields (a,b,c) and a button.  The button should only be enabled when
the cursor is in field b.  How can I tell when the cursor is in that field?

builder newButtonFor: self
        action: #openLessonListEditor
        getEnabled: #hasSelectedCurrentLesson
        label: 'Edit current lesson'
        help: 'Edit current lesson'.    

I want #hasSelectedCurrentLesson to return true only when the
cursor is in field b.
Reply | Threaded
Open this post in threaded view
|

Re: Cursor location in a form

hilaire
CONTENTS DELETED
The author has deleted this message.