Profile Picture

Wrong default value for NTabControl.CloseTabOnMiddleClick

Posted By Oliver Münchow 12 Years Ago

Wrong default value for NTabControl.CloseTabOnMiddleClick

Author
Message
Oliver Münchow
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 10, Visits: 2
We found in our tool a bug, which root cause is the property NTabControl.CloseTabOnMiddleClick.

In our application we take care ourself about creating and destroying tab pages. Due to the fact that the properties
- AllowTabReoder => default: false
- HasClose => default: false
- ShowCloseOnEachTab => default: false

are set we thought that everything is okay and the user has no chance to remove or add tab pages through the Nevron UI.

Unfortunately a user found out that he could click with the middle mouse button on a tab page and it disappears. After a fast look into the NTabControl we found the property:
- CloseTabOnMiddleClick => default: true

We simply had to set this value to false and everything worked as expected. The only problem (in my eyes) is the bad choosen default value of this property. This feature is not very well known to the most users (and developers) and so they mostly don't test it. Additionally the default values of all other user manipulation possibilities are set to "user is not allowed to change this", but this property not.

So for the next release, please change the default value of this property to false, so that it will better mesh with the other values.



Similar Topics


Reading This Topic