Page 1 of 1

Auto-Scroll to Selection

Posted: Tue Apr 01, 2014 10:01 am
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.

Re: Auto-Scroll to Selection

Posted: Tue Apr 01, 2014 10:14 pm
by nbache
Try the MAKEVISIBLE argument to the ICON ARexx command in Workbench.

Best regards,

Niels

Re: Auto-Scroll to Selection

Posted: Wed Apr 02, 2014 7:32 am
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

Re: Auto-Scroll to Selection

Posted: Wed Apr 02, 2014 11:54 am
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);

Re: Auto-Scroll to Selection

Posted: Wed Apr 02, 2014 8:44 pm
by zzd10h
Thank you Javier,
it works very well ;)