When I copy text from my nlist object to the clipboard, it has \n's at the end
of every line, but I want to remove those for some lines. Is there an easy way
to do this?
MUIA_NList_CopyColumnToClipHook -- [IS.], struct Hook *
This seems to do the job, but it retains the \n's at the end of each line. If I
add simple text like "hello", it gets an \n added to the end automatically.
I'm having a lot of problems with MUIA_NList_CopyEntryToClipHook .. when I get
the information for the selected stuff, I cant figure out a way to work out
whats been selected..
[csource]
clipboard_struct.pos=(long)array[-1];
DoMethod((Object*)status_current->current_query->LV_channel,MUIM_NList_GetEntryInfo,&clipboard_struct);
printf("\n\nentry:%s\n",clipboard_struct.entry);
[/csource]
If I highlight an entry spanning 4 lines, the first call to my clipboard hook
gives this debug information:
col1:-2
pos1:10
col2:-1
pos2:-2
Thats great, start copying at character 10.. but the next three lines say:
col1:-1
pos1:-1
col2:-1
pos2:-2
Its tough because -2 means "end of the line", but I've got 1 entry spanning 4
lines, I dont know what the start/end pos of each line is..
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/MUI/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/