key shortcuts in folders ?

mmohrmann

New Member
is there a way to reach the tabs in a smartfolder with a key shortcut ?

I tried typing a _ in the tab names... progress displays the tab names as if they could be reached with a keystroke... but it's not working...

I tried defining a keyboard event on the smartwindow itself. But it seems as if keyboard events on the smartwindow have no effect at all...

any suggestions ?

thanks...
 

bendaluz2

Member
Try this

A bit like cracking a nut with a sledgehammer, but it should work.

In the Main Block of the Window / Frame that contains the folder do this:

ON "ALT-P" ANYWHERE
RUN show-current-page IN h_folder
(1).
ON "ALT-S" ANYWHERE
RUN show-current-page IN h_folder
(2).
ON "ALT-W" ANYWHERE
RUN show-current-page IN h_folder
(3).

ALT-P will then show page 1, ALT-S page 2, etc...

Hope this helps
:)
 

laa

Member
I don't know if it is the difference of the versions of Progress we are running (I'm using v9.1C), but I was not able to use the above logic. The showCurrentPage procedure would not actually bring up the page I wanted from the folder tab. The tab was actually changed but the page wasn't. (Looks really confusing.)

To use shortcut keys with my folder I had to use the following code:

RUN label-trigger IN h_folder (1).

Does this have to do with my version of Progress, or is there something going wrong in my program.

Anne.
 

bendaluz2

Member
I think it is the version, yes. The show-current-page procedure is in the adm, but adm is radically different.

the code i gave was for 8.x

Well, we got all bases covered between us :)
 
Top