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.
Cut, Copy, Paste String Objects
Cut, Copy, Paste String Objects
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
http://myevolve.wordpress.com
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Cut, Copy, Paste String Objects
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
Well that's kinda odd because it means CCP through RMB Context Menus is not possible.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
http://myevolve.wordpress.com
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Cut, Copy, Paste String Objects
I think MUI offers this functionality for string gadget by default, but you cannot customize it (AFAIR).
Re: Cut, Copy, Paste String Objects
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.
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.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Cut, Copy, Paste String Objects
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!