--- In [email protected], "jahc2" <[EMAIL PROTECTED]> wrote:
> the docs seem incomplete.. I need example code..
Okay! I've got the "selected text" info (it was stored in "array[]".. oops)..
Ive copied the selected text to a string, but I dont know how to copy that
string to the clipboard... last hurdle I think...I've been fiddling for hours..
char ** Custom_Clipboard_Func(REG(a0, struct Hook *hook),REG(a2, char
**array),REG(a1, char *new_entry)) {
char **new_array;
new_array[0]=new char[500];
new_array[1]=new char[10];
int a=(int)array[1],b=0,c=(int)array[2];
printf("a=%i, c=%i\n",a,c);
while(a<c)
{
new_array[0][b]=new_entry[a];
a++; b++;
}
new_array[0][b]='\0';
sprintf(new_array[1],"%i",strlen(new_array[0]));
return new_array;
}
"new_array" has my data that I want copied to the clipboard..... I dont know
what to do next..
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/16uqlB/TM
--------------------------------------------------------------------~->
Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MUI/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/