Page 1 of 1
Cut, Copy, Paste String Objects
Posted: Sat May 10, 2014 2:08 pm
by djrikki
Wondering...
1) How I am meant to get the contents of Marked Text in a String gadget to a) Cut them from the string or b) Copy them.
2) Paste into a String gadget at the current insertion point.
Re: Cut, Copy, Paste String Objects
Posted: Sun May 11, 2014 2:36 pm
by airsoftsoftwair
AFAICS MUI doesn't provide this functionality so you'd have to ask the MUI developers to implement this first.
Re: Cut, Copy, Paste String Objects
Posted: Sun May 11, 2014 4:05 pm
by djrikki
Well that's kinda odd because it means CCP through RMB Context Menus is not possible.
Re: Cut, Copy, Paste String Objects
Posted: Thu May 15, 2014 10:59 pm
by airsoftsoftwair
I think MUI offers this functionality for string gadget by default, but you cannot customize it (AFAIR).
Re: Cut, Copy, Paste String Objects
Posted: Sun Nov 16, 2014 8:22 pm
by bitRocky
Hi,
under MorphOS the String.mui is really a Textinput object, so you can use all the Textinput methods and attributes!
So you could use the MUIM_Textinput_DoCopy or _DoPaste methods for copying/pasting to/from clipboard.
Also MUIM_Textinput_InsertText could interest you.
And MUIA_Textinput_MarkStart/End would be the attrs you want to get, for copying the marked part into a local string.
Re: Cut, Copy, Paste String Objects
Posted: Sat Nov 22, 2014 12:35 pm
by airsoftsoftwair
Right, this should be the same on OS4 with MUI4 so I think I can implement this in MUI Royale for MUI 4 and up. Thanks for the pointer!