Can one permanentaly change a text field's case to capitals?

Jonathan Lynch jonathandlynch at gmail.com
Tue Jan 31 14:51:33 EST 2006


A further note...

You might also need to check for dragged items - In case someone drags text
in from another field.


On 1/31/06, Jonathan Lynch <jonathandlynch at gmail.com> wrote:
>
> Just a note about the pastekey...
>
> I am on a windows machine, and I find that using the pastekey handler is
> not always perfect.
>
> You can paste with either ctrl-C or with the insert button. I use a
> rawkeydown script instead of a pastekey script. With rawkeydown, I can test
> for either ctrl-C or the insert button.
>
>
>  On 1/30/06, Ken Ray <kray at sonsothunder.com> wrote:
> >
> > On 1/30/06 8:56 PM, "Jim Ault" <JimAultWins at yahoo.com > wrote:
> >
> > > On 1/30/06 6:37 PM, "Ken Ray" <kray at sonsothunder.com> wrote:
> > >>
> > >> on pasteKey
> > >>   put toUpper(the clipboardData["text"]) into the selection
> > >> end pasteKey
> > >
> > >> Simple, no?
> > >
> > > Cool, since they could only enter the clipboardData using the keyboard
> > to
> > > paste... or perhaps a mouse and a menu command, if paste is available.
> >
> > > Would pasteKey catch the menu?
> >
> > No - you'd have to handle that in the Edit menu button script. I might
> > choose to use a custom property on the field to determine if it should
> > be
> > all caps or not:
> >
> > on menuPick pChoice
> >    if pChoice = "Paste" then
> >      if the uCapsOnly of the selectedField is true then
> >        put toUpper(the clipboardData["text"]) into the selection
> >      else
> >        put the clipboardData["text"] into the selection
> >      end if
> >    end if
> > end menuPick
> >
> > (Of course this would be longer with switch/case for more menu items
> > other
> > than Paste, but you get the idea.)
> >
> >
> > Ken Ray
> > Sons of Thunder Software
> > Web site: http://www.sonsothunder.com/
> > Email: kray at sonsothunder.com
> >
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>



More information about the use-livecode mailing list