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 » Accelerators stop after popup menu due to focus
Re: Accelerators stop after popup menu due to focus [message #59824 is a reply to message #59823] Wed, 26 April 2023 18:14 Go to previous message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
Fixed the problem for my self added SetFocus() to the code after the execute

  void ArrayCtrl::RightDown(Point p, dword flags) {
    if((flags & (K_CTRL | K_SHIFT)) == 0) {
      if(cursor >= 0 && !multiselect) {
        ClearSelection();
      }
      DoPoint(p, false);
      ClickColumn(p);
      if(cursor >= 0 && multiselect) {
        if(!IsSelected(cursor)) {
          ClearSelection();
          SelectOne(anchor = cursor);
        }
        Action();
      }
    }
    MenuBar::Execute(WhenBar);
    SetFocus();
  }
 
Read Message
Read Message
Previous Topic: query , update menu / submenu itens
Next Topic: Menu opens, but does not close (Bug?)
Goto Forum:
  


Current Time: Fri May 09 20:06:23 CEST 2025

Total time taken to generate the page: 0.00455 seconds