Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
124
We have an issue with keyboard input focus and the UltraTilePanel on the main form of our application. This UltraTilePanel contains a number of tiles each of which contains a winforms Panel inside of which is one of our user controls which derive from a co
posted

Hi All,

We have an issue with keyboard input focus and the UltraTilePanel on the main form of our application. This UltraTilePanel contains a number of tiles each of which contains a winforms Panel inside of which is one of our user controls which derive from a common list base control. All controls descendent from that base type contain an ultra tool manager and an UltraGrid. (See Image)



When the default layout is loaded we have one large main tile and a number of smaller panels. When a row is selected in the grid of a small panels user control and the user is working in there it takes keyboard input correctly, however when the user clicks on the add button of the UltraToolManager toolbar in another pane and completes a modal edit dialog the usercontrol repopulates the grid in that tile but the keyboard focus stays with the original tile the user was first working with so when they now press the delete key expecting to delete the newly added record it prompts them to confirm that they want to delete the record the initially selected in the small tile window.

So the issue comes down to how to switch keyboard input focus to the UltraGrid in the user control when the user clicks on the tool bar button in that control, because just calling the focus method on the grid doesn’t work, it seems that the UltraTilePanel is preventing the keyboard input focus from being switched from the first Tile to the second.

I hope that makes sense, thankfully it has been simpler building it so far that it was explaining it.

Thanks for any help,
Simon Geering

Software Developer
Star Computers Limited

Parents
No Data
Reply
  • 48586
    posted

    Hello ,

     

    Toolbars are components, which are not design to receive the focus (except some tools  for entering of text). So when you are onto a panel and you click on a button of Toolbar from another panel, the focus should retain  in the first panel. So you should manually move the focus onto a component (which could receive  the input focus) of the panel  of which the clicked Toolbar's button belongs.

     

    Please let me know if you have any further questions

Children
No Data