Krypton Navigator - Behaviour

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

Krypton Navigator - Behaviour

Postby jorgemdg » Wed Apr 25, 2007 4:41 am

First let me congratulate you guys on the excellent controls you've created!
I've been trying out the Navigator and have some doubts about it:
- shouldn't the pages on the Navigator close using CTRL+F4, i find it odd that it doesn't since they cycle using CRTL+TAB;
- now suppose you have a form with a few textboxes inside a page and want to ask the user, when they close the page, if he wants to save the changes made. The typical dialog would display 3 options: Yes, No and Cancel. I could show the dialog using the event KryptonNavigator.Pages.Removing but I found that there wasn't a e.Cancel property that would be true if the user wanted to actually cancel the closing of the page.

Any thoughts or help would be appreciated :)
jorgemdg
 
Posts: 1
Joined: Wed Apr 25, 2007 4:18 am

Postby jarekz » Wed Apr 25, 2007 8:24 pm

You can use the CloseAction event and set e.Action=CloseButtonAction.None which is equivalent to e.Cancel=true.
The question is how to invoke CloseAction for certain page elswhere by code.
jarekz
 
Posts: 47
Joined: Fri Apr 13, 2007 1:12 am
Location: Poland

Postby Phil Wright » Wed Apr 25, 2007 9:52 pm

I did not realize that CTRL+F4 was a common combination for closing the current page. I will look into adding this in the next release.

As pointed out by jarekz, you can use the CloseAction event and then present a modal dialog box. Then you set the e.Action to the appropriate action you would like to take place.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby Phil Wright » Tue May 01, 2007 3:17 pm

I have added Ctrl+F4 to the navigator for closing the current page. I have also added Ctrl+Alt+Down Arrow for opening up the context menu and Ctrl+F6, Ctrl+Shift+F6 for the next and previous buttons respectively. This will be in the next release.

And I added mnemonics for the tab headers and check buttons as well.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Navigator

Who is online

Users browsing this forum: No registered users and 2 guests