Menu Item Toggle State Lost after OpenDisplay()

Report any Hollywood bugs here
Post Reply
PEB
Posts: 567
Joined: Sun Feb 21, 2010 1:28 am

Menu Item Toggle State Lost after OpenDisplay()

Post 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)
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu Item Toggle State Lost after OpenDisplay()

Post by airsoftsoftwair »

Ok, this looks like a bug, will be fixed.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu Item Toggle State Lost after OpenDisplay()

Post 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
PEB
Posts: 567
Joined: Sun Feb 21, 2010 1:28 am

Re: Menu Item Toggle State Lost after OpenDisplay()

Post by PEB »

Thanks!
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Menu Item Toggle State Lost after OpenDisplay()

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu Item Toggle State Lost after OpenDisplay()

Post 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"?
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Menu Item Toggle State Lost after OpenDisplay()

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu Item Toggle State Lost after OpenDisplay()

Post by airsoftsoftwair »

Yes, this is exactly the bug that is fixed now.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Menu Item Toggle State Lost after OpenDisplay()

Post 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?
Post Reply