ClipboardChange event

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

ClipboardChange event

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ClipboardChange event

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ClipboardChange event

Post 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.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ClipboardChange event

Post 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.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ClipboardChange event

Post by airsoftsoftwair »

I'm afraid that's too much code... try to isolate the issue in a very short example :)
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ClipboardChange event

Post 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!
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ClipboardChange event

Post 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 ;)
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ClipboardChange event

Post by djrikki »

Cool can't wait. :-)
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply