Window Cancel Button With Tab Control

Answered
0
0

Hi,

I have a pretty standard Window which has a Tab Control in it.

I have a Close Form button which I have attached to the window CancelButton so I can hit escape so that the Window is closed.

This all works perfectly until I select a tab in the tab Control.

Once I have selected a Tab, the event no longer fires.

I have confirmed this by first loading the Window, and hit Escape and it closes.

If I then perform the same process but Select any of the tabs, the event no longer fires.

For testing I set the TabControl to Anonymous = true which made  no difference.

I also set all the TabPages to Anonymous = true which also made no difference.

If this an issue in WiseJ?  Or due to the TabControl design, it cant be achieved.

Thanks,

Brayden.

PS. WiseJ 2.2.54

  • You must to post comments
Best Answer
0
0

Hi Brayden,

I have tried to reproduce following your description but I failed.
Can you please test with attached app and modify it so it´s the same as your app
or can you please create a test case for us that shows that behavior?

Best regards
Frank

  • Brayden McLachlan
    Hi Frank, My apologies on this. As it turns out, I was trying to use a “hidden” button to close the Window so its of Size(1,1) and I didnt realise that the button itself was actually inside one of the tab pages. So when I focussed out to another of the Tab Pages, it no longer worked. Ive moved the button outside the Tab Control and onto the Main Window and it works as expected. Thanks, Brayden.
  • Frank (ITG)
    Hi Brayden, no worries at all. Thanks for clarifying the reason why it failed. Best regards, Frank
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.