Custom clips

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
SurfMan

Custom clips

Post 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
Andreas

Re: Custom clips

Post by Andreas »

Yes, unfortunately there is only one hotspot allowed.

Andreas
SurfMan

Re: Custom clips

Post 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
SurfMan

Re: Custom clips

Post 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
Post Reply