NTabControl.Invalidate not working on tabs


Author
Message
Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3
Thanks, I had not tried that and it worked.  I was converting code that did something similar using an ownerdraw Windows.Form tab control and all it needed was the Invalidate() call to redraw its tabs.  Not a big deal but thought I would report it.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Brad,

Have you try nTabControl.Invalidate(true)?



Best Regards,
Nevron Support Team


Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3

I've added a custom renderer to my NTabControl to paint certain tabs a different color at times.  This works fine and was easy to add.

However, when I need to indicate that my tab needs to be redrawn with the new color I call the NTabControl.Invalidate() method and the tabs don't get invalidated.  (I saw there was a NTabPage.Invalidate() method too but it doesn't redraw the tab either.) 

For the moment, instead, I'm setting the NTabControl.Visible to false and then back to true to get the tabs to be invalidated.  How does one invalidate the tab area of an NTabControl?  I'm on Win7 using the 11.1.17.12 build.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search