Hi Team,
i have a menu, for which the menu items are added dynamically. So for a particular menu item, I want to add submenu items.So I find out the menu item text dynamically and if that condition is true I am enabling and making visible True. Else these submenu items will be invisible. So for all other screens wherever this menu is used ,then in those cases next to the menu item index number the submenu link is visible, although the submenu items are invisible. I want to know how to make that invisible too.
Thanks
Subrat
Having a menu item that sometimes cascades and sometimes does not cascade is not, IMHO, good user interface design because the user does not know how the menu will behave. This is likely why Windows always displays the cascade arrow whenever any cascaded menu items are defined.
If menu item "9" in your above example has no visible cascaded menu items, then I think you should also hide menu item "9".
I agree 100% - IMHO you should never try & defeat standard O/S behaviour. That also goes in reverse .. your PB Apps should always be designed to tap into standard O/S behaviour. App users are typically "creatures of habit" thus, you should never introduce negative GUI behaviour. That also goes for new App users that will expect this standard GUI behaviour. Just my $0.02.
Regards ... Chris