Auto-Scroll to Selection

AmigaOS users can make feature requests in this forum.
Post Reply
User avatar
djrikki
Posts: 138
Joined: Fri Jun 17, 2011 10:21 pm
Location: Grimsby, Lincolnshire, UK
Contact:

Auto-Scroll to Selection

Post by djrikki »

Hello,

Just a little oversight I've seen in Workbench, if file(s) are selected from a Workbench window programmatically (e.g. through Arexx), yes the window/drawer is opened, but if there are many files in the window/drawer and the selected file(s) are at the bottom of the window/drawer out of view the vertical scrollbar doesn't not 'jump/auto-scroll' to meet the selection. An important usability issue.
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Auto-Scroll to Selection

Post by nbache »

Try the MAKEVISIBLE argument to the ICON ARexx command in Workbench.

Best regards,

Niels
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 5:40 am
Location: France

Re: Auto-Scroll to Selection

Post by zzd10h »

I have the same problem in my programs when I use ChangeWorkbenchSelection() to open a drawer and select a file into it.

Is it a tag that simulates the option MAKEVISIBLE that nbache speak about ?

Thank you
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Auto-Scroll to Selection

Post by javierdlr »

zzd10h wrote:I have the same problem in my programs when I use ChangeWorkbenchSelection() to open a drawer and select a file into it.

Is it a tag that simulates the option MAKEVISIBLE that nbache speak about ?

Thank you
workbench.library/MakeWorkbenchObjectVisibleA workbench.library/MakeWorkbenchObjectVisibleA

NAME
MakeWorkbenchObjectVisibleA -- Change a Workbench window in such a
way as to make a particular icon visible. (V44)
..
EXAMPLE
// Make the icon for the drawer "SYS:" visible.
MakeWorkbenchObjectVisible("SYS:",TAG_END);
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 5:40 am
Location: France

Re: Auto-Scroll to Selection

Post by zzd10h »

Thank you Javier,
it works very well ;)
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
Post Reply