ADAdministrator Syncfusion Team March 11, 2003 06:09 PM UTC
Our current version doesn't support overriding this behavior. We have however made way to do this in our upcoming release.
In our next release (due end of this month) you can do the following:
You can easily do this by handling the DrawItem event, adjusting the DrawTabEventArgs as follows and delegating drawing to the default drawing logic.
private void tabControlExt1_DrawItem(object sender, Syncfusion.Windows.Forms.Tools.DrawTabEventArgs drawItemInfo)
// To indicate that the tab gets drawn as if it’s not focused (without the focus rect).
drawItemInfo.State &= ~DrawItemState.Focus;
// Then forward drawing to default drawing logic.
RPRamesh Praveen Syncfusion Team May 1, 2003 05:15 PM UTC
Private Sub tabControlExt1_DrawItem(ByVal sender As Object, ByVal drawItemInfo As Syncfusion.Windows.Forms.Tools.DrawTabEventArgs) Handles tabControlExt1.DrawItem
'drawItemInfo.State = drawItemInfo.State And (Not DrawItemState.Focus)
' Then forward drawing to default drawing logic.
ANAlexandre NicholasMay 2, 2003 04:47 PM UTC
FocusOnTabClick = false ?
RPRamesh Praveen Syncfusion Team May 5, 2003 12:00 PM UTC
When you set focusontabclick to false, the tab control will not take focus when you click on a tab. If that is ok with you, then go ahead and use it.
ANAlexandre NicholasMay 5, 2003 12:55 PM UTC
> When you set focusontabclick to false, the tab control will not take focus when you click on a tab. If that is ok with you, then go ahead and use it.
> Praveen Ramesh
If you put the tabcontrol with tabindex=0 and you set focusontabclick=false, the focus is there, try it . Put on the form only the TabControl. Just this one,and you will see that focusontabclick=false doesn't work.
But i have more than 1 control, so i haven't got the problem.
this post in only to alert you of this bug.
RPRamesh Praveen Syncfusion Team May 6, 2003 11:51 AM UTC
You should also set TabStop = false, then the tabcontrol itself will not have focus.