Hyperlinks not activated by callback?

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Hyperlinks not activated by callback?

Re: Hyperlinks not activated by callback?

Post by Guest » Thu Apr 19, 2012 9:04 am

Hi Robert,

yes! This (stopScanningForLinks) fixes my problem.

Greetings
Stefan

Re: Hyperlinks not activated by callback?

Post by robert » Thu Apr 19, 2012 2:49 am

I couldn't reproduce this, but I pushed what I think would be a fix anyway. :D If you can, try to grab at least revision 479 from SVN and see if you can reproduce the 2x link activation issue.

Re: Hyperlinks not activated by callback?

Post by Guest » Wed Apr 18, 2012 10:14 am

Thanks.

Greetings
Stefan

Re: Hyperlinks not activated by callback?

Post by robert » Fri Apr 13, 2012 12:51 pm

I'll look into this.

Re: Hyperlinks not activated by callback?

Post by Guest » Tue Apr 10, 2012 1:15 pm

Hi Robert,

as always, thanks for your answer. I should have seen this myself.

Now a new problem occurs:

I implemented a HyperlinkListener, upon a click the listener-callback now gets called, I get passed the data as expected - everything is ok up to this point.

BUT: after the click the hyperlink keeps beeing selected, when I click back directly into the RSyntaxTextArea, the link immediately gets activated again - independently from where I click.

Stefan

Re: Hyperlinks not activated by callback?

Post by robert » Sat Apr 07, 2012 7:26 pm

Hi Stefan,

Are you holding down Ctrl when hovering over a hyperlink? RSTA requires a modifier key to be pressed for hyperlinks to be scanned for and activated (see setLinkScanningMask(int)). And yes, we use a MouseMotionListener so we can detect when the mouse moves into a hyperlink, so we can change the cursor to/from the standard link "hand" cursor.

Hyperlinks not activated by callback?

Post by Guest » Sat Apr 07, 2012 7:06 pm

Hi,

the method mouseClicked in RSyntaxTextArea is not called when the user clicks into the editor.

Thus, the code to activate the hyperlink-callbacks is never activated.

Btw, the method mouseMoved is called when the user moves the mouse.

Stefan

Top

cron