• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Update hiCreateHypertextField without resetting scroll ...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 10702
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Update hiCreateHypertextField without resetting scroll position

russG
russG over 4 years ago

Hi,

I have a SKILL form which (amongst other things) displays the contents of a logfile with hyperlinks added to file paths etc. using a hypertext field created with hiCreateHypertextField(). The contents of the logfile is periodically queried, new lines processed to insert links, and the contents of the field updated using hiHypertextReplace() - this part works well. Unfortunately the act of updating the field contents causes the scrollbar to reset and makes it pretty much impossible to use the contents in any meaningful way until the process writing to the logfile is complete.

I would like to be able grab the current position of the data within the hypertext field before the data is refreshed and then restore it afterwards (or employ some other approach to prevent the position from being reset). I have tried using hiSetInsertionPosition()/hiGetInsertionPosition() and hiGetScrollBarInfo()/hiSetScrollBarValue()  combinations in case those work but without luck.

Does anyone else have any ideas or know if this is even possible?

Thanks

Russ

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Hi Russ,

    I think the only way of doing this is to use hiHypertextScroll but you might need to put some artificial anchor points in there and scroll to those (maybe something like <a name="END"></a> and then you can get it to scroll to the anchor "END")? From a quick experiment this seems to work OK.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • russG
    russG over 4 years ago in reply to Andrew Beckett

    Thanks Andrew. I can see using that approach I could at least implement a live tailing of the field/log data. I suppose that I could I enable/disable the live updates (and tailing) based on checkbox or similar - a bit clunky from a UX perspective but better than the present implementation. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information