We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

TabControlAdv Behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

62899 Jun 25,2007 10:19 AM Jun 28,2007 07:21 AM Windows Forms 6
loading
Tags: Tools
Mirza Imran Nazir
Asked On June 25, 2007 10:19 AM

Dear Hanif,

Hello again, please tell me how to make the tab control behavior consistent, when using tab primitives.

When tab primitives are used, trying renaming the tab page, shows white background, particularly when the tab page or some of its portion lies behind the tab primitives. I have also attached the .avi file for demonstration.

Please, also, tell me what event to handle when typing a character during renaming a tab page, so that a user can be restricted typing long names for tab pages.

Regards
Imran Nazir.

TabControlDemo.zip

Administrator [Syncfusion]
Replied On June 25, 2007 11:53 PM

Hi Imran,

Thanks for the .avi file. When renaming the tab page the white background is not displayed if the ThemesEnabled property of the tab page is set to True. It is possible to restrict the length of names for tab pages using the AfterEdit and LabelEditTextChanged events. I have attached a sample that illustrates this.

Let me know if this meets your requirements.

Regards,
Ebenezer.P

http://websamples.syncfusion.com/samples/Tools.Windows/62899/Main.htm

Mirza Imran Nazir
Replied On June 26, 2007 04:43 AM

Hi Ebenezer

Thanks for your reply, I have enabled the themes on each tab page but was unable to rectify the problem of invisible text while tab primitives are used.

Please see the attached sample to examine this.

As far as name length is concerned, I have done the same thing as in your provided sample, but what I actually want to do is to check the length while renaming (on typing any key - as in Microsoft Excel).

May I hope that you have a clear idea of what I want to do?

Regards
Imran Nazir

TestsAndSamples.zip

Golda Rebecal [Syncfusion]
Replied On June 26, 2007 10:34 AM

Hi Imran,

We can check the length of the tab text while renaming it using the KeyDown event of TabControlAdv.

I have modified the sample you have given and attached it. Please have a look at it and let me know if this helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/f62899/Main.htm

Best regards,
Golda

Mirza Imran Nazir
Replied On June 27, 2007 03:06 AM

Hi Golda

So nice of you and thanks a lot. Your modifications are really working. The only thing need to be handled now is to adjust the width of the tab according to the tab name.
I hope I can handle it.

Thanks again

Imran Nazir

Mirza Imran Nazir
Replied On June 27, 2007 03:06 AM

Hi Golda

So nice of you and thanks a lot. Your modifications are really working. The only thing need to be handled now is to adjust the width of the tab according to the tab name.
I hope I can handle it.

Thanks again

Imran Nazir

Golda Rebecal [Syncfusion]
Replied On June 28, 2007 07:21 AM

Hi Imran,

When the Multiline property of the TabControlAdv is set to true, all the tabs will be visible as well as the tab width will be adjusted according to the tab text.

I have attached a sample that illustrates the same. Please have a look at it and let me know if this meets your requirement.

http://websamples.syncfusion.com/samples/Tools.Windows/F62899_1/Main.htm

Best regards,
Golda

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;