Feature request: default item of a menu being selected
Posted: 01 Nov 2009 22:21
Since 8.40.0101 (with changes in 8.40.0102), XYplorer allows the visual display of a default item in a menu:
After testing with 8.50.0036 beta, it seems that setting an item as default does not automatically select it in the menu thus enabling the user to use the arrow keys to navigate from the default item. This would be useful for Muroph's TeraCopy Integration script as it would emulate the keyboard control of the Copy/Move/Backup To-dialog.
By way of an example: the TeraCopy Integration script reads XYplorer's Copy/Move/Backtup To-list and populates the menu with these folders. By also reading the last used folder and setting its item as default (which it currently can't do), one can use the arrow key to select another, possibly close-by folder:
C:\Data\A
C:\Data\B
C:\Data\C (default: currently bolded but not selected)
C:\Data\D
C:\Data\E
...
By selecting the default item, in this case selecting D from C with the arrow keys would be faster and also more consistent with XYplorer's built-in dialog. Hopefully this could also be used in other scripts.
Code: Select all
+ Scripting: Changed yesterday's syntax for item states. No more
prefixed "+" or "!". Now you define the states Default (Bold),
Checked, and Disabled by combining binary values.
Syntax:
"Caption|Icon|State : Label" Script
where
State Default = 1
State Checked = 2
State Disabled = 4
For example:
"Go C:|C:|1" goto "C:\"; //shown bold
"Go D:|D:|2" goto "D:\"; //shown checked
"Go E:|E:|3" goto "E:\"; //shown bold and checked
By way of an example: the TeraCopy Integration script reads XYplorer's Copy/Move/Backtup To-list and populates the menu with these folders. By also reading the last used folder and setting its item as default (which it currently can't do), one can use the arrow key to select another, possibly close-by folder:
C:\Data\A
C:\Data\B
C:\Data\C (default: currently bolded but not selected)
C:\Data\D
C:\Data\E
...
By selecting the default item, in this case selecting D from C with the arrow keys would be faster and also more consistent with XYplorer's built-in dialog. Hopefully this could also be used in other scripts.