Transpiled version (9941L) is out of date.
svoid scrollTextAreaToLineAndCol(JTextArea ta, LineAndColumn lac) { pcall swing ctex { int pos = ta.getLineStartOffset(lac.line-1)+lac.col-1; Rectangle viewRect = ta.modelToView(pos); printVars("scrollTextAreaToLineAndCol", +lac, +pos, +viewRect); if (viewRect != null) setEnclosingViewPosition(ta, viewRect.x, viewRect.y); } }
Began life as a copy of #1035160
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036479 |
Snippet name: | scrollTextAreaToLineAndCol |
Eternal ID of this version: | #1036479/7 |
Text MD5: | 807078e89b2a2186bdcb558c3a6e8ccd |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-17 17:01:28 |
Source code size: | 361 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 254 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |