GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Button disable when no selection


#1

I have these 3 buttons...

<?xml version="1.0"?> <button display="both"> <label>Date</label> <tip>D�placer dans des dossiers par date (aaaa-mm) (shift pour aaaa-mm-jj)</tip> <icon1>#syncpane1</icon1> <function type="normal"> <instruction>@keydown:none</instruction> <instruction>@nodeselect </instruction> <instruction>Rename REGEXP PATTERN (.*) TO {modifieddate|D#yyyy-MM}\\\0 FILEINFO</instruction> <instruction>@keydown:shift</instruction> <instruction>@nodeselect </instruction> <instruction>Rename REGEXP PATTERN (.*) TO {modifieddate}\\\0 FILEINFO</instruction> </function> </button>

<?xml version="1.0"?> <button display="both"> <label>Extension</label> <tip>D�placer dans des dossiers par extension (maj par nom de fichier)</tip> <icon1>#syncpane1</icon1> <function type="normal"> <instruction>@keydown:none</instruction> <instruction>Copy MOVE HERE CREATEFOLDER {o|ext2}</instruction> <instruction>@keydown:shift</instruction> <instruction>Copy MOVE HERE CREATEFOLDER {file|noext}</instruction> </function> </button>

<?xml version="1.0"?> <button display="both"> <label>Parent</label> <tip>D�placer dans le dossier parent (maj pour le contenu des dossiers s�lectionn�s)</tip> <icon1>#goup</icon1> <function type="normal"> <instruction>@disablenosel </instruction> <instruction>@keydown:none</instruction> <instruction>Copy {f} MOVE TO {f|..\..}</instruction> <instruction>@keydown:shift</instruction> <instruction>Copy MOVE &quot;{filepath}\*&quot; to={sourcepath}</instruction> </function> </button>

If there is no item selected, these 3 buttons are disabled.
Now, I create a "3 buttons" with these 3 buttons.

If no item is selected, 3 button is always enable.
If I delete "Parent" button from 3 buttons, it's ok...

Another strange thing with a 3 button.

<?xml version="1.0"?> <button display="both" separate="yes" type="three_button"> <label>Casse</label> <icon1>#rename2</icon1> <button display="both"> <label>1�re lettre</label> <tip>1�re lettre en majuscule et extension en minuscule</tip> <icon1>#rename2</icon1> <function type="normal"> <instruction>@nodeselect </instruction> <instruction>Rename CASE=allwords</instruction> <instruction>Rename CASE=extlower</instruction> </function> </button> <button display="both"> <label>Majuscule</label> <tip>Majuscule (maj pour extension)</tip> <icon1>#rename2</icon1> <function type="normal"> <instruction>@keydown:none</instruction> <instruction>@nodeselect </instruction> <instruction>Rename CASE=upper</instruction> <instruction>Rename CASE=extlower</instruction> <instruction>@keydown:shift</instruction> <instruction>@nodeselect </instruction> <instruction>Rename CASE=extupper</instruction> </function> </button> <button display="both"> <label>Minuscule</label> <tip>Minuscule (maj pour extension)</tip> <icon1>#rename2</icon1> <function type="normal"> <instruction>@keydown:none</instruction> <instruction>@nodeselect </instruction> <instruction>Rename CASE=lower</instruction> <instruction>@keydown:shift</instruction> <instruction>@nodeselect </instruction> <instruction>Rename CASE=extlower</instruction> </function> </button> </button>

If no item is selected, button is disable. But if you press shift or alt or ctrl keys and no item selected, button is enable. I need to select item then deselect it to disable button.


#2

Leo, you can look at this when you can... :frowning:


#3

Thanks, will be fixed in the next version.