Page 1 of 1

Menu Item Toggle State Lost after OpenDisplay()

Posted: Sat Mar 07, 2020 12:52 am
by PEB
The toggle state of the menu item is deselected after OpenDisplay() is called.

Code: Select all

@MENU 1, {{"Test", {{"Toggle", ID="toggle", Flags=#MENUITEM_TOGGLE}}}}
@DISPLAY {Menu=1}

SelectMenuItem(1, "toggle")

WaitLeftMouse()
CloseDisplay(1)
Wait(40)
OpenDisplay(1)

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sat Mar 07, 2020 11:06 pm
by airsoftsoftwair
Ok, this looks like a bug, will be fixed.

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Fri Sep 04, 2020 10:11 pm
by airsoftsoftwair

Code: Select all

- Fix: When closing and reopening a display, menu states like selected and disabled items were lost; on
  AmigaOS this also happened when hiding displays and showing them again

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sat Sep 05, 2020 5:03 am
by PEB
Thanks!

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sat Sep 05, 2020 11:46 am
by Juan Carlos
Also was fixed the problem in Amiga systems when you minimize/hide your program and when it is again showed the status buttons are lost?

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sat Sep 05, 2020 4:36 pm
by airsoftsoftwair
Juan Carlos wrote:
Sat Sep 05, 2020 11:46 am
Also was fixed the problem in Amiga systems when you minimize/hide your program and when it is again showed the status buttons are lost?
What do you mean by "status buttons"?

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sun Sep 06, 2020 10:48 am
by Juan Carlos
The explain is very easy, this is the menu of one program where I found the problem.

Code: Select all

@MENU 1,
{
    {"Ritual",
      {
	  {"See the Maiden", ID="Doncella", Flags=#MENUITEM_TOGGLE},
	  {""},
	  {"Exit...", ID="quit", Hotkey="ESC"}
       }
    },

    {"Special Tools",
      {
	  {"Hand", ID="Puntero01", Flags=#MENUITEM_DISABLED},
	  {""},
	  {"Option2, ID="Puntero05", Flags=#MENUITEM_DISABLED},
	  {"Option3", ID="Puntero06", Flags=#MENUITEM_DISABLED},
	  {"Option4", ID="Puntero07", Flags=#MENUITEM_DISABLED},
	  {"Option5", ID="Puntero08", Flags=#MENUITEM_DISABLED},
	  {"Bowl", ID="Puntero09", Flags=#MENUITEM_DISABLED}	
      }
    },

    {"Vital",
      {
	  {"Option1", ID="Fluido01", Flags=#MENUITEM_DISABLED},
	  {"Option2", ID="Fluido02", Flags=#MENUITEM_DISABLED},
	  {"Option3, ID="Fluido03", Flags=#MENUITEM_DISABLED}	
      }
    },

    {"Preferences",
      {
	  {"Left handed", ID="Zurdo", Flags=#MENUITEM_TOGGLE},
	  {"Right handed", ID="Diestro", Flags=#MENUITEM_TOGGLE},
	  {""},
	  {"Pentacle",
	      {
		{"Normal", ID="Pentaculo01", Flags=#MENUITEM_TOGGLE},
		{"Inverted", ID="Pentaculo02", Flags=#MENUITEM_TOGGLE}	
	      }
	  },
	  {""},
	  {"Wicca Bowl",
	      {
		{"Triquetra", ID="Copa1", Flags=#MENUITEM_TOGGLE},
		{"Triple Goddess", ID="Copa2", Flags=#MENUITEM_TOGGLE},
		{"Skull Cup", ID="Copa3", Flags=#MENUITEM_TOGGLE}
	      }
	  },
	  {""},
	  {"Sound",
	      {
		{"ON", ID="SonidoOn", Flags=#MENUITEM_TOGGLE},
		{"OFF", ID="SonidoOff", Flags=#MENUITEM_TOGGLE}
	      }
	  },
	  {"Voices..",
	      {
		{"ON..", ID="VozOn", Flags=#MENUITEM_TOGGLE},
		{"OFF..", ID="VozOff", Flags=#MENUITEM_TOGGLE}
	      }
	  },
	  {""},
	  {"Parental control",
	     {
		 {"Enter Password", ID="Clave"},
		 {"Change Password", ID="Cambiar"},
		 {"Remove Password", ID="Anular"}
	     }
	  },
	  {""},
	  {"Save..", ID="save"}
      }
    },

    {"?",
      {
	  {"Help", ID="Ayuda01"},
	  {""},
	  {"About", ID="about"},
	  {"Visit my web to check updates", ID="web"}
      }
    }
}
In this menu taken from my Virtual Maiden, the options with Flags=#MENUITEM_DISABLED, when have been activated and the options like:
{"ON", ID="SonidoOn", Flags=#MENUITEM_TOGGLE},
{"OFF", ID="SonidoOff", Flags=#MENUITEM_TOGGLE}
when you hide the program under MorphOS the options with the Flags=#MENUITEM_DISABLED and have been actiavated again change to be disabled and the normal options lile the ON or OFF that show tab of one of the two activated options also disappear, in both cases after of hide and recover the program the status of options is removed while in Windows this problem does not exist, you can hide the program and when you recover it the options are showed correctly if they are activated and the tab in the chosen options.

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sun Sep 06, 2020 1:32 pm
by airsoftsoftwair
Yes, this is exactly the bug that is fixed now.

Re: Menu Item Toggle State Lost after OpenDisplay()

Posted: Sun Sep 06, 2020 9:56 pm
by Juan Carlos
Well, I would have reported you this bug before, but like you ignore me, or you tell me that you don't understand me, ir that I hijack you, well I have fear ti reporte you bugs.
And the question when que have this update that fixed the bugs, and the big question, this update will be free or paid?