Page 1 of 1
ClipboardChange event
Posted: Sun Nov 03, 2013 2:52 pm
by djrikki
Hello,
Code: Select all
Function p_CheckPaste()
Local type, data = GetClipboard()
If type = #CLIPBOARD_TEXT
mui.Set("bar-opt7","disabled",False)
Else
mui.Set("bar-opt7","disabled",True)
EndIf
EndFunction
InstallEventHandler({MUIRoyale = p_MuiRoyale, ClipboardChange = p_CheckPaste})
How would you capture Clipboard Changes with TextEditor.mcc to enable/disable a Paste button? The Hollywood ClipChange event handle is not compatible with MUI Royale/TextEditor there are a number of issues including system lock-up.
A TextEditor.PasteAvailable would be really useful.
Re: ClipboardChange event
Posted: Sun Nov 03, 2013 3:09 pm
by djrikki
Here is just one random ISI error I received.
TextEditor.mcc - crash in clipboard server
in svgimage.hws
Pretty random if you ask me.
I have crash log if any use to you.
Re: ClipboardChange event
Posted: Mon Nov 04, 2013 3:30 pm
by airsoftsoftwair
Actually, Hollywood's clipboard listener shouldn't conflict with the TextEditor gadget. Do you have a small script which can reproduce the crash? Just the crash log doesn't help, alas.
Re: ClipboardChange event
Posted: Mon Nov 04, 2013 9:17 pm
by djrikki
http://os4depot.net/?function=showfile& ... xtedit.lha
I've commented out the relevant code in the above source code, have a looked into the editor.hws. Shouldn't be too difficult to re-enable the code and watch the problem happen.
Re: ClipboardChange event
Posted: Fri Nov 08, 2013 4:31 pm
by airsoftsoftwair
I'm afraid that's too much code... try to isolate the issue in a very short example

Re: ClipboardChange event
Posted: Fri Nov 08, 2013 8:38 pm
by djrikki
I'll provide a shorter code sample if you agree to release next mui royale before Christmas!

It's getting towards a year version 1.0 was released!
Re: ClipboardChange event
Posted: Fri Nov 15, 2013 5:29 pm
by airsoftsoftwair
No promises but the next MUI Royale update should really be out quite soon. There's not much work going on with MUI Royale right now because there's another exciting plugin in the pipeline that will open up some great new possibilities so stay tuned

Re: ClipboardChange event
Posted: Fri Nov 15, 2013 6:54 pm
by djrikki
Cool can't wait.
