Page 1 of 1

Custom clips

Posted: Thu Jan 11, 2001 11:03 am
by SurfMan
Can the hot spot \^ be used more than one time in a clipping????

I have this clip:

!TEXT=public String accessor/mutator
public String get\^() {
return \^;
}

public type set\^(String tmp\^) {
this.\^=tmp\^;
}
!

It returns this when I select the text "Name":

public String getName() {
return \^;
}

public type set\^(String tmp\^) {
this.\^=tmp\^;
}

So the first hotspot is OK, the rest is useless....

pls help

Surf

Re: Custom clips

Posted: Thu Jan 11, 2001 12:21 pm
by Andreas
Yes, unfortunately there is only one hotspot allowed.

Andreas

Re: Custom clips

Posted: Thu Jan 11, 2001 12:44 pm
by SurfMan
Whoa!!!!... now THAT is a bummer :((((

Will there be a patch to fix this??? Or is this by design???

I also found out in the meantime that the insertion of clips is not recorded in macros... Or am I wrong here... I was thinking of the following:

1) select some text
2) run my clip, and put !@# in place of the new text
3) run a macro which replaces !@# with the selected text...

But I can't get it to work... any suggestions?

PS: Textpad rulez, except for them "bugs by design" :))

SurfMan

Re: Custom clips

Posted: Thu Jan 11, 2001 1:20 pm
by SurfMan
I solved it by simply copying the text, typing my statements, then paste the text in the appropriate places... I used a macro to do this...

It's ugly, but it works...

Still I'd like to use the clip-library for this.... I think that's what it's for....

SurfMan