Don't reset the procedures tool panel scroll

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Don't reset the procedures tool panel scroll

Post by Trond »

When there are many items in the procedures panel they don't all fit. And every time it is updated, the scroll position is reset to the top. So when I'm working with the lower parts of the source, I have to scroll again and again.

Preserving the scroll position would be really useful.
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: Don't reset the procedures tool panel scroll

Post by kenmo »

Sounds reasonable.

The whole list is probably recreated on every change, instead of stepping through and adding/changing/deleting elements when needed.

I know I've had to implement similar ListIcon modifying routines in my own GUIs to preserve selection and scroll position... though it probably could be "faked" by remembering the selection/scroll and re-applying it after rebuilding the list?
Post Reply