On Wed, 23 Mar 2005, jahc2 wrote:

> > > I cant understand the autodocs.. what structure or type or whatever
> > > do I use for "a1" ? I cant seem to figure it out..
> > 
> > Disregard my previous message, I got it going..
> > 
> > MUIA_NList_CopyColumnToClipHook2, &Custom_Clipboard_Hook,
> > 
> > and then use in my hook:
> >   register struct NList_CopyColumnToClipMessage *a1 __asm("a1");  struct 
> > NList_CopyColumnToClipMessage *new_entry = a1;
> 
> Okay, I'm still struggling.
> 
> How do you choose what to copy to the clipboard? Where do you store that 
> string?

>From autodocs:

        You'll get the entry num in -1 element of the given array,
        elements 1 and 2 are the positions of the first selected
        char and the last+1.

        You must return the pointer of the string to copy to
        clipboard in element 0, a the string length in element 1.

It is not perfectly clear. But it seems that you modify string array 
pointers...

   orig_str = array[0];

   /* process string here */

   array[0] = "copy this to clipboard";
   array[1] = strlen("copy this to clipboard") + 1;

Documentation is really confusing... but try? :)


   Ilkka




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/
 



Reply via email to