Page 1 of 1
Menu Item Visible property not working

Posted:
12 Sep 2016 03:36
by zsleo
CGD version 3.0.0.46
At design time and at run time setting an item's visible property to false does not work.
Disabled property does work...
Can this be fixed please.
TIA
Re: Menu Item Visible property not working

Posted:
12 Sep 2016 15:44
by Jorge Sousa
Hello
This is working
See demo attached
Re: Menu Item Visible property not working

Posted:
13 Sep 2016 02:18
by zsleo
Jorge
This does not work as expected...
In your project I changed the following:
Design time:
...Items[1].Visible := False;
Run time for OnCreate:
...Items[0].Visible := False;
On first render both are still visible.
Run time your button:
changes visibility of Items[0] correctly but if you place a break point on your button event you will see that the Items[1].Visible = False but it still visible
Regards
Re: Menu Item Visible property not working

Posted:
13 Sep 2016 12:22
by Jorge Sousa
Hello Leo
Thanks for your report
The problem was not setting invisible items assigned at creation time (design or runtime)
Fixed for next release