Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » query , update menu / submenu itens (build routine to query or change menu items at runtime)
Re: query , update menu / submenu itens [message #58347 is a reply to message #58345] Wed, 04 May 2022 16:00 Go to previous messageGo to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi, see

"I hit my head" and reached the maximum only in gaining access to the 2 menu items (Register and Sai) that are on the 1st level:


          LOG("HERE " << bar.GetFirstChild()->GetFirstChild()->GetDesc());
          LOG("HERE next " << bar.GetFirstChild()->GetFirstChild()->GetNext()->GetDesc());



from then on I can't get the submenu items because in the 1st item (Registers) it returns that it has no child!

        LOG("CHILD ? " <<  bar.GetFirstChild()->GetFirstChild()->GetChildCount() );


Could someone with more knowledge suggest something? Or even if this would be the way?
Note that at runtime, the U++ user could change the description of an item, or delete an item/sub-item, or disable/deactivate temporarily.

Thanks!

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: menu's small box when i18n
Next Topic: Accelerators stop after popup menu due to focus
Goto Forum:
  


Current Time: Wed May 08 16:59:35 CEST 2024

Total time taken to generate the page: 0.02165 seconds