3 buttons state not saved

Hi all,

I find something strange but I don’t know if it’s a bug.
Few days I have created a 3 button to open windows explorer. I saved this button by drag&drop in folder.
Today I import button by drag&drop to toolbar and 3 button type are disabled. Strange but… if I edit button with notepad, nothing about 3 button state.
So I enabled 3 buttons and drag&drop button from toolbar to folder to save it. But 3 button type are never saved…
Can you test this please ?
Explorateur Windows.dcf (908 Bytes)

If I drop that .dcf file on my toolbar I get a three-button with:

Left-Click
Ouvre l'explorateur
%SystemRoot%\explorer.exe /n,/e,c:\

Right-Click
Ouvre l'explorateur ici
%SystemRoot%\explorer.exe /n,/e,{s!}

and no middle-click action.

All looks fine to me, unless that isn't what you started with.

Really Strange... because if you edit button with text editor you can see...

<?xml version="1.0"?> <button backcol="none" display="icon" textcol="none">
and not

<?xml version="1.0"?> <button backcol="none" display="icon" textcol="none" [b]type="three_button"[/b]>

That isn't how three-buttons are represented in XML. Look more closely at the file and you'll see how it works. (Hint: There are button nodes inside the first button node.)

if i create three-buttons i have this:

<?xml version="1.0"?> <button backcol="none" display="both" textcol="none" type="three_button"> <label>Bouton</label> <icon1>#newcommand</icon1> <button backcol="none" display="both" textcol="none"> <label>Bouton</label> <icon1>#newcommand</icon1> </button> <button backcol="none" display="both" textcol="none"> <label>Bouton</label> <icon1>#newcommand</icon1> </button> <button backcol="none" display="both" textcol="none"> <label>Bouton</label> <icon1>#newcommand</icon1> </button> </button>
if i edit file and delete type="three_button", button switch to menu button.
So if you edit my upload button, you can see that type="three_button" don't exist, so i don't understand why when you drag&drop button to toolbar, it's a three-button. and if you enable three-button and drag&drop last button to save it, type are not saved...

You're right, there is something odd going on. I tried with one of my three-buttons and while it stayed as a three-button, when it came back the icon was turned off and the label turned on instead.

I suspect there's a bug in the code which saves (or loads) buttons to individual .dcf files that isn't saving/loading the flags properly. I've sent GPSoft a bug report.

In the meantime I think you'll have to share buttons by either copying them to the clipboard (so you get some similar XML that people can paste straight to their toolbars via the right-click menu) or by sharing a toolbar instead of just the buttons.

Edit: It looks like with your particular example that even the clipboard/XML method drops the three-button type for some reason. Strange. I'm sure GPSoft can get to the bottom of it though.